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

hyperref breaks acroplural #52

Open
ZelnickB opened this issue Jun 13, 2023 · 0 comments
Open

hyperref breaks acroplural #52

ZelnickB opened this issue Jun 13, 2023 · 0 comments

Comments

@ZelnickB
Copy link

When using the acronym environment to typeset a list of acronyms in my document, using \acroplural without the optional argument (plural short form) stops the document from compiling when hyperref is also loaded.

Steps to Reproduce

Compile the following document by running xelatex or pdflatex twice:

\documentclass{article}

\usepackage{acronym,hyperref}

\begin{document}

\begin{acronym}
    \acro{POI}{point of interest} \acroplural{POI}{points of interest}
\end{acronym}

\end{document}

Error Messages (on second run)

LaTeX Warning: Hyper reference `acro:POI' on page 1 undefined on input line 8.


LaTeX Warning: Hyper reference `acro:POI' on page 1 undefined on input line 8.

! Undefined control sequence.
\hyper@@link ->\let \Hy@reserved@a 
                                   \relax \@ifnextchar [{\hyper@link@ }{\hyp...
l.8 ...erest} \acroplural{POI}{points of interest}
                                                  
! Argument of \AC@acroplurali has an extra }.
<inserted text> 
                \par 
l.8 ...erest} \acroplural{POI}{points of interest}
                                                  
Runaway argument?
{POI}{\hyper@link@ }\def \reserved@b {\hyper@link@ [link]}\futurelet \ETC.
! Paragraph ended before \AC@acroplurali was complete.
<to be read again> 
                   \par 
l.8 ...erest} \acroplural{POI}{points of interest}

See also acronym package - acroplural not working in acronym environment on TeX StackExchange.

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

1 participant