[pdftex] hyperref + makeindex + font change
Marc LAZAREFF
Marc.Lazareff at onera.fr
Tue Mar 26 17:27:06 CET 2002
Hello,
I have been using PDFLaTeX with great pleasure for the documentation of
the elsA CFD (Computational Fluid Dynamics) software :
http://www.onera.fr
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}}}
= success
- pdflatex + hyperref + makeindex (without font change commands)
= success
- pdflatex + hyperref + makeindex + font change command
= ???
This is because the hyperref package :
Package: hyperref 2001/05/26 v6.71g Hypertext links for LaTeX
already uses the font change command for its own use, through the
'hyperpage' macro :
...
\def\hyperpage#1{\@hyperpage#1----\\}
\def\@hyperpage#1--#2--#3\\{%
\ifx\\#2\\%
\@commahyperpage{#1}%
\else
\hyperlink{page.#1}{#1}--\hyperlink{page.#2}{#2}%
\fi
}
...
\def\@wrindex#1{\@@wrindex#1||\\}
\def\@@wrindex#1|#2|#3\\{%
\ifx\\#2\\%
\protected at write\@indexfile{}{%
\string\indexentry{#1|hyperpage}{\thepage}%
...
and I could not find a viable modification to suit my purpose.
Thanks in advance for any help|direction|proof of impossibility,
Marc
--
Marc Lazareff Phone : 01 46 73 42 73
DSNA/ELSA E-Mail : Marc.Lazareff at onera.fr
ONERA 29,Ave de la Division Leclerc 92320 CHATILLON FRANCE
More information about the pdftex
mailing list