From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: \type gives different results in footnotes
Date: Mon, 26 May 2014 22:12:53 +0200 [thread overview]
Message-ID: <5383A045.5070706@wxs.nl> (raw)
In-Reply-To: <538395D5.3010904@gmx.es>
On 5/26/2014 9:28 PM, Pablo Rodriguez wrote:
> Dear list,
>
> I have the following sample:
>
> \starttext
> \type{{\em\de Textsatzsystem}}
> \footnote{\type{{\em\de Textsatzsystem}}.}
> \stoptext
>
> Only in the footnote \em has an extra unrequired space.
>
> I don’t have no idea about how TeX works here. As I wrote in a previous
> message, this is far beyond my understanding.
It has to do with catcodes and tex adding a space after a stringified
\cs so passing as argument is fragile. There is already some magic in
place for \foo{bar} cases so I've added a (less tested) aggressive
option 'absolute'.
\definetype[TeXcodeA][option=TEX]
\definetype[TeXcodeB][option=TEX,compact=all]
\definetype[TeXcodeC][option=TEX,compact=absolute]
\def\argA#1{\TeXcodeA{{#1}}}
\def\argB#1{\TeXcodeB{{#1}}}
\def\argC#1{\TeXcodeC{{#1}}}
\starttext
\startlines
\argA {\em\de Textsatzsystem}
\argB {\em\de Textsatzsystem}
\argC {\em\de Textsatzsystem}
\TeXcodeA{{\em\de Textsatzsystem}}
\TeXcodeB{{\em\de Textsatzsystem}}
\TeXcodeC{{\em\de Textsatzsystem}}
\blank
\argA {\em \de Textsatzsystem}
\argB {\em \de Textsatzsystem}
\argC {\em \de Textsatzsystem}
\TeXcodeA{{\em \de Textsatzsystem}}
\TeXcodeB{{\em \de Textsatzsystem}}
\TeXcodeC{{\em \de Textsatzsystem}}
\stoplines
\stoptext
In uploaded beta.
> Is there no way to have the same results in footnote?
>
> Many thanks for your help,
>
>
> Pablo
>
--
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| 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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2014-05-26 20:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-26 19:28 Pablo Rodriguez
2014-05-26 20:12 ` Hans Hagen [this message]
2014-05-27 4:43 ` Pablo Rodriguez
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=5383A045.5070706@wxs.nl \
--to=pragma@wxs.nl \
--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).