Re: A solution to the problem of Sweave.sty in the sweave module

2011-05-12 Thread Yihui Xie
No. AFAIK, Rtools has nothing to do with Sweave.sty. It is the step 4 in the article you cited that solves this problem: 4. Copy Sweave.sty from share/texmf in the R installation directory to some place in your LaTeX path. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name De

Re: A solution to the problem of Sweave.sty in the sweave module

2011-05-12 Thread Liviu Andronic
On Thu, May 12, 2011 at 5:57 PM, Yihui Xie wrote: > Maybe I have not got what you mean yet -- is the "problem" in your > mind the same as mine? The problem as I can see is about the spaces in > the path to Sweave.sty under Windows, therefore it is more of a LaTeX > problem than an Sweave problem.

Re: A solution to the problem of Sweave.sty in the sweave module

2011-05-12 Thread Yihui Xie
Maybe I have not got what you mean yet -- is the "problem" in your mind the same as mine? The problem as I can see is about the spaces in the path to Sweave.sty under Windows, therefore it is more of a LaTeX problem than an Sweave problem. I know generally it is not a good idea to hard-code anythi

Re: A solution to the problem of Sweave.sty in the sweave module

2011-05-12 Thread Enrico Forestieri
On Thu, May 12, 2011 at 02:21:02PM +0200, Jean-Marc Lasgouttes wrote: > Le 12/05/2011 03:30, Yihui Xie a écrit : > >Hi all, > > > >I've come up with another idea which has been in my mind for a while. > >Sweave.sty is really short enough to be directly written into the > >LaTeX preamble like this:

Re: A solution to the problem of Sweave.sty in the sweave module

2011-05-12 Thread Jean-Marc Lasgouttes
Le 12/05/2011 03:30, Yihui Xie a écrit : Hi all, I've come up with another idea which has been in my mind for a while. Sweave.sty is really short enough to be directly written into the LaTeX preamble like this: %\usepackage{Sweave} \ifdefined\Sinput \else \IfFileExists{Sweave.sty}{ \usepa

Re: A solution to the problem of Sweave.sty in the sweave module

2011-05-11 Thread Guenter Milde
On 2011-05-12, Yihui Xie wrote: >> There is a LaTeX package (http://ctan.org/pkg/grffile) that does this >> for file names. I don't know, whether it would solve your problem, >> though. > I see this package is not included in TeXLive, so it may require the > user to do even more work. Just for t

Re: A solution to the problem of Sweave.sty in the sweave module

2011-05-11 Thread Yihui Xie
Hi all, I've come up with another idea which has been in my mind for a while. Sweave.sty is really short enough to be directly written into the LaTeX preamble like this: %\usepackage{Sweave} \ifdefined\Sinput \else \IfFileExists{Sweave.sty}{ \usepackage{Sweave} }{ \usepackage{graphicx,fan

Re: A solution to the problem of Sweave.sty in the sweave module

2011-05-11 Thread Yihui Xie
Thanks for the hint! I see this package is not included in TeXLive, so it may require the user to do even more work. Even if a user has successfully installed this package and it does work with spaces, the idea of using the 'stylepath' argument with Sweave is bad. The hard-coded path will make the

Re: A solution to the problem of Sweave.sty in the sweave module

2011-05-11 Thread Yihui Xie
I'm not sure if that is a "bug" -- the problem occurs when the path to Sweave.sty contains spaces, and the Sweave authors have no way to prevent users from installing R to a directory that contains spaces (think that software packages under Windows are often installed to "C:\Program Files\"). Or d

Re: A solution to the problem of Sweave.sty in the sweave module

2011-05-11 Thread Jean-Marc Lasgouttes
Le 11/05/2011 06:55, Yihui Xie a écrit : Recently I've been working on the sweave module in LyX and discussing with Jean-Marc and Gregor, and I was suggested to send emails to this mailing list to get more people involved in the discussion. Thanks for doing that. 1. tell the user that they ca

Re: A solution to the problem of Sweave.sty in the sweave module

2011-05-11 Thread Gregor GORJANC
I wote for copying file to temporary folder where LyX copies files for LaTeX compilation. Gregor Gorjanc