[NTG-context] How to preserve a TeX token list across passes (the ConTeXt way)?

Jyrki Ruuskanen yuruki at kotikone.fi
Thu May 11 19:50:55 CEST 2006


Ok, the module is read in cont-sys.rme with \usemodule[jtex]. It  
initializes the lists inside protect / unprotect pair with \newtoks 
\usedAbbreviations and \newtoks\usedReferences along with macro  
definitions.

Abbreviations are introduced with \setAbbreviation[<key>]{<abbr>} 
{<meaning>}{<description>} which defines macros \<key> \<key>@meaning  
and \<key>@description. Each call to \<key> calls \writeutilitycommand 
{\addToList[\string\usedAbbreviations]{<key>}, so after the first run  
the .tui file has a number of "c \addToList[\usedAbbreviations] 
{something}" lines in it.

Functionality is similar for the bibliography. The \cite command  
writes \addToList[\usedReferences]{<cite>} into .tui.

So, the .tuo file should populate used* lists and I could typeset the  
list of used abbreviations in initialization order with  
\executeListIntersection[\abbreviations][\usedAbbreviations] 
{\printAbbreviation}. Same for used bib references. But well, lists  
remain empty.

I'll attach the module and the .tui file.

And excuse me, I have never ever used a mailing list. How am I  
supposed to answer to a certain message in the chain? Thanks guys.

Jyrki

-------------- next part --------------
A non-text attachment was scrubbed...
Name: final.tui
Type: application/octet-stream
Size: 34611 bytes
Desc: not available
Url : http://www.ntg.nl/pipermail/ntg-context/attachments/20060511/c0e4eba3/attachment-0002.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t-jtex.tex
Type: application/octet-stream
Size: 5192 bytes
Desc: not available
Url : http://www.ntg.nl/pipermail/ntg-context/attachments/20060511/c0e4eba3/attachment-0003.obj 


More information about the ntg-context mailing list