Open main menu

Changes

Add paragraph about footnote numbers in registers; expansion in xml.
* Uppercase-letter index heads: {{cmd|setupregister}}<tt>[index][n=2,command=\Word,style=normal]</tt>
* Place a word in text ''and'' index: <tt>\def\Tindex#1{\index{#1}#1}</tt> -- Please someone enhance this to get space correction, [] sorting etc.!
* If you want to use register commands in xml setups, remember that they need to be enclosed within <tt>\expanded {...}</tt>; for details, see [[System_Macros/Expansion_Control]].
* {{cmd|writetoregister}} (sometimes needed to avoid macro expansion issues, '''MkII only''')
The vertical spaces between the entry groups for subsequent letters is governed by the parameter <tt>before</tt> in the same command (default: <tt>\blank</tt>, change to <tt>before={}</tt> to get no additional space).
 
== Footnote numbers in registers ==
 
If you want index terms that appear in footnotes (instead of in the main text) to show the footnote number in their index entries, you can use the {{cmd|setregisterentry}} command. Wolfgang gave an example of how to use the optional third argument to achieve this:
 
<texcode>
\def\IndexPageCommand#1%
{#1\doifsomething
{\currentregisterpageuserdata{footnote}}
{\high{\currentregisterpageuserdata{footnote}}}}
 
\setupregister[index][pagecommand=\IndexPageCommand]
</texcode>
 
To mark up terms within footnotes, you would then use:
 
<texcode>
\expanded{\setregisterentry[index][entries={Indexentry}][footnote={\rawcountervalue[footnote]}]
</texcode>
=Sorting=
gardener
112

edits