在我的报告中,我使用了一些术语,但这些术语可能不是每个人都清楚的。因此,我制作了一个术语章节,对所有这些术语进行了解释。我想为术语章节中的所有单词添加指向本章的超链接引用。例如,文本中使用了术语“NDC”。用户应该能够单击单词“NDC”并自动转到术语章节中解释该单词的位置。
我研究了一下这个hyperlink
包。有了这个包,这就可以实现,但我必须为文本中的每个单词添加一个引用。我希望有一个包可以自动帮我完成这个任务。有这样的包吗?
编辑:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[acronym]{glossaries}
\makeglossaries
\newglossaryentry{latex}
{
name=latex,
description={Is a mark up language specially suited for
scientific documents}
}
\newglossaryentry{maths}
{
name=mathematics,
description={Mathematics is what mathematicians do}
}
\newglossaryentry{formula}
{
name=formula,
description={A mathematical expression}
}
\newacronym{gcd}{GCD}{Greatest Common Divisor}
\newacronym{lcm}{LCM}{Least Common Multiple}
\begin{document}
The \Gls{latex} typesetting markup language is specially suitable
for documents that include \gls{maths}. \Glspl{formula} are
rendered properly an easily once one gets used to the commands.
Given a set of numbers, there are elementary methods to compute
its \acrlong{gcd}, which is abbreviated \acrshort{gcd}. This
process is similar to that used for the \acrfull{lcm}.
\clearpage
\printglossary[type=\acronymtype]
\printglossary
\end{document}