tufte-book 词汇表中的字母顺序错误

tufte-book 词汇表中的字母顺序错误

我在 Mac 上使用tufte-bookTeXShop 3.96 和以下相关代码:

\documentclass{article}



\usepackage{glossaries}

\makenoidxglossaries

\newglossaryentry{terminus ante quem}{
    name={terminus ante quem},
    description={(from Latin, \lq\lq term before which\rq\rq ) the latest possible time consistent with some event, such as the lastest possible date by which a particular artwork could have been executed.  (See also \lq\lq terminus post quem\rq\rq )}
}

\newglossaryentry{terminus post quem}{
    name={terminus post quem},
    description={(from Latin, \lq\lq term after which\rq\rq ) the earliest possible time consistent with some event, such as the earliest possible date by which a particular artwork could have been executed.  (See also \lq\lq terminus ante quem\rq\rq )}
}
\begin{document}

xxx \gls{terminus ante quem}

xxx \gls{terminus post quem}

\printnoidxglossary
\end{document}

不幸的是,字母顺序被颠倒了(仅在这两个条目上):

在此处输入图片描述

关于如何保留正确的字母顺序,有什么建议吗?即使人为地切换词汇表中条目的顺序也不起作用。

答案1

我不确定我是否完全追踪了该包正在做什么,但您可以使用排序键来帮助它。

在此处输入图片描述

\documentclass{article}



\usepackage{glossaries}

\makenoidxglossaries

\newglossaryentry{terminus ante quem}{
    sort=terminusantequem,
    name={terminus ante quem},
    description={(from Latin, \lq\lq term before which\rq\rq ) the latest possible time consistent with some event, such as the lastest possible date by which a particular artwork could have been executed.  (See also \lq\lq terminus post quem\rq\rq )}
}

\newglossaryentry{terminus post quem}{
    sort=terminuspostquem,
    name={terminus post quem},
    description={(from Latin, \lq\lq term after which\rq\rq ) the earliest possible time consistent with some event, such as the earliest possible date by which a particular artwork could have been executed.  (See also \lq\lq terminus ante quem\rq\rq )}
}
\begin{document}

xxx \gls{terminus ante quem}

xxx \gls{terminus post quem}

\printnoidxglossary
\end{document}

相关内容