By default, the glossaries package creates a link to the glossary for each occurrence of an entry (e.g. each time I use \gls{entry}). With the links visualized (e.g. using hyperref colorlinks). This becomes really cluttered if an entry is used many times.

I would rather prefer that only the first occurrence of an entry is hyperlinked. Is this possible?


2 Answers 2


While you can manually renounce the hyperlink by using \glsentrytext{entry}, or \glsentryname{entry}, or \gls*{entry} instead of \gls{entry}, this is cumbersome, as one would have to track the place of the first usage oneself.

An automatic approach is to patch \@gls@:



%% patch first occurence of "\@gls@link[#1]{#2}{\@glo@text}", as this is the one for \glsused{#2}

  description={an oddly shaped fruit}

\gls{pear}, \gls{pear}, \gls{pear}, \gls{pear}.


If you also use upper case variants \Gls and \GLS, the respective internal macros \@Gls@ and \@GLS@ need similar patching:


  • 1
    What about \glslink{...}? Commented Oct 2, 2016 at 20:55

There's a hook \glslinkcheckfirsthyperhook that gets used by commands like \gls. It's original purpose was to assist with the opposite (don't hyperlink on first use) but it also can be used in this situation:





\newglossaryentry{sample}{name={sample},description={an example}}
\newglossaryentry{sample2}{name={another sample},description={another example}}


First use: \gls{sample}, \gls{sample2}.

Next use: \gls{sample}, \gls{sample2}.



This produces:

image of document with hyperlinks for first use only

Edit: This works for all the \gls-like commands that query the first use flag (e.g. \Gls and \glsdisp). It doesn't work for the \glstext-like commands that don't query the first use flag (e.g. \glstext and \glslink).

  • What about \glslink{...}, \Gls{...} and others? Commented Oct 2, 2016 at 20:53
  • @patryk.beza I've updated my answer. Commented Oct 3, 2016 at 7:32
  • @NicolaTalbot is it possible to use this method also for section- or chapter-wise logic?
    – languitar
    Commented Nov 29, 2017 at 9:49
  • @languitar One possibility would be to hook into \section or \chapter etc to unset the first use flags. Commented Dec 1, 2017 at 12:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .