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

The lexicographically last declaration overrides formats for all entries in the List of Abbreviations #129

Closed
cgnieder opened this issue Jun 7, 2019 · 3 comments
Labels
bug Something isn't working

Comments

@cgnieder
Copy link
Owner

cgnieder commented Jun 7, 2019

Original report by Diego Caraffini (Bitbucket: bonderado, GitHub: bonderado).


When using \printacronyms, the format used for all entries is the one declared for the acronym with the last sort position, whether it appears in the document (and the list of abbreviations) or not.

Example document:

\documentclass{book}
% ensure bold small caps are available
\usepackage{times}
\usepackage{acro}

\DeclareAcronym{zz}{%
short = zzzz ,
long = Mosquito buzzing,
short-format = \upshape,
short-format = \upshape,
long-format = \upshape
}

\DeclareAcronym{znte}{%
short = {ZnTe},
long = Zinc Telluride,
short-format = \itshape,
long-format = \itshape
}

\DeclareAcronym{abcd}{%
short=abcd,
long=Air Biased Coherent Detection,
% sort=zzzzzzzzzzzz,
short-format=\scshape,
long-format = \scshape
}

\begin{document}
Some text with acronym \ac{znte}.

Some text with acronym \ac{znte} and \ac{abcd}.

\printacronyms%
\end{document}

Compiling this code, the acronyms in the text a re formatted according to their own declaration, but in the list of acronyms all adhere to the specification of ‘zzz’ that is last in lexicographical order; uncommenting the sort specification in ‘abc’ makes it the last and all entries conform to it in later runs.

I did not investigate other keys, so I cannot exclude that this behavior affects other settings too.

Since I have only a few entries that need a different format a viable workaround is to include the format in the short declaration like this:

\DeclareAcronym{znte}{%
short = {\itshape ZnTe},
long = Zinc Telluride
}

Though, that defeats the point of having a (short|long)-format key.

I am using Debian Buster, the log of the compilation is attached.

@cgnieder
Copy link
Owner Author

Original comment by Clemens Niederberger (Bitbucket: cgnieder, GitHub: cgnieder).


fix issue #129

@cgnieder
Copy link
Owner Author

Original comment by Clemens Niederberger (Bitbucket: cgnieder, GitHub: cgnieder).


fix issue #129

@cgnieder
Copy link
Owner Author

cgnieder commented Jan 5, 2020

Original comment by Clemens Niederberger (Bitbucket: cgnieder, GitHub: cgnieder).


Removing version: 2.9 (automated comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant