\lstset{
basicstyle=\ttfamily,
keywordstyle=\bfseries,
showstringspaces=false,
columns = fullflexible,
mathescape = true,
language=R
}
\begin{lstlisting}
lst$val<-val
\end{lstlisting}
./software.tex:16:Extra }, or forgotten \endgroup. lst$
the culprit here is the $ sign. that's aproblem because xxx$y is a common command in R.
thanks.
Document Classes ⇒ lstlisting - language R- special character
- Stefan Kottwitz
- Site Admin
- Posts: 10308
- Joined: Mon Mar 10, 2008 9:44 pm
lstlisting - language R- special character
Hi,
do you need mathescape? It would work if you didn't set mathescape = true.
Stefan
do you need mathescape? It would work if you didn't set mathescape = true.
Stefan
LaTeX.org admin
Re: lstlisting - language R- special character
Thanks, it works.