[ESS] sweave and auctex
basille at biomserv.univ-lyon1.fr
Tue May 12 09:03:11 CEST 2009
Thx Stephen for the information (and Andreas to work on it!), I totally
missed it last year, and I really like it now!
Based on Andreas code for .emacs, I have a couple of additional
- Would it be possible to make 'C-c C-c Sweave' split into two windows
(like ess-swv-weave does for me) so that we can follow directly what's
going on, without manually switching to the R buffer? (maybe the
solution is to actually use ess-swv-weave, but I wasn't able to do that
based on Andreas code).
- I'm using Rubber to compile LaTeX files
(http://www.pps.jussieu.fr/~beffara/soft/rubber/): this is an amazing
tool that is able to compile as many times as needed (including BibTeX)
to get immediately the expected output (pdf for me). It also convert
images to the correct format (eg. conversion from eps to pdf to get pdf
outputs). I was able to include it to the 'C-c C-c' list for .tex files
'("Rubber" "rubber -d %t && xpdf '%s.pdf'" TeX-run-command nil t) t))
And with quite some success for .Rnw files with adding the following in
the list of Andreas function 'Rnw-mode-hook:
'("RubberSweave" "rubber -d %s && xpdf '%s.pdf'" TeX-run-command
nil t) t)
I'm not sure the code is optimal since I don't understand most of it.
Note that the -d option is to get pdf outputs from Rubber. Looks like it
work though, and could be useful to (and certainly improved by) others.
Stephen Eglen a écrit :
> Has this been advertised on ess-help? The page shows how to call Sweave
> using auctex.
mathieu at lbbe:~$ whoami
> Mathieu Basille, PhD
mathieu at lbbe:~$ locate
> Laboratoire de Biométrie et Biologie Évolutive
> Université Claude Bernard Lyon 1 - France
mathieu at lbbe:~$ info
mathieu at lbbe:~$ fortune
> ``If you can't win by reason, go for volume.''
> Calvin, by Bill Watterson.
More information about the ESS-help