[ESS] Combining sweave and pdflatex into one helper function
presnell at stat.ufl.edu
Mon Feb 14 17:43:46 CET 2011
I grabbed what you posted yesterday and added it into my .emacs, but I
had one strange problem that pushed me back to "M-n s" + "M-n P". The
problem was that the line
which I usually put that the top of my .Rnw file seems to be ignored
when I run Sweave with "C-cC-c Sweave", while it is correctly picked up
by "M-n s".
I haven't gotten around to figuring out why this is happening, but it's
definitely a deal breaker for me. I don't have time at the moment to
try the SVN version of ESS, but I am currently running
GNU Emacs 23.1.1
FWIW, I did check that that "M-n s" followed by "C-cC-c LatexSweave"
works correctly, so the problem arises in the running of Sweave, not
Seb <spluque at gmail.com> writes:
> On Fri, 11 Feb 2011 16:18:46 +0000,
> Dirk Eddelbuettel <edd at debian.org> wrote:
>> Seb <spluque <at> gmail.com> writes:
>>> I haven't looked at this particular problem, but I suggested an
>>> alternative way of working to Dirk (off-list), which he liked (so
>>> we're 2 at least!), but that requires AUCTeX, so may not appeal to
>> In fact I liked it so much that I encouraged Seb to post it here, and
>> I am glad to see he now did. Given that this about ESS + Sweave (ie
>> LaTeX) I do not think it is a stretch to assume AUCTeX (ie LaTeX).
> I've just implemented this in SVN (4460). All that should be required
> (setq ess-swv-plug-into-AUCTeX-p t)
> or toggle the menu option Noweb -> Sweaving, Tangling, ... -> AUCTeX
> Interface. This variable defaults to nil. Can you give it a try?
More information about the ESS-help