3

I've got an issue with the glossaries package. I've defined acronyms e.g. as

\newacronym{pl}{{\sc pl}}{Plural}

These work fine, with the small caps and all. The problem is this: if I reference acronyms (with \acrshort) in the main text of the document, the small caps continues from that point to the end of the document. It works mostly fine inside environments (in this case, gb4e's \ex environment) - the small caps does still bleed a bit, but nothing that can't be worked around. I've tried following \acrshort with text in a \textnormal command, which works fine, but the small caps resumes at the end of the environment.

For example, with this:

\documentclass{article}
\usepackage{glossaries}
\newacronym{acr}{{\sc acr}}{Acronym}
\makeglossaries
\begin{document}

Text text 
\acrshort{acr} 
text text

\end{document}

the first two 'text's are normal, 'acr' is small caps, and the two 'text's after it are small caps.

Is this a bug in glossaries, or am I just doing something wrong? Is there any way around it without putting my entire document inside \textnormal?

  • Surely you shouldn't use \sc. Can you show a minimal working example (MWE)? – egreg Apr 30 '14 at 0:16
  • Edited. Am I just not aware of a better small caps command? – Sjiveru Apr 30 '14 at 0:31
  • \sc is deprecated. Use \scshape to switch to small-caps indefinitely (until end of group or you change the shape). Use \textsc{pl} to just change the shape of pl. Or use \normalfont or \upshape when you want to switch back. – cfr Apr 30 '14 at 1:58
3

You probably want all short forms of acronyms are in small caps; for this you want to set an option for glossaries:

\documentclass{article}
\usepackage{glossaries}

\setacronymstyle{long-sc-short}
\newacronym{acr}{acr}{Acronym}

\begin{document}

Text \acrlong{acr} text
\acrshort{acr}
text text

\end{document}

enter image description here

If only some acronyms are desired in small caps (but I can't think why), then

\documentclass{article}
\usepackage{glossaries}

\newacronym{acr}{\textsc{acr}}{Acronym}

\begin{document}

Text \acrlong{acr} text
\acrshort{acr}
text text

\end{document}

Note that \sc is a deprecated command and has been for more than twenty years, since LaTeX2e has been released.

  • ...how in the world did I learn \sc then...? Anyway, thank you for your answer! If I need the acronyms to appear in small caps in the glossary as well, how would I go about doing that? – Sjiveru Apr 30 '14 at 15:14
  • Oh, never mind, it was a glossary format question. No further issues, thank you! – Sjiveru Apr 30 '14 at 15:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.