[tex-eplain] colored verbatim or how to temporarily escape verbatim mode
Helmut Jarausch
jarausch at igpm.rwth-aachen.de
Tue Dec 24 13:58:07 CET 2013
On 12/18/2013 01:39:20 AM, John Frampton wrote:
> Remember that | is the escape character inside \verbatim.
>
> So
>
> \def\goop{\setcolour{1 0 0}}
>
> \verbatim ... |goop ...|endverbatim
>
Thanks!
Is it possible to use something similar in code which is included by
\listing ?
Helmut
> 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