From: Hans Hagen <j.hagen@xs4all.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
Subject: Re: \asciimode and \type{%%}
Date: Wed, 24 Jun 2020 19:06:19 +0200 [thread overview]
Message-ID: <56aab97b-7b8c-4be1-72e6-93f90cf977f9@xs4all.nl> (raw)
In-Reply-To: <5222735d-22c4-55b1-c13a-294afa3c23d0@gmail.com>
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
___________________________________________________________________________________
next prev parent reply other threads:[~2020-06-24 17:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-24 16:33 Wolfgang Schuster
2020-06-24 17:06 ` Hans Hagen [this message]
2020-06-24 17:59 ` Wolfgang Schuster
2020-06-24 19:03 ` Hans Hagen
2020-06-27 7:09 ` Wolfgang Schuster
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56aab97b-7b8c-4be1-72e6-93f90cf977f9@xs4all.nl \
--to=j.hagen@xs4all.nl \
--cc=ntg-context@ntg.nl \
--cc=wolfgang.schuster.lists@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).