词汇表:‘查看’参考中的重音命令

词汇表:‘查看’参考中的重音命令

使用该包,用键glossaries引用另一个条目,如果引用标签的键具有重音命令,则会出现以下问题:\newglossaryentrysee=labelname=...

\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}

相关内容