[NTG-context] suggestion on [option=TEX]

Pablo Rodriguez oinos at gmx.es
Thu Feb 6 19:29:11 CET 2014

On 02/06/2014 12:57 AM, Wolfgang Schuster wrote:
> Am 05.02.2014 um 19:50 schrieb Pablo Rodriguez <oinos at gmx.es>:
>> Hi Hans,
>> I have the following sample:
>> \setuptyping[option=TEX]
>> \starttext
>> \starttyping
>> \input zapf % knuth
>> \stoptyping
>> \stoptext
>> The percent character is in bold font and gray color, but the rest of
>> the commented text isn’t.
>> [...]
> http://pragma-ade.com/general/magazines/mag-1102.pdf

Many thanks for your reply, Wolfgang.

After reading the document, I think it could be achieved with:

\definefontfamily[mainface][mono][DejaVu Sans Mono]
\defineprocessor[myescape][style=bold,color=gray, left=\%]
This is a c%omment.

% And this is another one.

  [with colored]

But this doesn’t work. I must be missing something obvious.

What am I doing wrong here?

Many thanks for your help,


More information about the ntg-context mailing list