[tex-eplain] colored verbatim or how to temporarily escape verbatim mode

John Frampton j.frampton at neu.edu
Wed Dec 18 01:39:20 CET 2013


Remember that | is the escape character inside \verbatim.

So

\def\goop{\setcolour{1 0 0}}

\verbatim ... |goop ...|endverbatim


On 12/17/2013 2:44 PM, Oleg Katsitadze wrote:
> Hi Helmut,
>
> On 12/10/13, Helmut Jarausch <jarausch at igpm.rwth-aachen.de> wrote:
>> I need some trickery to get \setcolour{1 0 0} parsed with
>> standard catcodes for blank, { and }.
>
> One possibility is to define a parameterless macro which calls
> \setcolour{1 0 0} outside of \verbatim and then call that macro inside
> \verbatim.
>
> HTH,
> Oleg
>



More information about the tex-eplain mailing list