* Automatic numbering of footnotes set with \note (not with \footnote)
@ 2023-03-15 9:19 Joaquín Ataz López via ntg-context
2023-03-16 11:19 ` Bruce Horrocks via ntg-context
0 siblings, 1 reply; 3+ messages in thread
From: Joaquín Ataz López via ntg-context @ 2023-03-15 9:19 UTC (permalink / raw)
To: Joaquín Ataz López via ntg-context; +Cc: Joaquín Ataz López
Good Morning to all list members.
I am writing a document with very long footnotes, and in order not to
break (in the source file) the flow of the main text, instead of using
the \footnote macro, I introduce the footnotes using \note[label] at the
point where the call to the footnote should be placed, and in a separate
place in the source file I write the text associated to the footnote
using \footnotetext[label].
This works quite well and allows to create a more readable source file.
There is, nevertheless, a small inconvenience, and it is that when
processing the document ConTeXt goes numbering automatically the notes,
attending to the order in which they are, in the source file, the
\footnotetext commands. Would there be a simple way so that the
automatic numbering follows the order of the \note commands, and not
that of \footnotetext? Maybe something with \startbuffer combined with a
counter?
--
Joaquín Ataz López
Departamento de Derecho civil
Universidad de Murcia
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Automatic numbering of footnotes set with \note (not with \footnote)
2023-03-15 9:19 Automatic numbering of footnotes set with \note (not with \footnote) Joaquín Ataz López via ntg-context
@ 2023-03-16 11:19 ` Bruce Horrocks via ntg-context
2023-03-16 16:41 ` Joaquín Ataz-López via ntg-context
0 siblings, 1 reply; 3+ messages in thread
From: Bruce Horrocks via ntg-context @ 2023-03-16 11:19 UTC (permalink / raw)
To: ntg-context mailing list; +Cc: Bruce Horrocks
I don't have the answer to your explicit question, but a work-around might be to put the footnotes into buffers instead of \footnotetext and then use /footnote[...]{\getbuffer[name]} in the body. That way ConTeXt sees them in order of appearance in the body and so the numbering should be as you want.
> On 15 Mar 2023, at 09:19, Joaquín Ataz López via ntg-context <ntg-context@ntg.nl> wrote:
>
> Good Morning to all list members.
>
> I am writing a document with very long footnotes, and in order not to break (in the source file) the flow of the main text, instead of using the \footnote macro, I introduce the footnotes using \note[label] at the point where the call to the footnote should be placed, and in a separate place in the source file I write the text associated to the footnote using \footnotetext[label].
>
> This works quite well and allows to create a more readable source file. There is, nevertheless, a small inconvenience, and it is that when processing the document ConTeXt goes numbering automatically the notes, attending to the order in which they are, in the source file, the \footnotetext commands. Would there be a simple way so that the automatic numbering follows the order of the \note commands, and not that of \footnotetext? Maybe something with \startbuffer combined with a counter?
>
> --
>
> Joaquín Ataz López
> Departamento de Derecho civil
> Universidad de Murcia
—
Bruce Horrocks
Hampshire, UK
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Automatic numbering of footnotes set with \note (not with \footnote)
2023-03-16 11:19 ` Bruce Horrocks via ntg-context
@ 2023-03-16 16:41 ` Joaquín Ataz-López via ntg-context
0 siblings, 0 replies; 3+ messages in thread
From: Joaquín Ataz-López via ntg-context @ 2023-03-16 16:41 UTC (permalink / raw)
To: ntg-context mailing list; +Cc: Joaquín Ataz-López
Thank you very much, it is a perfect solution.
El 16/3/23 a las 12:19, Bruce Horrocks escribió:
> I don't have the answer to your explicit question, but a work-around might be to put the footnotes into buffers instead of \footnotetext and then use /footnote[...]{\getbuffer[name]} in the body. That way ConTeXt sees them in order of appearance in the body and so the numbering should be as you want.
>
>> On 15 Mar 2023, at 09:19, Joaquín Ataz López via ntg-context <ntg-context@ntg.nl> wrote:
>>
>> Good Morning to all list members.
>>
>> I am writing a document with very long footnotes, and in order not to break (in the source file) the flow of the main text, instead of using the \footnote macro, I introduce the footnotes using \note[label] at the point where the call to the footnote should be placed, and in a separate place in the source file I write the text associated to the footnote using \footnotetext[label].
>>
>> This works quite well and allows to create a more readable source file. There is, nevertheless, a small inconvenience, and it is that when processing the document ConTeXt goes numbering automatically the notes, attending to the order in which they are, in the source file, the \footnotetext commands. Would there be a simple way so that the automatic numbering follows the order of the \note commands, and not that of \footnotetext? Maybe something with \startbuffer combined with a counter?
>>
>> --
>>
>> Joaquín Ataz López
>> Departamento de Derecho civil
>> Universidad de Murcia
> —
> Bruce Horrocks
> Hampshire, UK
>
--
Joaquín Ataz López
Departamento de Derecho civil
Universidad de Murcia
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-03-16 16:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-15 9:19 Automatic numbering of footnotes set with \note (not with \footnote) Joaquín Ataz López via ntg-context
2023-03-16 11:19 ` Bruce Horrocks via ntg-context
2023-03-16 16:41 ` Joaquín Ataz-López via ntg-context
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).