[R] Off-Topic: LaTeX package listings
Achim Zeileis
Achim.Zeileis at wu-wien.ac.at
Mon Oct 4 10:21:24 CEST 2004
On Sun, 03 Oct 2004 22:26:21 -0400 Kjetil Brinchmann Halvorsen wrote:
> Hola!
>
> I ask here since I learnt from this list that the LaTeX package
> listings should be good
> for typesetting R code. I encountered one problem:
> \begin{lstlisting}
> X %*% V
> \end{lstlisting}
>
> in the output the * in %*% disappears! same with %/%, etc, the /
> disappears.
>
> Any ideas?
The comment characters in listings can be configured via \lstset{}, but
I'm not sure wether this also includes the % character. Maybe it has to
be escaped.
Z
> Kjetil
>
> --
>
> Kjetil Halvorsen.
>
> Peace is the most effective weapon of mass construction.
> -- Mahdi Elmandjra
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>
More information about the R-help
mailing list