我在我的文档中使用该glossaries-extra
包。以下是摘录:
\chapter{List of Nicknames}
\label{chapter:nicknames}
% PAGE 4 OF THE OUTPUT PDF
% I am actually using the `acronyms` package in conjunction with `glossaries`, but I removed it from this post in the interest of clarity.
\begin{itemize}
\item \gls{Joseph} is also called ``Joe."
\item \gls{Robert} goes by ``Bob."
\item \gls{Samantha}'s nickname is ``Sam."
\end{itemize}
% ... Some other chapters ...
\chapter{Walmart}
% PAGE 7 OF THE OUTPUT PDF
\gls{Joseph} (Joe) was going to Walmart one day, and he ran into \gls{Robert} (Bob) and \gls{Samantha} (Sam).
% ... Some more paragraphs ...
% PAGE 8 OF THE OUTPUT PDF
When they got into the store, \gls{Joseph} asked \gls{Robert} to give him advice on a critical quandary: should he buy Cheerios or Rice Chex?
我希望我的词汇表看起来像这样:
乔7、8
(乔的描述)鲍勃7、8
(鲍勃的描述)莎莉7
(莎莉的描述)
...不是这:
乔4、7、8
(乔的描述)鲍勃4、7、8
(鲍勃的描述)莎莉4、7
(莎莉的描述)
换句话说:当我用\printunsrtglossaries
,我不我想要“昵称列表”一章的页码。我做但是,想要“沃尔玛”一章中词汇表引用的页码。我怎样才能做到这一点?
第 4 页的参考文献仍应关联到词汇表条目,但他们不应出现在页码列表中。
我不想要使用首字母缩略词功能的答案glossaries
。如果“缩写列表”一章中有其他命令可以代替\gls
(例如,或其他命令),那就没问题。如果有一个命令可以用来从\glsNoPageNum
全部的chapter(例如,\glsExcludeNumbersFrom{chapter:nicknames}
或其他内容),那就更好了。请避免重新定义 CTAN 包中已经存在的宏。