Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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}

current output

What I want would look like this:

output needed

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

share|improve this question
2  
Use \gls[hyper=false]{cd} or \gls*{cd}. –  cgnieder Sep 23 '12 at 14:52
    
Thanks cgnieder! Is there any other way than to edit every reference with an asterisk? –  RLOA Sep 23 '12 at 14:58
4  
There is \glsdisablehyper. Just add that to your preabmle after \usepackage{glossaries} –  cgnieder Sep 23 '12 at 15:14
    
Thanks! Exactly what I was looking for. –  RLOA Sep 23 '12 at 15:18

1 Answer 1

up vote 9 down vote accepted

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

share|improve this answer
    
Thanks again cgnieder. I did go through the manual but misunderstood this command for disabling links in both ways. Hence never tried it. –  RLOA Sep 23 '12 at 15:38
    
@RLOA you're welcome! :) –  cgnieder Sep 23 '12 at 16:17

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.