Text Formatting ⇒ mathematical symbols in verbatim
mathematical symbols in verbatim
For instance if I use:
\begin{Verbatim}[commandchars=\\\{\},
codes={\catcode`$=3\catcode`^=7}]
param rate {PROD, STAGE} > 0;
#rate[p,s] $\equiv r\sb{ps}^i$
\end{Verbatim}
the mathematical symbol is displayed correctly but
{PROD, STAGE} is displayed without the {}!
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis