26.8 Escape String for Makeindex

Produce a string that can serve as a index entry.

324aauxiliary subroutines 301b+   (326)  323  324b
sub escapeForMakeindexText {
    my($s)=@_;
    $s = escapeForTTLatex($s);
    $s =~ s /!/\"!/g;
    return $s;
}

Defines:
escapeForMakeindexText, used in chunks 321 and 324b.

Uses escapeForTTLatex 325.

Produce a string that can serve as a index key.

324bauxiliary subroutines 301b+   (326)  324a  325
sub escapeForMakeindexKey {
    my($s)=@_;
    return &escapeForMakeindexText(&escapeForHyperref($s));
}

Defines:
escapeForMakeindexKey, used in chunk 321.

Uses escapeForHyperref 323 and escapeForMakeindexText 324a.