带超链接的长格式词汇表

带超链接的长格式词汇表

我可以\glsentrylong使用长格式。但这不会生成词汇表部分中该部分的超引用。

我如何将长格式与超链接一起使用?就像\gls可以做的那样。

例子:

\documentclass{article}
\usepackage{hyperref}
\usepackage{glossaries}

\newacronym[
description={\Glsentrylong{nn}. Statistical model.}
]{nn}{NN}{neural network}

\makeglossaries

\begin{document}

\Gls{nn}.  % this has a hyperref. and also is backlinked in glossaries later.

\Gls{nn}.  % this as well

\Glsentrylong{nn}.  % this does not have a hyperref

\printglossary[title={Glossary}]

\end{document}

答案1

您正在使用首字母缩略词,然后使用 \Acrlong 获得长格式:

\documentclass{article}
\usepackage{hyperref}
\usepackage{glossaries}

\newacronym[
description={\Glsentrylong{nn}. Statistical model.}
]{nn}{NN}{neural network}

\makeglossaries

\begin{document}

\Gls{nn}.  % this has a hyperref. and also is backlinked in glossaries later.

\Gls{nn}.  % this as well

\Glsentrylong{nn}.  % this does not have a hyperref

\Acrlong{nn}

\printglossary[title={Glossary}]

\end{document}

在此处输入图片描述

相关内容