On 6/24/2020 6:33 PM, Wolfgang Schuster wrote:
Hi,

when asciimode is enabled the \type command ignores double comment symbols.

\starttext

\quotation{\type{%}}

\quotation{\type{%%}}

\asciimode

\quotation{\type{%}}

\quotation{\type{%%}}

\stoptext

It's actually a feature: in ascimode double % is the comment and content is preprocessed. originally asciimode was just for math and we still wanted a way to have comments.

But ... we can have

\unexpanded\def\literalmode{\setcatcodetable\txtcatcodes}

and then:

\starttext

\quotation{\type{%}}

\quotation{\type{%%}}

\literalmode

\quotation{\type{%}}

\quotation{\type{%%}}

test 10% test

\stoptext

I'll add that command, assuming that someone will document it somewhere.

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to