| [ << Documentation work ] | [Top][Contents] | [ Website work >> ] |
| [ < Fixed-width font ] | [ Up: Syntax survey ] | [ Lists > ] |
Indexing
Use the following two commands.
-
@cindex …– for the general index -
@funindex …– for commands and properties like\barorleft-margin
Here are some rules how index entries should look like.
- Only capitalize the first word of a
@cindexentry if you would do so in the middle of an English sentence. Examples:@cindex ancient clef @cindex Kievan clef
@funindexentries are written as-is; don’t omit the leading backslash if there is one. - Use singular forms as much as possible. After a comma, use
whatever looks better. Examples:
@cindex clef @cindex fingering instruction, for chords
- Permute index entries if it makes sense. Example:
@cindex ancient note head @cindex note head, ancient
- Try to make entries fit into groups so that the printed index
looks like this:
… text, framing text, horizontal alignment text, in columns text, in volta bracket text, justified …
- Don’t insert
@funindex{\foo}and@cindex{\foo}simultaneously. - If both
fooand\fooneed to be indexed with@funindexyou have to use the@funindexpreor@funindexpostcommand:@funindexpre foogets sorted before@funindex \foo, and@funindexpost \foogets sorted after@funindex foo. Example:@funindex [ @funindexpost \[
- If you mention entities in a
@cindexentry that would normally be entered with@funindex, use@codeto mark them. Example:@cindex @code{\context}, in @code{\layout} block - To get a literal ‘{’ or ‘}’ in an index, write
@{and@}, respectively. - As of November 2022, if an index entry starts with an accented
character, use a Texinfo accent macro instead of the real
character. For example, an index entry for ‘Äolisch’ should be
entered as
@cindex @"Aolisch
to circumvent a problem with
texindex(used by Texinfo to sort and unify index entries in PDF output): this program currently has no support for locale-specific collation. In the above example, the entry is now sorted as ‘Aolisch’.In case this is not sufficient it is always possible to explicitly specify a sorting key using the
@sortascommand: Assuming that entries starting with letter ‘ä’ must be sorted after all entries starting with letter ‘a’, writing@cindex @sortas{azzzAolisch} Äolischwould make this work. Unfortunately, this trick doesn’t create an initial letter in the printed index for entries starting with ‘Ä’.
| [ << Documentation work ] | [Top][Contents] | [ Website work >> ] |
| [ < Fixed-width font ] | [ Up: Syntax survey ] | [ Lists > ] |