Haven't tried fancyvrb, but meanwhile this fixes it:
http://www.latex-community.org/viewtopic.php?f=4&t=2783&p=10955#p10955
On Sat, Oct 18, 2008 at 12:00 AM, Henrik Bengtsson <[EMAIL PROTECTED]>wrote:
> Check out the 'fancyvrb' latex package - that is quite flexible and I
> wouldn't be surprised
Check out the 'fancyvrb' latex package - that is quite flexible and I
wouldn't be surprised if it can help you. Make sure to read the docs
(fancyvrb.pdf).
/H
On Fri, Oct 17, 2008 at 8:37 PM, erwann rogard <[EMAIL PROTECTED]> wrote:
> Thanks for clarifying. Yes, \$ works in latex, but not *within
Thanks for clarifying. Yes, \$ works in latex, but not *within* the
lstlisting environment.
On Fri, Oct 17, 2008 at 11:32 PM, Gabor Grothendieck <
[EMAIL PROTECTED]> wrote:
> Greg was referring to what to write in R character literals in order to
> generate
> a single \ in the output from R which
Greg was referring to what to write in R character literals in order to generate
a single \ in the output from R which in turn would be fed into latex or Sweave
and then latex. Google this: special characters in latex
On Fri, Oct 17, 2008 at 11:23 PM, erwann rogard <[EMAIL PROTECTED]> wrote:
> Th
Thanks, but unfortunately
\begin{lstlisting}
\\$
\end{lstlisting}
and
\begin{lstlisting}
$
\end{lstlisting}
still generate the same error.
On Fri, Oct 17, 2008 at 9:38 PM, Greg Snow <[EMAIL PROTECTED]> wrote:
> The $ is special in TeX/LaTeX as a shortcut for beginning/ending inline
> mat
The $ is special in TeX/LaTeX as a shortcut for beginning/ending inline math
mode, so if you want an actual $ then you need to escape it so that the
TeX/LaTeX file has \$ in it. This means that in your R code that generates the
file you may need \\$ or in some cases $.
Hope this helps,
--
6 matches
Mail list logo