Placing an Entry Under Two Headings
To have an entry appear under two headings in the index, include two index elements for the same entry. Add a sortas attribute value for one of them. The following example generates an index entry for Psychiatry under both P and S.
<indexterm><primary>Psychiatry</primary></indexterm>
<indexterm><primary sortas ="S">Psychiatry</primary></indexterm>
|
This example is in “raw” XML. When you add the sortas attribute in the Modify Attributes dialog box, you do not include the quotation marks. You simply add S for the value.
|
Remember that the sort key is case sensitive. The following example is incorrect:
<indexterm><primary sortas="f">Phlox</primary></indexterm>
<indexterm><primary sortas ="F">Philodendron</primary></indexterm>
Phlox would sort before Philodendron under the F alphabetical heading in the index.
Give indexterm elements the same sort key if they are related, and you want them all to appear under the same alternate heading.
<indexterm><primary sortas="K">Cookies</primary>
<secondary>Chocolate Chip</secondary></indexterm>
<indexterm><primary sortas ="K">Cookies</primary>
<secondary>Oatmeal Raisin</secondary></indexterm>