Re: footnotes in nodes
Thomas Meyer <[email protected]> Mon, 3 Aug 2026 10:14:23 +0200
| Newsgroups | gmane.comp.tex.context |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--===============5775186122399408841==
Content-Type: multipart/alternative;
boundary="------------RZj8KzbAJZ1Z3FDs0XCqbyea"
Content-Language: de-DE
This is a multi-part message in MIME format.
--------------RZj8KzbAJZ1Z3FDs0XCqbyea
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable
Hello Hans, and everyone else who replied!
In my view, there are three issues:
The incorrect footnote numbering, which was the first thing I noticed.
I hadn=E2=80=99t even noticed the baseline shift. On top of that, there=E2=
=80=99s a=20
different letter spacing when \footnote{} is used.
Added to that is the duplicate output when using `endnote` instead of=20
`footnote`.
So I=E2=80=99ll just have to manage without footnotes.
Greetings
Am 02.08.26 um 23:20 schrieb Hans Hagen via ntg-context:
> On 8/2/2026 8:07 PM, Jim Diamond via ntg-context wrote:
>> On Sun, Aug=C2=A0 2, 2026 at 12:27 (+0200), juh+ntg-context--- via=20
>> ntg-context wrote:
>>
>>> Am 01.08.26 um 19:36 schrieb Thomas Meyer:
>>
>>>> \starttext
>>
>>>> \startnodes [dx=3D1.75cm, dy=3D1cm]
>>>> \placenode [0,0] {bla}
>>>> \placenode [1,0] {bla\footnote{oh}}
>>>> \placenode [2,-1] {blaa\footnote{mhm}}
>>>> \placenode [3,0] {blubs}
>>>> \stopnodes
>>
>>>> \stoptext
>>> Is it only me or do you also see a shift in the lineheight at 1,0=20
>>> and 3,0??
>>
>> I see the second "bla" to be a tiny bit higher than the first "bla" an=
d
>> "blubs".
>>
>> I also see the footnotes starting at 3.=C2=A0 Does anyone else see tha=
t?=C2=A0=20
>> If so,
>> does that somehow make sense?
>
> i'm not in notes modes ... anyway, this is what happens:
>
> - for various reasons we process textexts twice
> - but not always
> - so we cannot use trialmode
> - we couldn't anyway because different note tags would result in=20
> dimensions being off
> - this kind of usage is rare so we don't take it into account
>
> one way out is:
>
> \enabletrackers[metapost.textexts]
>
> \starttext
>
> \enabledirectives[metapost.text.fasttrack]
>
> \startMPcode
> =C2=A0=C2=A0=C2=A0 draw textext("one \footnote{one}") withcolor red ;
> =C2=A0=C2=A0=C2=A0 draw textext("two \footnote{two}") xshifted 1cm ;
> =C2=A0=C2=A0=C2=A0 draw textext("two \footnote{two}") xshifted 2cm ;
> \stopMPcode
>
> \disabledirectives[metapost.text.fasttrack]
>
> \startMPcode
> =C2=A0=C2=A0=C2=A0 draw textext("one \footnote{one}") withcolor red ;
> =C2=A0=C2=A0=C2=A0 draw textext("two \footnote{two}") xshifted 1cm ;
> =C2=A0=C2=A0=C2=A0 draw textext("two \footnote{two}") xshifted 2cm ;
> \stopMPcode
>
> \stoptext
>
> which forces single pass mode but one looses the color option. Now,=20
> given time and motivation i can look into modernizing this (read: use=20
> mkxl features) but this is not code one wants to take risks with so it=20
> might be a secondary mechanism.
>
> I'll think abnout it once we are done with other metafun stuff we're=20
> working on.
>
> Hans
>
> -----------------------------------------------------------------
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0 Hans Hagen | PRAGMA ADE
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0 Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 tel: 038 477 53 69 | www.pragma-ad=
e.nl | www.pragma-pod.nl
> -----------------------------------------------------------------
> _______________________________________________________________________=
____________=20
>
> If your question is of interest to others as well, please add an entry=20
> to the Wiki!
>
> maillist : [email protected] /=20
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage=C2=A0 : https://www.pragma-ade.nl / https://context.aanhet.net=20
> (mirror)
> archive=C2=A0 : https://github.com/contextgarden/context
> wiki=C2=A0=C2=A0=C2=A0=C2=A0 : https://wiki.contextgarden.net
> _______________________________________________________________________=
____________=20
>
--------------RZj8KzbAJZ1Z3FDs0XCqbyea
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE html>
<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DUTF=
-8">
</head>
<body>
<font face=3D"Linux Libertine Mono O">Hello Hans, and everyone else
who replied!<br>
<br>
In my view, there are three issues:<br>
The incorrect footnote numbering, which was the first thing I
noticed.<br>
I hadn=E2=80=99t even noticed the baseline shift. On top of that, t=
here=E2=80=99s
a different letter spacing when \footnote{} is used.<br>
Added to that is the duplicate output when using `endnote` instead
of `footnote`.<br>
So I=E2=80=99ll just have to manage without footnotes.<br>
<br>
Greetings</font><br>
<br>
<div class=3D"moz-cite-prefix">Am 02.08.26 um 23:20 schrieb Hans Hage=
n
via ntg-context:<br>
</div>
<blockquote type=3D"cite"
cite=3D"mid:[email protected]">On
8/2/2026 8:07 PM, Jim Diamond via ntg-context wrote:
<br>
<blockquote type=3D"cite">On Sun, Aug=C2=A0 2, 2026 at 12:27 (+0200=
),
juh+ntg-context--- via ntg-context wrote:
<br>
<br>
<blockquote type=3D"cite">Am 01.08.26 um 19:36 schrieb Thomas
Meyer:
<br>
</blockquote>
<br>
<blockquote type=3D"cite">
<blockquote type=3D"cite">\starttext
<br>
</blockquote>
</blockquote>
<br>
<blockquote type=3D"cite">
<blockquote type=3D"cite">\startnodes [dx=3D1.75cm, dy=3D1cm]
<br>
\placenode [0,0] {bla}
<br>
\placenode [1,0] {bla\footnote{oh}}
<br>
\placenode [2,-1] {blaa\footnote{mhm}}
<br>
\placenode [3,0] {blubs}
<br>
\stopnodes
<br>
</blockquote>
</blockquote>
<br>
<blockquote type=3D"cite">
<blockquote type=3D"cite">\stoptext
<br>
</blockquote>
Is it only me or do you also see a shift in the lineheight at
1,0 and 3,0??
<br>
</blockquote>
<br>
I see the second "bla" to be a tiny bit higher than the first
"bla" and
<br>
"blubs".
<br>
<br>
I also see the footnotes starting at 3.=C2=A0 Does anyone else se=
e
that?=C2=A0 If so,
<br>
does that somehow make sense?
<br>
</blockquote>
<br>
i'm not in notes modes ... anyway, this is what happens:
<br>
<br>
- for various reasons we process textexts twice
<br>
- but not always
<br>
- so we cannot use trialmode
<br>
- we couldn't anyway because different note tags would result in
dimensions being off
<br>
- this kind of usage is rare so we don't take it into account
<br>
<br>
one way out is:
<br>
<br>
\enabletrackers[metapost.textexts]
<br>
<br>
\starttext
<br>
<br>
\enabledirectives[metapost.text.fasttrack]
<br>
<br>
\startMPcode
<br>
=C2=A0=C2=A0=C2=A0 draw textext("one \footnote{one}") withcolor red=
;
<br>
=C2=A0=C2=A0=C2=A0 draw textext("two \footnote{two}") xshifted 1cm =
;
<br>
=C2=A0=C2=A0=C2=A0 draw textext("two \footnote{two}") xshifted 2cm =
;
<br>
\stopMPcode
<br>
<br>
\disabledirectives[metapost.text.fasttrack]
<br>
<br>
\startMPcode
<br>
=C2=A0=C2=A0=C2=A0 draw textext("one \footnote{one}") withcolor red=
;
<br>
=C2=A0=C2=A0=C2=A0 draw textext("two \footnote{two}") xshifted 1cm =
;
<br>
=C2=A0=C2=A0=C2=A0 draw textext("two \footnote{two}") xshifted 2cm =
;
<br>
\stopMPcode
<br>
<br>
\stoptext
<br>
<br>
which forces single pass mode but one looses the color option.
Now, given time and motivation i can look into modernizing this
(read: use mkxl features) but this is not code one wants to take
risks with so it might be a secondary mechanism.
<br>
<br>
I'll think abnout it once we are done with other metafun stuff
we're working on.
<br>
<br>
Hans
<br>
<br>
-----------------------------------------------------------------
<br>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0 Hans Hagen | PRAGMA ADE
<br>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0 Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
<br>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 tel: 038 477 53 69 | <a class=3D=
"moz-txt-link-abbreviated" href=3D"http://www.pragma-ade.nl">www.pragma-a=
de.nl</a> | <a class=3D"moz-txt-link-abbreviated" href=3D"http://www.prag=
ma-pod.nl">www.pragma-pod.nl</a>
<br>
-----------------------------------------------------------------
<br>
_________________________________________________________________________=
__________
<br>
If your question is of interest to others as well, please add an
entry to the Wiki!
<br>
<br>
maillist : <a class=3D"moz-txt-link-abbreviated" href=3D"mailto:ntg=
[email protected]">[email protected]</a> /
<a class=3D"moz-txt-link-freetext" href=3D"https://mailman.ntg.nl/m=
ailman3/lists/ntg-context.ntg.nl">https://mailman.ntg.nl/mailman3/lists/n=
tg-context.ntg.nl</a>
<br>
webpage=C2=A0 : <a class=3D"moz-txt-link-freetext" href=3D"https://=
www.pragma-ade.nl">https://www.pragma-ade.nl</a> / <a class=3D"moz-txt-li=
nk-freetext" href=3D"https://context.aanhet.net">https://context.aanhet.n=
et</a>
(mirror)
<br>
archive=C2=A0 : <a class=3D"moz-txt-link-freetext" href=3D"https://=
github.com/contextgarden/context">https://github.com/contextgarden/contex=
t</a>
<br>
wiki=C2=A0=C2=A0=C2=A0=C2=A0 : <a class=3D"moz-txt-link-freetext" h=
ref=3D"https://wiki.contextgarden.net">https://wiki.contextgarden.net</a>
<br>
_________________________________________________________________________=
__________
<br>
</blockquote>
<br>
</body>
</html>
--------------RZj8KzbAJZ1Z3FDs0XCqbyea--
--===============5775186122399408841==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : [email protected] / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
--===============5775186122399408841==--