I'm trying to put mathematical symbols in a Verbatim environment:
%& -shell-escape \documentclass[a4paper]{article} \usepackage{fancyvrb} \begin{document} \begin{Verbatim}[commandchars=\\\{\}, codes={\catcode‘$=3\catcode‘^=7}] x=1/sqrt(z**2) ! $\frac{1}{\sqrt{z^2}}$ \end{Verbatim} \end{document}
This is basically the example given in the documentation (section 4.1.16).
It fails to compile:
! Missing number, treated as zero. <to be read again> ` l.9 codes={\catcode`$=3\catcode`^=7}]
Does anyone know why?