ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: context@vivaldi.net
To: ConTeXt <ntg-context@ntg.nl>
Subject: Re: ASCII mode within \footnote
Date: Sat, 02 Nov 2019 10:45:04 +0100	[thread overview]
Message-ID: <472b1039301f206a5337157c9b452548@vivaldi.net> (raw)
In-Reply-To: <0e3fc588e96d00f1f235e1f3b9499335@vivaldi.net>

Hello,

OK, thanks for reaction.

One more example - \text instead of ascii mode:

----
\starttext
   \type{%@$}
   A\footnote{\type{*\$%
   }}
   B\footnote{\type{*\$\%
   }}
\stoptext
----

gives:

"
*\$
*\$\%
"

in the footnote.

IOW, I cannot simply print "%": "%" at the end yields "" whilst "\%" 
produces "\%".

Is there a simple way to prinst simple "%"?
(There is probably a more clumsy way - type \letterpercent instead of % 
- but this is a minimal sample; in my real sample there are many "%"s to 
be shown as "%".)

Best regards,

Lukas


On 2019-11-01 14:36, Hans Hagen wrote:
> On 11/1/2019 2:23 PM, context@vivaldi.net wrote:
>> Hello,
>> 
>> the following code doesn't compile:
>> 
>> ----
>> \starttext
>>    \startasciimode %@$\stopasciimode
>>    A
>>    \footnote{\startasciimode %@$\stopasciimode} % <<<< Try to comment 
>> this
>> \stoptext
>> ----
>> 
>> When the line with \footnote is commented, compilation works fine.
>> 
>> What's "evil" in \footnote{\startasciimode %@$\stopasciimode}?
> the fact that startasciimode will not be in action as it's passed as 
> argument
> 
> \starttext
>     \startasciimode
>         %@$
>         A
>         \footnote{%@$} % <<<< Try to comment this
>     \stopasciimode
>     \startasciimode
>         \footnote{%@$}
>     \stopasciimode
> \stoptext
> 
> -----------------------------------------------------------------
>                                           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
___________________________________________________________________________________

  parent reply	other threads:[~2019-11-02  9:45 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-01 13:23 context
2019-11-01 13:36 ` Hans Hagen
     [not found]   ` <0e3fc588e96d00f1f235e1f3b9499335@vivaldi.net>
2019-11-02  9:45     ` context [this message]
2019-11-02 15:35       ` Aditya Mahajan
2019-11-04 11:36         ` context
2019-11-04 13:36           ` Aditya Mahajan
2019-11-04 14:05             ` Aditya Mahajan
2019-11-04 16:34               ` Wolfgang Schuster
2019-11-07 22:04                 ` Wolfgang Schuster
2019-11-07 23:11                   ` Aditya Mahajan
2019-11-08  8:52                     ` Hans Hagen
2019-11-08  9:45                       ` context
2019-11-05 13:43               ` context

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=472b1039301f206a5337157c9b452548@vivaldi.net \
    --to=context@vivaldi.net \
    --cc=ntg-context@ntg.nl \
    /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).