词汇表“查看”键,如何以点而不是逗号结尾?

词汇表“查看”键,如何以点而不是逗号结尾?

我正在使用“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}

image of glossary with anchor bend See fisherman’s bend. 1

\makenoidxglossaries方法很方便,不需要调用外部工具,但是效率很低并且无法将页面引用整理到范围内。如果您愿意尝试其他方法,glossaries-extra包装bib2gls提供了更好的解决方案,因为它允许您设置别名。

相关内容