![\glsdesc 超链接](https://linux22.com/image/477156/%5Cglsdesc%20%E8%B6%85%E9%93%BE%E6%8E%A5.png)
如何删除 的链接\glsdesc
,同时保留 的链接\gls
?这可能吗?
(链接描述是没有意义的,因为词汇表没有提供任何额外信息。)
% arara: pdflatex
% arara: makeglossaries
% arara: pdflatex
\documentclass{article}
\usepackage{hyperref}
\usepackage[acronym,toc,style=listgroup]{glossaries}
\makeglossaries
\newglossaryentry{apc} {
name = {antigen presenting cell},
description = {cells that present MHC proteins on their surface},
}
\begin{document}
\Glspl{apc} are \glsdesc{apc}.
\printglossary
\end{document}
答案1
glossaries
提供\glsdesc*
删除超链接的功能:
\documentclass{article}
\usepackage{hyperref}
\usepackage[acronym,toc,style=listgroup]{glossaries}
\makeglossaries
\newglossaryentry{apc} {
name = {antigen presenting cell},
description = {cells that present MHC proteins on their surface},
}
\begin{document}
\Glspl{apc} are \glsdesc*{apc}.
\printglossary
\end{document}
如果你绝不想要超链接\glsdesc
宏,然后将以下内容添加到序言中后加载中glossaries
:
\let\oldglsdesc\glsdesc
\renewcommand{\glsdesc}{\oldglsdesc*}
\glsdesc
并照常使用。