我正在使用“see”键来处理词汇表中的某些条目。一切正常,只是每个带有“see”键的条目都会自动以逗号结尾,而我希望它以点结尾。我在词汇表文档中找不到如何更改这一点。有人知道吗?
这是我的 MWE 主要文档:
\documentclass{memoir}
\usepackage{color}
%%% HYPERREFERENES %%%
\definecolor{webgreen}{rgb}{0,.5,0}
\usepackage[backref=page]{hyperref}
\hypersetup{colorlinks=true, linkcolor=webgreen}
%%% GLOSSARY %%%
\usepackage[nopostdot]{glossaries}
\setglossarystyle{altlisthypergroup}
\glstoctrue
\makenoidxglossaries
\input{Glossary_mwe}
%%% DOCUMENT %%%
\begin{document}
\Gls{bowline_knot} is the most important knot for sailing.
\Gls{fishermans_bend} (also known as \gls{anchor_bend}) is used to tie a rope to an anchor chain (or to an anchor directly) or to a buoy.
\printnoidxglossaries
\end{document}
以下是 MWE 词汇表代码:
\newglossaryentry{anchor_bend}{
name={anchor bend},
description={\nopostdesc},
see=[\textnormal{See}]{fishermans_bend}
}
\newglossaryentry{bowline_knot}{
name={bowline knot},
description={A knot used to make a loop in the end of a rope. It is used to tie sheets and halyards to sails.}
}
\newglossaryentry{fishermans_bend}{
name={fisherman's bend},
description={A knot used to tie a rope to an anchor chain (or to an anchor directly) or to a buoy.}
}
答案1
如果您只想坚持使用基础glossaries
包,\makenoidxglossaries
那么最简单的方法就是删除see
密钥并将交叉引用放在描述中:
\documentclass{memoir}
\usepackage{color}
%%% HYPERREFERENES %%%
\definecolor{webgreen}{rgb}{0,.5,0}
\usepackage[backref=page]{hyperref}
\hypersetup{colorlinks=true, linkcolor=webgreen}
%%% GLOSSARY %%%
\usepackage[nopostdot]{glossaries}
\setglossarystyle{altlisthypergroup}
\glstoctrue
\makenoidxglossaries
\newglossaryentry{anchor_bend}{
name={anchor bend},
description={See \glsseelist{fishermans_bend}.}
}
\newglossaryentry{bowline_knot}{
name={bowline knot},
description={A knot used to make a loop in the end of a rope. It is used to tie sheets and halyards to sails.}
}
\newglossaryentry{fishermans_bend}{
name={fisherman's bend},
description={A knot used to tie a rope to an anchor chain (or to an anchor directly) or to a buoy.}
}
%%% DOCUMENT %%%
\begin{document}
\Gls{bowline_knot} is the most important knot for sailing.
\Gls{fishermans_bend} (also known as \gls{anchor_bend}) is used to tie a rope to an anchor chain (or to an anchor directly) or to a buoy.
\printnoidxglossaries
\end{document}
该\makenoidxglossaries
方法很方便,不需要调用外部工具,但是效率很低并且无法将页面引用整理到范围内。如果您愿意尝试其他方法,glossaries-extra
包装bib2gls
提供了更好的解决方案,因为它允许您设置别名。