I am using the glossaries-extra package with hyperref. The problem I find occurs when I have a long (or unfortunately placed) long form of an acronym. In the case that I do not use breaklinks=true
with hyperref I get a badbox. If I do use the breaklinks=true
switch then the clickable links end up squished between lines.
\documentclass[]{memoir}
% V1 Causes a bad box
%\usepackage[]{hyperref}
% V2 Link box does not cover link
\usepackage[breaklinks=true]{hyperref}
\usepackage[acronyms,toc,symbols]{glossaries-extra}
\setabbreviationstyle[acronym]{long-short}
\newacronym{lng}{LONG}{This is a long form of an acronym which is very very very very very very very very long}
\begin{document}
Here is a long acronym: \gls{epc}
\end{document}
The output without use of breaklinks=true (V1) shows the badbox:
With the use of breaklinks=true (V2) the link area can be seen to be squashed between lines:
Ideally I would like the links to work nicely, though I would be quite happy with any tidy solution.
Information
- I am using Ghostscript V9.23 old Ghostscript was implicated in this question.
- My toolchain is
atex-dvips-ps2pdf
. I would like to keep this as it helps with .eps graphics inclusion.
breaklinks'. But driver
hdvips.def' does not support this. Expect trouble with the link areas of broken links.". Switch to another toolchain (pdflatex or latex+ dvipdfmx) if you want such links.\glssetcategoryattribute{acronym}{nohyperfirst}{true}
. Then only the shorter subsequent use will have hyperlinks.