+ {\begingroup\lccode`\~=`\_\lowercase{\endgroup\def~{_}}%
+ \protected@edef\@tempa##1{%
+ \noexpand\index{%
+ #1@{\noexpand\code{#1}}!%
+ \csname cat!#2\endcsname%
+ ##1%
+ }%
+ }%
+ \@tempa{|(}%
+ \toks@\expandafter{\after@desc}%
+ \toks\tw@\expandafter{\@tempa{|)}}%
+ \xdef\after@desc{\the\toks@\the\toks\tw@}}%
+ \rlap{\hb@xt@\linewidth{\hfil\normalfont\bfseries
+ [\describecategoryname{#2}]}}%