[R-SIG-Mac] Sweave question
Prof Brian Ripley
ripley at stats.ox.ac.uk
Fri Nov 21 21:19:23 CET 2008
Sean Davis wrote:
> On Fri, Nov 21, 2008 at 2:25 PM, Christopher David Desjardins <
> cddesjardins at gmail.com> wrote:
>> Perhaps this isn't the right place for this question but it refers to
>> Sweave and it seems like what I would to be LaTex fixes don't seem to work
>> and maybe it's something with Sweave so ...
>> When I want to use Sweave currently I need to do the following:
>> How can I set up aquamacs so that all I need to do is this?
> If you run pdflatex, for example, you can do:
> R CMD pdflatex filename.tex
> This will find the Sweave style and pull it in for you. Alternatively, you
> can copy the Sweave.sty file into each directory before running latex.
> There may be other answers here, but those are two simple ones.
Perhaps the simplest is to put Sweave.sty (and maybe Rd.sty) in your
latex search path. How to do that depends on your TeX distribution, but
on Mactex I have such files under ~/Library/texmf/tex/latex .
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-SIG-Mac