[ESS] ess-swv-PDF hack(?)

Seb spluque at gmail.com
Sun Nov 16 01:17:10 CET 2008


On Sat, 15 Nov 2008 14:25:35 -0800,
"Charles C. Berry" <cberry at tajo.ucsd.edu> wrote:

> Dear Ess-weaveRs,

> Lately I been getting complaints about Sweave.sty not being found by
> pdflatex.

> I guess that utils:::texi2dvi or R CMD texi2dvi are intended to
> resolve this for me, and in command line operations, I am now in the
> habit of typing

> 	R CMD texi2dvi -p myfile.tex

> which helpfully sets TEXINPUTS (I assume) and runs pdflatex as many
> times as needed to resolve references.

> To get the equivalent in ess-swv-PDF, I am using this

> ;; old version (call-process "pdflatex" nil tex-buf 1 latex-filename))

> (call-process "R" nil tex-buf 1 "CMD" "texi2dvi" "-p" latex-filename
> ))

> This seems to do the trick for me - M-n P pdflatex's the file and pops
> up my viewer, but I wonder if there might be some gotchas and/or if
> there is a better version of this.

I think a more general and traceable solution would be to place
Sweave.sty (or a symlink to it) somewhere where it can be found by
whatever TeX system is installed.


-- 
Seb




More information about the ESS-help mailing list