[tex-eplain] colored verbatim or how to temporarily escape verbatim mode
Philip Taylor
P.Taylor at Rhul.Ac.Uk
Tue Dec 10 11:52:30 CET 2013
I don't know if it will help, but my "nestable verbatim" code
will allow you to restore catcodes within a verbatim environment :
http://www.tug.org/TUGboat/tb11-2/tb28taylor.pdf
(See attachment for code)
Philip Taylor
--------
Helmut Jarausch wrote:
> I'd like to set some lines of a program listing in a different colour.
> For this I'd like to invoke \setcolour{1 0 0} from the nice (plain-TeX)
> package 'present.tex'
> see http://www.ctan.org/tex-archive/macros/plain/contrib/present
>
> But I have difficulties to invoke that macro either within a \verbatim
> group or within
> \listing. I need some trickery to get \setcolour{1 0 0} parsed with
> standard catcodes for blank, { and }.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Verbatim.tex
Type: text/x-tex
Size: 12993 bytes
Desc: not available
URL: <http://tug.org/pipermail/tex-eplain/attachments/20131210/5b204379/attachment.bin>
More information about the tex-eplain
mailing list