You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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:
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:
Though, that defeats the point of having a (short|long)-format key.
I am using Debian Buster, the log of the compilation is attached.
The text was updated successfully, but these errors were encountered: