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.

I am using the glossaries package a lot in my thesis. There are some entries which appear very frequently throughout the whole document. I would like to disable hyperlinking for these entries but keep it for all other entries.

I have tried putting \glsdisablehyper just before the frequent entries to no avail.

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

For these "frequently appearing" entries use the starred versions of glossaries' user commands (e.g. \gls*) which suppress hyperlinks.

\documentclass{article}

\usepackage{hyperref}

\usepackage{glossaries}
\makeglossaries

\newglossaryentry{electrolyte}{name=electrolyte,
    description={solution able to conduct electric current}}

\newglossaryentry{pi}{name={\ensuremath{\pi}},
    description={ratio of circumference of circle to its diameter},sort=pi}

\begin{document}

Some text about \gls{electrolyte} and \gls*{pi}.

\printglossaries

\end{document}
share|improve this answer
1  
Is there anyway to disable them (from the command definition?), as I don't want to go through the document and change them all. Thanks for the answer by the way –  Wolfgang Kerzendorf Aug 17 '11 at 1:32
add comment

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.