[ESS] Snw files are not weaved by C-c C-c from AucTeX-mode

A.J. Rossini blindglobe at gmail.com
Tue Aug 1 21:38:59 CEST 2006


Because those were hacks that Fritz introduced for some reason (I
don't really know why, and I don't have an opinion as to their
goodness), where as the standard Noweb format is the traditional

<< >>=

@

encoding.  It's not really robust, either, but there are cool
noweb-related toys for formatting and indexing that you can use by
using this.

Probably, the better approach for Sweaving is to

M-x ess-makeSweave

which DOES work.  And there is a keybinding as well,  M-n s

(there are also corresponding ess-makeLatex, ess-makePDF, and
ess-makePS commands, which just run LaTeX, etc....).    With
keybindings:

M-n x		ess-insert-Sexpr
M-n P		ess-makePDF
M-n p		ess-makePS
M-n l		ess-makeLatex
M-n s		ess-makeSweave

Someone else can fix the Auc-TeX C-c C-c commands by adding a new
command which does the right thing (probably running Fritz's Sweave.sh
script, or an enhanced variant of that), but the above works today.


On 8/1/06, Rodney Sparapani <rsparapa at mcw.edu> wrote:
> Rodney Sparapani wrote:
>
> > And, after thinking about it a little, I don't think the code marks
> > make any sense.  Why << and @?  This means that you can't work with
> > these files with off-the-shelf tools like csplit.  Why not << and <<@?
> > Then you could very simply do:  csplit -f file. file /<</
> > Right now, this seems to be more of a hassle than it is actually worth.
> >
> > Rodney
> >
>
> This is really bothering me.  Why can't the code marks just be:
> \begin{Sinput} and \end{Sinput}?  Then, the file would be valid
> latex if you used sweave.sty.
>
> Rodney
>
> ______________________________________________
> ESS-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
>


-- 
best,
-tony

blindglobe at gmail.com
Muttenz, Switzerland.
"Commit early,commit often, and commit in a repository from which we can easily
roll-back your mistakes" (AJR, 4Jan05).




More information about the ESS-help mailing list