Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Using the glossaries package, referencing another entry in \newglossaryentry with the see=label key, the following problem occurs if the name=... key of the referenced label has accent commands:

\newglossaryentry{right-view}
{name={Right View},
description={The first factor of the Noble Eightfold Path},
see=samma-ditthi}

\newglossaryentry{samma-ditthi}
{name={samm\=a-di\d{t}\d{t}hi},
description={Right View, the first of the eight factors of the Noble Eightfold Path, the path leading to \textit{nibb\=ana}. In the highest sense to have Right View means to understand the Four Noble Truths}}

\gls{right-view}, \gls{samma-ditthi}

How to fix this?

share|improve this question
    
I removed the {cross-referencing} tag from this question (and from two others). The tag is more appropriate for questions about \label and \ref. –  lockstep Apr 4 '11 at 12:23
add comment

1 Answer 1

up vote 1 down vote accepted

Use the sanitize option. See p. 26--27 of the glossaries documentation for details (and keep an eye out for possible adverse effects).

\documentclass{article}

\usepackage[sanitize=none]{glossaries}
\makeglossaries

\newglossaryentry{right-view}
{name={Right View},
description={The first factor of the Noble Eightfold Path},
see=samma-ditthi}

\newglossaryentry{samma-ditthi}
{name={samm\=a-di\d{t}\d{t}hi},
description={Right View, the first of the eight factors of the Noble Eightfold Path, the path leading to \textit{nibb\=ana}. In the highest sense to have Right View means to understand the Four Noble Truths}}

\begin{document}

\gls{right-view}, \gls{samma-ditthi}

\printglossaries

\end{document}
share|improve this answer
    
Marvellous! Goodness gracious I've been poring over the wrong parts of the documentation. –  Nyiti Apr 4 '11 at 17:10
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.