Latest news 2021-09-06: new blog post "Legacy Documents and TeX Live Docker Images".

glossaries package FAQ

When I use the hyperlink to take me to an entry in the glossary, the relevant line is just above the top edge of the viewer. 🔗

As from glossaries v1.16, this shouldn’t occur. For earlier versions use:

\newlength\mylen
\makeatletter
\renewcommand{\@glstarget}[2]{%
\settoheight{\mylen}{#2}\raisebox{\mylen}{\hypertarget{#1}{}}#2}
\makeatother
(\@glstarget is an internal command, so it should go between \makeatletter and \makeatother in the .tex file. If you put the above code into a style file, remember to remove the \makeatletter and \makeatother commands.)

Note that this pre-v1.16 fix is only required for the glossary styles that use lists.

2020-06-27 14:38:49


Permalink: https://www.dickimaw-books.com/faq.php?id=31
Alternative link: https://www.dickimaw-books.com/faq.php?itemlabel=hypertarget

Category: glossaries package
Topic: Unexpected Output in the Glossaries