hyperref for acronyms in PDF document

Issue #67 invalid
Matthias Rüster
created an issue

Somehow the setting for hyperref = true does not work or I am doing something wrong.

I've set the option explicitly, but it seems not to work. There are no links set for the acronyms jumping to the list of abbreviations.

On the other hand the acronyms in the documentation have this feature... How can I get this work in my document too?

\documentclass{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\usepackage{acro}
\usepackage{calc,enumitem}

\newlist{acronym}{description}{1}
\setlist[acronym]{labelwidth=\widthof{\descriptionlabel{OGC}}}

\DeclareAcroListStyle{mystyle}{list}{
  list = acronym
}

\acsetup{
  list-style = mystyle,
  hyperref = true
}

\DeclareAcronym{OGC}{
    short = OGC ,
    long = Open Geospatial Consortium
}
\DeclareAcronym{WFS}{
    short = WFS ,
    long = Web Feature Service
}

\begin{document}

\acuseall{}
\noindent
Click on this \ac{OGC}. Or this: \ac{WFS}

\pagebreak
\printacronyms

\end{document}

Comments (6)

  1. Clemens Niederberger repo owner

    Citing the manual section 10 hyperref support (emphasis by me):

    The option hyperref = {true} adds internal links from all short (or alternative) forms to their respective list entries. Of course this only works if you have loaded the hyperref package in your preamble.

  2. Log in to comment