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

Charles C. Berry cberry at tajo.ucsd.edu
Sat Nov 15 23:25:35 CET 2008

Dear Ess-weaveRs,

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

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 

 	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.


Charles C. Berry                            (858) 534-2098
                                             Dept of Family/Preventive Medicine
E mailto:cberry at tajo.ucsd.edu	            UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901

More information about the ESS-help mailing list