Go to the first, previous, next, last section, table of contents.

Indexing commands

Here are the commands.

The commands above rely on MakeIndex's feature for separating sorting of an index entry's from its typesetting. You can use this directly by specifying an index entry as sort@typeset. For example:

\sidx{Ap-weight@$A_\pi$-weight}

will sort as Ap-weight, but print with the proper math. The @ here is MakeIndex's default character for this purpose. See section `Style File-MakeIndex' in MakeIndex. To make an index entry with an @ in it, you have to escape it with a backslash; Eplain provides no macros for doing this.

After any index command, Eplain runs \hookaction{afterindexterm}. Because the index commands always add a whatsit item to the current list, you may wish to preserve a penalty or space past the new item. For example, given a conditional \if@aftersctnhead set true when you're at a section heading, you could do:

\hookaction{afterindexterm}{\if@aftersctnhead \nobreak \fi}

Go to the first, previous, next, last section, table of contents.