[OS X TeX] Math mode on fancyvrb

Paulo Ferreira paf_yahoo at keeh.net
Wed Dec 28 04:05:35 CET 2005


I need the math mode to use left arrrows on examples of source code.

My cleanest approach is like this:

+++++++++++++++  begin LaTeX sample
\newcommand{\myequal}{$\leftarrow$}
\begin{Verbatim}[frame=single,commandchars=\|\[\]]

    num |myequal[] num + 1

\end{Verbatim}
+++++++++++++++  end LaTeX sample

Any better ideas?

Yes, I know about listings and the algorithms variants.

Many thanks

Paulo Ferreira

------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/




More information about the macostex-archives mailing list