I'm trying to put mathematical symbols in a Verbatim environment:
Code: Select all
%& -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}
It fails to compile:
Code: Select all
! Missing number, treated as zero.
<to be read again>
`
l.9 codes={\catcode`$=3\catcode`^=7}]