On Thu, May 12, 2011 at 02:21:02PM +0200, Jean-Marc Lasgouttes wrote:
> Le 12/05/2011 03:30, Yihui Xie a écrit :
> >Hi all,
> >
> >I've come up with another idea which has been in my mind for a while.
> >Sweave.sty is really short enough to be directly written into the
> >LaTeX preamble like this:
> >
> >%\usepackage{Sweave}
> >\ifdefined\Sinput
> >\else
> >   \IfFileExists{Sweave.sty}{
> >   \usepackage{Sweave}
> >   }{
> >   \usepackage{graphicx,fancyvrb}
> >   \DefineVerbatimEnvironment{Sinput}{Verbatim}{fontshape=sl}
> >   \DefineVerbatimEnvironment{Soutput}{Verbatim}{}
> >   \DefineVerbatimEnvironment{Scode}{Verbatim}{fontshape=sl}
> >   \newenvironment{Schunk}{}{}
> >   \newcommand{\Sconcordance}[1]{%
> >   \ifx\pdfoutput\undefined%
> >   \csname newcount\endcsname\pdfoutput\fi%
> >   \ifcase\pdfoutput\special{##1}%
> >   \else\immediate\pdfobj{##1}\fi}
> >   }
> >\fi
> 
> This looks good... until Sweave changes its inner working. I have
> written a lot of clever code like that in the past and sooner or
> later I got bitten by it.
> 
> Are you in contact with the Sweave author(s)? Isn't it something we
> can try to solve together with them? I still think this sweave.sty
> thing is their problem :)

Doesn't the TEXINPUTS prefix help here?

-- 
Enrico

Reply via email to