Also, it might be useful to take xml out of the equation here and rephrase the 
question.

Can you add backlinks to the page where an endnote was inserted?

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%\setupnotation[endnote][] % can you refer to the pagenum of footnote marker 
here?

\starttext

asfd\endnote{Endnote 1}

\page

asfd\endnote{Endnote 2}

\page

Asfd\endnote{Endnote3}

\page

\placenotes[endnote]

\stoptext

%%%%%%%%%%%%%%%%%%%%%%%%%%%

> -----Ursprüngliche Nachricht-----
> Von: Denis Maier via ntg-context <ntg-context@ntg.nl>
> Gesendet: Mittwoch, 13. August 2025 21:49
> An: 'mailing list for ConTeXt users' <ntg-context@ntg.nl>
> Cc: denisma...@mailbox.org
> Betreff: [NTG-context] Re: Notes at end of book
> 
> Hi Thomas,
> 
> > -----Ursprüngliche Nachricht-----
> > Von: Thomas A. Schmitz <thomas.schm...@uni-bonn.de>
> > Gesendet: Mittwoch, 13. August 2025 21:26
> > An: mailing list for ConTeXt users <ntg-context@ntg.nl>
> > Betreff: [NTG-context] Re: Notes at end of book
> >
> > Denis, Hraban, Hans,
> >
> > thanks for your comments and suggestions! Yes, the footnotes have page
> > references in the tuc file; Hans even taught me how to access the page
> > number from the Lua end some time ago, so I'm good here! And one thing
> > that I understood reading your
> > comments: it's probably nonsense to save the notes in a separate file;
> > I already have their content, order, and reference ids in the single
> > files. All I have to do is process these a second time, filtering out
> > the notes, and dropping everything else. I'm pretty sure I know how to
> > do this. However, if this is going to work, I will have to remove the
> > first set of setups and reprocess the files with a different one. I
> > assume that this is a case for the likes of \xmlremovesetup (or
> > \xmlresetsetups? or
> > \xmlresetdocumentsetups?) and then create a new one with
> > \startxmlsetups xml:myallnewsetups \xmlregistersetup{xml:myallnewsetups}?
> 
> I'm not sure you need this. I've recently had a project where I've processed 
> a single
> source XML multiple times. Each environment contains a set of xmlsetups that 
> work
> for the relevant node.
> 
> 
> \environment layout
> \environment bits-inkunabeln
> \environment bits-einleitung
> \environment bits-register
> \environment bits-ack
> \environment bits-biblio
> \environment bits-glossary
> 
> \starttext
> 
> % INTRODUCTION
> \begingroup
> \setups{einleitung}
> \xmlprocessfile{bits-einleitung}{bits.xml}{}
> \endgroup
> 
> 
> % ACKNOWLEDGEMENTS
> \begingroup
> \setups{einleitung}
> \xmlprocessfile{bits-ack}{bits.xml}{}
> \endgroup
> 
> % ABBREVIATIONS
> \begingroup
> \xmlprocessfile{bits-glossary}{bits.xml}{}
> \endgroup
> 
> % BIBLIOGRAPHY
> \begingroup
> \xmlprocessfile{bits-biblio}{bits.xml}{}
> \endgroup
> 
> % MONGOLICA
> \begingroup
> \xmlprocessfile{bits-inkunabeln}{bits.xml}{}
> \endgroup
> 
> % INDEX
> \begingroup
> \setups{register}
> \xmlprocessfile{bits-index}{bits.xml}{}
> \endgroup
> 
> \stoptext
> 
> ___________________________________________________________________
> ________________
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> 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
> ___________________________________________________________________
> ________________

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
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
___________________________________________________________________________________

Reply via email to