使用该包,用键glossaries
引用另一个条目,如果引用标签的键具有重音命令,则会出现以下问题:\newglossaryentry
see=label
name=...
\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}
如何解决这个问题?
答案1
使用该sanitize
选项。请参阅词汇表第 26-27 页文档了解详情(并留意可能产生的不利影响)。
\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}