Hi Thomas,
> -----Ursprüngliche Nachricht-----
> Von: Thomas A. Schmitz <[email protected]>
> Gesendet: Mittwoch, 13. August 2025 21:26
> An: mailing list for ConTeXt users <[email protected]>
> 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 : [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
___________________________________________________________________________________