Latest news 2020-07-03: SmashWords sale (ends 31st July 2020): 50% off crime/SF novel The Private Enemy and 100% off (free!) I’ve Heard the Mermaid Sing.

glossaries package FAQ

Categories:

FAQ Search Tips

How do I make acronyms appear in a different font (but not the long form)? 🔗

As from version 4.02, use one of the predefined acronym formats and redefine \acronymfont as required. For example, if you want the short form displayed in sans-serif using the long-short format:

\setacronymstyle{long-short}
\renewcommand*{\acronymfont}[1]{\textsf{#1}}
or you can define you own custom style called, say, long-sf-short:
\newacronymstyle{long-sf-short}%
{%
  \GlsUseAcrEntryDispStyle{long-short}%
}%
{%
  \GlsUseAcrStyleDefs{long-short}%
  \renewcommand{\acronymfont}[1]{\textsf{##1}}%
}
and use that:
\setacronymstyle{long-sf-short}

Note that if you are using glossaries-extra, it uses a completely different abbreviation mechanism so the above won’t work.

Pre glossaries version 4.02:

If you are just using the default definition of \newacronym, then use the package option smaller and redefine \acronymfont to use the required font.

If you are using any of the package options that redefine \newacronym (such as description), then just redefine \acronymfont to use the required font.

Last modified: 2020-06-27 16:27:57.


Category: glossaries package
Topic: Referencing Terms