cgnieder / acro

acronyms for LaTeX
LaTeX Project Public License v1.3c
41 stars 9 forks source link

Set bookmarks at v2.11d #222

Closed DaftDogeee closed 2 years ago

DaftDogeee commented 3 years ago

I want to set the bookmarks by pdfstring, but the following MWE does not work at all. I just want to check whether the usage is right.

\documentclass{article}

\usepackage{hyperref}

\usepackage{acro}
\DeclareAcronym{test}{
    short = CV,
    long = computer vision,
    pdfstring = ABC}

\begin{document}

\section{\acl*{test}}

\acpdfstring{test}

\ac{test}

\end{document}

How to print ABC in the bookmarks?

cgnieder commented 2 years ago

There seems to be a bug in the latest v2; however, v2 is not updated anymore.

In v3 the replacement works as described for the short form:

\documentclass{article}

\usepackage{hyperref}

\usepackage{acro}
\DeclareAcronym{test}{
  short = CV,
  long = computer vision,
  pdfstring = ABC
}

\begin{document}

\section{\acl*{test} vs. \acs*{test}}

\ac{test}

\end{document}

grafik