[Tex/LaTex] One way links to glossaries

glossarieshyperref

Is there any way to have hyperlinks to the glossaries/acronyms (using glossaries package) in only one direction? What I want is a link to the page where an acronym is used, in the list of acronyms. But I would like to disable the links to the page of the list acronyms, which are currently everywhere an acronym is used.

I was not able to find an answer after trying a lot of things. Is there any other way than to add an asterisk at every reference? Any help is appreciated!

EDIT: MWE as suggested (reference: How to combine Acronym and Glossary)

\documentclass{article}
\usepackage{hyperref}
\usepackage[acronym]{glossaries}
\makeglossaries

\newacronym{cd}{CD}{compact disk}

\begin{document}
\noindent
First use \gls{cd}\\
subsequent \gls{cd}

\printglossaries

\end{document}

enter image description here

What I want would look like this:

enter image description here

A similar question is unanswered here: Disable hyperlinks in some entries for glossaries

Best Answer

Putting my comments into an answer: the answer can be found in the user manual of glossaries. One can either turn off the hyperlinks of individual occurences by using \gls[hyper=false]{} or the shortcut \gls*{}. This is described in detail in section 6 “Links to Glossary Entries”.

If one wants to disable the links in general one can use the command \glsdisablehyper. (There is also \glsenablehyper which can be used to turn the links on again. Both commands act locally.) They are explaind in section 6.2 “Enabling and disabling hyperlinks to glossary entries”.

% arara: pdflatex
% arara: makeglossaries
% arara: pdflatex
\documentclass{article}
\usepackage{hyperref}
\usepackage[acronym]{glossaries}
\glsdisablehyper
\makeglossaries

\newacronym{cd}{CD}{compact disk}

\begin{document}
\noindent
First use \gls{cd} \\
subsequent \gls{cd} \\
linked {\glsenablehyper\gls{cd}} \\
not linked \gls{cd}

\printglossaries

\end{document}

enter image description here

Related Question