Message-ID: <f55e7cf50902200808l71de3078va04e6242c756027a@mail.gmail.com>
Date: 2009-02-20T16:08:18Z
From: Ista Zahn
Subject: Sweave schunk placement
Dear Professor Leisch + R helpers,
For the past few days I have been trying to figure out why the LaTeX
endfloat package is not working with Sweave. I figured it out, and
it's trivial: The endfloat package requires that \begin{table} and
\end{table} commands are on their own line. But Sweave is writing
LaTeX code like \end{table}\end{Schunk} which causes endfloat to
choke. Simply moving the code down to a new line like this:
\end{table}
\end{Schunk}
fixes the problem, but it is annoying to do this for every table
everytime I re-run Sweave. I don't understand LaTeX that well, so I'd
be really grateful if someone can tell me how to modify Sweave.sty (or
another file if needed) so that the \end{Schunk}'s are written on new
lines.
Thanks,
Ista