Hello! First of all I’m not good at lisp as of now. I’d like to have an extra export option when I press C-c C-e that would create <dot>Rnw file instead of <dot>tex, pass it through pgfSweave in running R session.
I have the following to use pgfSweave in R session: -------8<--------------------------------------------------------------->8------- (defun ess-swv-pgfweave () "Run pgfSweave on the current .Rnw file." (interactive) (ess-execute "library(pgfSweave)") (ess-swv-run-in-R "pgfSweave")) (define-key noweb-minor-mode-map "\M-ns" 'ess-swv-pgfweave) (easy-menu-add-item noweb-minor-mode-menu '("Sweaving, Tangling, ...") ["pgfSweave" ess-swv-pgfweave t]) -------8<--------------------------------------------------------------->8------- So I thought I'd somehow hook up altogether as I like an idea of folding things while make Beamer slides, but same time I like neatness of pgfSweave... I don't know if there might be problems passing through constructs like <<stuff>>= stuff @ untouched into <dot>Rnw file. I'm aware of babel for R but I can't use LaTeX in plots with it :( Mikhail