Re: [NTG-context] \setupnote (was subfootnote)
On Tue, Oct 12, 2010 at 1:09 PM, Yury G. Kudryashov wrote: > luigi scarso wrote: > >> On Tue, Oct 12, 2010 at 12:27 PM, Alan BRASLAU >> wrote: >>> On Tuesday 12 October 2010 11:54:28 Steffen Wolfrum wrote: Hans recommended: \stopfootnote{} >>> >>> Thank you. >>> >>> This will work, but it is pretty ugly.% >>> \startfootnote >>> Hopefully Hans will fix this in mkiv. >>> \stopfootnote{} >>> In the meantime, we will just have to make do, >>> but the special syntax as seen here raises eyebrows >>> with my MS-Word bound collaborators. >> Maybe for now >> \let\StartFootnote\startfootnote >> \def\StopFootnote{\stopfootnote{}} >> and after fix >> \let\StartFootnote\startfootnote >> \let\StopFootnote\stopfootnote > How would that help? \somecommand automatically gobbles the next space. >> >> I meant this \long\def\StartFootnote#1\StopFootnote{\startfootnote#1\stopfootnote\relax{} } -- luigi ___ 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 ___
Re: [NTG-context] \setupnote (was subfootnote)
On 12-10-2010 5:06, Alan BRASLAU wrote: Fixed in next beta. Not unless Wolfgang mails me a patch that he's confident with (as this is sort of tricky). Okay, 'next' can be any next, so watch a "fixed in *the* next beta" -) Hans - 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 ___
Re: [NTG-context] \setupnote (was subfootnote)
On Tuesday 12 October 2010 13:35:19 Wolfgang Schuster wrote: > > Patch strc-not.mkiv > > \def\dodoredefinenotecommands#1#2#3% > > {\unexpanded\expandafter\def\csname\e!start#3#1\expandafter\endcsname\expa > ndafter {\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##\expand > after2\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 Thanks! But, following Mojca's comment, I am expecting: On Mon, Oct 11, 2010 at 09:20, Wolfgang Schuster wrote: > > Fixed in next beta. :) ___ 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 ___
Re: [NTG-context] \setupnote (was subfootnote)
On Tue, 12 Oct 2010, Wolfgang Schuster wrote: 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{}) 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 Did not see this before I posted my reply. Of course, using a proper key is better than explicitly add \autoinsertnextspace in the definition. Aditya___ 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 ___
Re: [NTG-context] \setupnote (was subfootnote)
On Tue, 12 Oct 2010, luigi scarso wrote: You are right, my apologies for the error. I mean that in the meanwhile perhaps you can use somenthing like this \long\def\StartFootnote#1\StopFootnote{\startfootnote#1\stopfootnote\space} Better use \autoinsertnextspace rather than \space. Or perhaps add \autoinsertnextspace to \dodoredefinenotecommands. See the attached file. Aditya\unprotect \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\autoinsertnextspace}} \definenote [\v!footnote] \protect \starttext let see if\startfootnote Footnote \stopfootnote the space goobled. let see if \startfootnote Footnote \stopfootnote the space goobled. \stoptext ___ 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 ___
Re: [NTG-context] \setupnote (was subfootnote)
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{}) >> >> 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 ___ 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 ___
Re: [NTG-context] \setupnote (was subfootnote)
On Tue, Oct 12, 2010 at 1:09 PM, Yury G. Kudryashov wrote: > luigi scarso wrote: > >> On Tue, Oct 12, 2010 at 12:27 PM, Alan BRASLAU >> wrote: >>> On Tuesday 12 October 2010 11:54:28 Steffen Wolfrum wrote: Hans recommended: \stopfootnote{} >>> >>> Thank you. >>> >>> This will work, but it is pretty ugly.% >>> \startfootnote >>> Hopefully Hans will fix this in mkiv. >>> \stopfootnote{} >>> In the meantime, we will just have to make do, >>> but the special syntax as seen here raises eyebrows >>> with my MS-Word bound collaborators. >> Maybe for now >> \let\StartFootnote\startfootnote >> \def\StopFootnote{\stopfootnote{}} >> and after fix >> \let\StartFootnote\startfootnote >> \let\StopFootnote\stopfootnote > How would that help? \somecommand automatically gobbles the next space. >> >> >> > > > ___ > 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 > ___ > You are right, my apologies for the error. I mean that in the meanwhile perhaps you can use somenthing like this \long\def\StartFootnote#1\StopFootnote{\startfootnote#1\stopfootnote\space} -- luigi ___ 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 ___
Re: [NTG-context] \setupnote (was subfootnote)
luigi scarso wrote: > On Tue, Oct 12, 2010 at 12:27 PM, Alan BRASLAU > wrote: >> On Tuesday 12 October 2010 11:54:28 Steffen Wolfrum wrote: >>> >>> Hans recommended: >>> >>> \stopfootnote{} >>> >> >> Thank you. >> >> This will work, but it is pretty ugly.% >> \startfootnote >> Hopefully Hans will fix this in mkiv. >> \stopfootnote{} >> In the meantime, we will just have to make do, >> but the special syntax as seen here raises eyebrows >> with my MS-Word bound collaborators. > Maybe for now > \let\StartFootnote\startfootnote > \def\StopFootnote{\stopfootnote{}} > and after fix > \let\StartFootnote\startfootnote > \let\StopFootnote\stopfootnote How would that help? \somecommand automatically gobbles the next space. > > > ___ 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 ___
Re: [NTG-context] \setupnote (was subfootnote)
On Tue, Oct 12, 2010 at 12:27 PM, Alan BRASLAU wrote: > On Tuesday 12 October 2010 11:54:28 Steffen Wolfrum wrote: >> >> Hans recommended: >> >> \stopfootnote{} >> > > Thank you. > > This will work, but it is pretty ugly.% > \startfootnote > Hopefully Hans will fix this in mkiv. > \stopfootnote{} > In the meantime, we will just have to make do, > but the special syntax as seen here raises eyebrows > with my MS-Word bound collaborators. Maybe for now \let\StartFootnote\startfootnote \def\StopFootnote{\stopfootnote{}} and after fix \let\StartFootnote\startfootnote \let\StopFootnote\stopfootnote -- luigi ___ 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 ___
Re: [NTG-context] \setupnote (was subfootnote)
On Tuesday 12 October 2010 11:54:28 Steffen Wolfrum wrote: > > Hans recommended: > > \stopfootnote{} > Thank you. This will work, but it is pretty ugly.% \startfootnote Hopefully Hans will fix this in mkiv. \stopfootnote{} In the meantime, we will just have to make do, but the special syntax as seen here raises eyebrows with my MS-Word bound collaborators. Alan ___ 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 ___
Re: [NTG-context] \setupnote (was subfootnote)
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{}) >> >> 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? Hans recommended: \stopfootnote{} Steffen ___ 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 ___
Re: [NTG-context] \setupnote (was subfootnote)
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{}) > > 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? Alan ___ 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 ___