[OS X TeX] Listings package

David Arnold dwarnold45 at suddenlink.net
Sun Nov 7 19:30:03 CET 2010


Michael,

Thanks. Worked perfectly!

D.

On Nov 7, 2010, at 9:43 AM, Michael Sharpe wrote:

> 
> On Nov 7, 2010, at 9:20 AM, David Arnold wrote:
> 
> I'm trying to get the 2in in the line \begin{solution}[2in] to show up in red. But I'm having no success. Can someone suggest how I might do this using the listings package?
> 
>> \begin{lstlisting}
>> \begin{solution}[2in]
> 
> You can define an escapeinside environment:
> 
> \begin{lstlisting}[escapeinside=!~]
> \begin{solution}[!\color{red}2in~]
> 
> Michael----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
> List Archive: http://tug.org/pipermail/macostex-archives/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
> 




More information about the macostex-archives mailing list