[pdftex] hyperref + makeindex + font change
Heiko Oberdiek
oberdiek at ruf.uni-freiburg.de
Wed Mar 27 10:39:58 CET 2002
On Tue, 26 Mar 2002, Marc LAZAREFF wrote:
> but I just stumbled on a fine point :
>
> - latex + makeindex + font change commands :
>
> \newcommand{\eldfindx}[1]{{\bfseries#1}} % definition for some elsA
> notion
> \newcommand{\fcname}[2][]{{\nobreak\sttfont #2}\cohchk{fcname :
> #2}\ifthenelse{\equal{#1}{def}}{\index{#2|eldfindx}}{\index{#2}}}
> already uses the font change command for its own use, through the
> 'hyperpage' macro :
\eldfindx and \hyperpage cannot be nested through
the |-syntax of \index command. But a \hypereldfindx
can be defined:
\newcommand*{\hypereldfindx}[1]{{\bfseries\hyperpage{#1}}}
...\index{#2|hypereldfindx}...
or
\providecommand*{\hyperpage}[1]{#1}
\newcommand*{\eldfindx}[1]{{\bfseries\hyperpage{#1}}}
...\index{#2|eldfindx}...
Yours sincerely
Heiko <oberdiek at uni-freiburg.de>
More information about the pdftex
mailing list