ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \type gives different results in footnotes
@ 2014-05-26 19:28 Pablo Rodriguez
  2014-05-26 20:12 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Pablo Rodriguez @ 2014-05-26 19:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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.

Is there no way to have the same results in footnote?

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: \type gives different results in footnotes
  2014-05-26 19:28 \type gives different results in footnotes Pablo Rodriguez
@ 2014-05-26 20:12 ` Hans Hagen
  2014-05-27  4:43   ` Pablo Rodriguez
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2014-05-26 20:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: \type gives different results in footnotes
  2014-05-26 20:12 ` Hans Hagen
@ 2014-05-27  4:43   ` Pablo Rodriguez
  0 siblings, 0 replies; 3+ messages in thread
From: Pablo Rodriguez @ 2014-05-27  4:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 05/26/2014 10:12 PM, Hans Hagen wrote:
> On 5/26/2014 9:28 PM, Pablo Rodriguez wrote:
>> [...]
>>      \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'.
> [...]
> In uploaded beta.

Many thanks for your fast fix, Hans.


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-05-27  4:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-26 19:28 \type gives different results in footnotes Pablo Rodriguez
2014-05-26 20:12 ` Hans Hagen
2014-05-27  4:43   ` Pablo Rodriguez

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).