[texhax] listings causing: Command invalid in math modeCommand invalid in math mode

Jeremy C. Reed reed at reedmedia.net
Wed Apr 15 16:15:51 CEST 2009


On Wed, 15 Apr 2009, Jeremy C. Reed wrote:

> \begin{lstlisting}{basicstyle=\footnotesize}

Now I found my problem, that should be brackets not braces for the 
options:

\begin{lstlisting}[basicstyle=\footnotesize]

> Maybe listings package is not what I need. I want simply to have verbatim 
> text to be in the same font as the rest of my document while keeping a 
> fixed spacing (for formatting).
> 
> Also I could accept using the default font size in the listings (no 
> \footnotesize) if the fixed text in there didn't wrap.


More information about the texhax mailing list