Friedericksen Hope
Sun, 27 Dec 2009 00:20:25 -0800
Hello,I am trying Sweave with Auctex and while I was searching for a way to integrate sweave into the usual auctex compiling cycle (C-c C-c), I found some earlier postings quotet below (unfortunately I am not able to refer to this posting directly, but here is a link: http://thread.gmane.org/gmane.emacs.auctex.general/2106 ).
As a newbie I tried to implement your comment, Ralf, but unfortunately it does not work.
To make "LatexSweave" working I tried:
(add-to-list 'TeX-command-list
'("LatexSweave" "%l \%(mode)\\input{%s}\"
TeX-run-TeX nil t :help "Run Latex after
Sweave") t)
but that doesn't work, also I remove the quotation marks around %(mode) as
suggested. (I guess, I removed them uncorrectly). I really would be grateful,
if someone could give me a hint.
Also it would be very nice to have an integration of "Sweave" and "LatexSweave", something like "Swelat" ;-) which runs Sweave on a Snw or Rnw file and immediatly after it runs LaTeX on the
sweaved-file, without further asking. How would that be possible?
Thank you in advance!
Greetings,
Friedericksen
> * Andreas Kiermeier (2007-06-20) writes:
>
>> I thought it might be worthwhile to upgrade to AucTeX 11.84 - just to
>> make sure it still works. And wouldn't you know it, it doesn't quite.
>> The "LatexSweave" command is now broken.
>> I get the following error message:
>> ----------------------------------
>> Running `LatexSweave' on `article' with ``pdflatex "
>> -interaction=nonstopmode\input{"article"}"''
>> This is pdfeTeX, Version 3.141592-1.30.6-2.2 (MiKTeX 2.5)
>> entering extended mode
>> ! I can't find file `-interaction=nonstopmode'.
>> <to be read again> \let <*>
-interaction=nonstopmode\input
>> {article}
>> Please type another input file name:
>
>> From your former message:
>
> | (add-to-list 'TeX-command-list
> | '("LatexSweave" "%l \"%(mode)\\input{%s}\"" |
TeX-run-TeX nil t :help "Run Latex after
> | Sweave") t)
>
> %(mode) is inside quotation marks. This was okay as long as it was
> handled by a LaTeX macro. Now that it is a command line option, it
> musn't be included in quotes.
>
> --
> Ralf
_______________________________________________
auctex mailing list
auctex@gnu.org
http://lists.gnu.org/mailman/listinfo/auctex