![](https://secure.gravatar.com/avatar/74d41c3215dcdd377343cdc47311757c.jpg?s=120&d=mm&r=g)
Hans Hagen schrieb am 24.06.2020 um 19:06:
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.
I can't remember the details when the command was added (I know there was \nonknuthmode) but in this example it works in a unexpected way (the % are removed but the following text is kept). There is no need for \asciimode in my document but I use it sometimes when I have symbols I don't want to replace.
But ... we can have
\unexpanded\def\literalmode{\setcatcodetable\txtcatcodes}
and then:
[...]
I'll add that command, assuming that someone will document it somewhere.
Not really needed in this case but I'm going to document it. Wolfgang