PIndexAutoName

Indexes the selected text as a proper name. Inserts an index marker before the text and adds the selection as an entry to the index, placing the first word after the remaining words and separating the last two words with a comma (for example, the index entry for "Frida Kahlo" would become "Kahlo, Frida").


Command constructor

PIndexAutoName();

Select the text first. Select the text you want to appear in the index before you execute this command.

Indexing names. To index a name composed of more than two words, insert a nonbreaking space (option + spacebar) between the words you want to keep together. For example, to have Vincent van Gogh appear as "van Gogh, Vincent" in the index, replace the space between "van"and "Gogh" with a nonbreaking space.

Example. The following example selects two words, inserts an index marker before the first word, and adds both words to the index, reversing their order and separating them with a comma.

PTextSelect(kTextAmtWordFor);
PTextSelect(kTextAmtWordFor);
PIndexAutoName();


See also

The PCreateIndex, PIndexAuto, and PIndexFormat commands

Adobe PageMaker 6.5 Help > Commands > Utilities > Create Index

Adobe PageMaker 6.5 Help > Commands > Utilities > Index Entry


Copyright © 1996, Adobe Systems Incorporated. All rights reserved.

Comments or suggestions? Contact Adobe Developer Support