我在 Mac 上使用tufte-book
TeXShop 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}