Cornec Matthieu
2004-Jul-28 08:41 UTC
[R] Latex error about Schunk environment under Windows NT
Hi,
I am running the Sweave function on a Rnw file.
It produces a tex file with
\begin{Schunk}
\begin{Sinput}
\end{Sinput}
\end{Schunk}
and when I try to compile the tex file, I get a
"Latex error : Environment Schunk undefined"
However, I wrote "\usepackage{Sweave}" at the beginning of my Rnw file
And the file "Sweave.sty" does exist in my tex files.
I am not experiencing the same trouble with my personal computer at home.
However I did the same steps. Is it due to Windows NT
(my home computer runs under XP) and shall I install another latex package?
Anything would help.
Thanks a lot in advance,
Matthieu Cornec
Uwe Ligges
2004-Jul-28 09:20 UTC
[R] Latex error about Schunk environment under Windows NT
Cornec Matthieu wrote:> Hi, > > I am running the Sweave function on a Rnw file. > It produces a tex file with > \begin{Schunk} > \begin{Sinput} > > \end{Sinput} > \end{Schunk} > > and when I try to compile the tex file, I get a > "Latex error : Environment Schunk undefined" > > However, I wrote "\usepackage{Sweave}" at the beginning of my Rnw file > And the file "Sweave.sty" does exist in my tex files. > > I am not experiencing the same trouble with my personal computer at home. > However I did the same steps. Is it due to Windows NT > (my home computer runs under XP) and shall I install another latex package? > > Anything would help. > Thanks a lot in advance, > > Matthieu Cornec > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.htmlIt is required to have the style file, of course. Calling Swaeve() from R should work (but there are some known MikTeX related problems) anyway. You can find the style file in folder .../share/texmf Uwe Ligges