[NTG-context] \setupnote (was subfootnote)

Wolfgang Schuster schuster.wolfgang at googlemail.com
Tue Oct 12 13:35:19 CEST 2010


Am 12.10.2010 um 11:48 schrieb Alan BRASLAU:

> On Tuesday 05 October 2010 15:32:27 Wolfgang Schuster wrote:
>> Am 05.10.2010 um 14:41 schrieb Alan BRASLAU:
>>> 
>>> The above example illustrates a *spacing problem* after
>>> \startfootnote \stopfootnote
>>> (the spacing after the footnote enumerator differs from \footnote{xxxx})
>> 
>> The \stopfootnote gobbles the next space, to prevent this you can say in
>> mkii \setupnote[footnote][next=\autoinsertnextspace] but the ”next” key is
>> missing in mkiv.
> 
> Indeed!
> What to do?

Patch strc-not.mkiv

\def\dodoredefinenotecommands#1#2#3%
  {\unexpanded\expandafter\def\csname\e!start#3#1\expandafter\endcsname\expandafter
     {\expandafter\dosingleempty\csname\s!do\e!start#3#1\endcsname}%
   \unexpanded\expandafter\def\csname\s!do\e!start#3#1\expandafter\endcsname
        \expandafter[\expandafter##\expandafter1\expandafter]\expandafter##\expandafter2\csname\e!stop#3#1\endcsname
     {\begingroup
      \doenumerationinit{#1}{#2}{#3}%
      \@@notemakedescription[##1]{}{##2}%
      \endgroup
      \namednoteparameter{#1}\c!next}}

Example:

\starttext

One\startfootnote one\stopfootnote
Two\startfootnote two\stopfootnote 

\setupnote[footnote][next=\autoinsertnextspace]

One\startfootnote one\stopfootnote
Two\startfootnote two\stopfootnote 

\stoptext

Wolfgang



More information about the ntg-context mailing list