# [texhax] index entries in latex/makeindex, post 2

Tue Dec 16 17:54:48 CET 2008

```On Dec 16, 2008, at 11:14 AM, Zbigniew Nitecki wrote:

> \newcommand{\Descartesref}{\nameref{Ren\'e}{Descartes}{1596}{1650}}

It's an expansion issue.

You need to define the \'e as a ``protected command'' so that it'll
only be expanded later (or use an indexing tool which is 8-bit safe
and enter it as é)

Try:

\newcommand{\LCacuteE}{\'e}

\newcommand{\PLCacutee}{\protect\LCacuteE}

> \newcommand{\Descartesref}{\nameref{Ren\PLCacutee}{Descartes}{1596}
> {1650}}

You might need to add a second level (a protected command in between
the two I defined above and have the last call the middle command).

William

--