Automatic numbering of footnotes set with \note (not with \footnote)
![](https://secure.gravatar.com/avatar/bea411d81b3c82114be80c0036b0609b.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/e0f8d84b235b67d60a3c7fd0e326db8d.jpg?s=120&d=mm&r=g)
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
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
![](https://secure.gravatar.com/avatar/bea411d81b3c82114be80c0036b0609b.jpg?s=120&d=mm&r=g)
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
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
participants (3)
-
Bruce Horrocks
-
Joaquín Ataz López
-
Joaquín Ataz-López