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

\scshape only has an effect in \ac{…}, not in \printacronyms #251

Open
pzehner opened this issue Aug 4, 2022 · 1 comment
Open

\scshape only has an effect in \ac{…}, not in \printacronyms #251

pzehner opened this issue Aug 4, 2022 · 1 comment

Comments

@pzehner
Copy link

pzehner commented Aug 4, 2022

Hello, thank you for this convenient package!

This is a reopening of issue as #135. Using \scshape on short-format shows the short version of the acronym in small caps when using \ac, but the text is in lower case when using \printacronyms:

\documentclass{article}
\usepackage{fontspec}
\usepackage{acro}
\usepackage{enumitem}
\DeclareAcronym{test}{short=test,long=a test,short-format=\scshape}

\begin{document}

  Acronym: \ac{test}

  \printacronyms

\end{document}

It sounds like the fix of #135 does not work any more.

@dbranford
Copy link

Acro is working correctly here, you should be getting something like

LaTeX Font Warning: Font shape `TU/lmr/bx/sc' undefined
(Font)              using `TU/lmr/bx/n' instead on input line 18.

indicating bold small caps was requested, but tex is falling back on just bold (https://tex.stackexchange.com/q/27411/, https://texfaq.org/FAQ-bold-extras).

\DeclareAcronym{test}{short=test,long=a test,short-format=\normalfont\scshape} probably gives what you want, however it changes some niche cases like \textit{\acs{test}}. Alternatively you can redefine the list template to use something like \item[\textnormal{\acrowrite{short}}\acroifT{alt}{/\acrowrite{alt}}].

I don't think there's anything to fix directly, but #258 could give a better interface with the ability to set \normalfont in the list only.

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