Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using make-links also makes indefinite article part of link #242

Open
dcebulla opened this issue Apr 26, 2022 · 1 comment
Open

Using make-links also makes indefinite article part of link #242

dcebulla opened this issue Apr 26, 2022 · 1 comment

Comments

@dcebulla
Copy link

Dear all,

please consider the following example:

\documentclass{article}
\usepackage[utf8]{inputenc}

\usepackage{acro}
\acsetup{
  make-links,
}

\usepackage{hyperref}

\DeclareAcronym{mpm}{
short=MPM,
long=mobile phase modulator,
short-indefinite=an,
long-indefinite=a,
}


\begin{document}
\iac{mpm} \par \iac{mpm}
\end{document}

In my case, the second call of \iac{mpm} leads to the result an MPM, as one would expect, but the hyperlink spreads both over the indefinite article, as well as the acronym. However, I think that only the acronym should be a link. So my question is, whether this is intended, or if this is a bug, and in any case if there is a way to "remove" indefinite articles from the hyperlinks.

Cheers,
Dominik

@cgnieder
Copy link
Owner

cgnieder commented May 1, 2022

It's not a bug and also not explicitly intended. It more less “happened”. The articles are determined and possibly written by \__acro_write:nn or more precisely by \__acro_write_acronym:nn which is completely embedded in \__acro_make_link:nnn (see the definition of \acro_write:nn).

Separating this is probably possible but not a task done in a few minutes…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants