8

I've managed to get glossaries to set the acronyms in the body in small caps in the way I want, but in the list of acronyms they insist on coming out in lower-case.

Can anyone (a) tell me what I've missed and (b) prune the irrelevant (as I'm basically poking around without really understanding the bowels)?

MWE:

\documentclass[a4paper,final]{report}
\usepackage[acronym,nomain,
    style=list,
    nonumberlist,
    shortcuts,
    smallcaps,
]{glossaries}
\renewcommand*{\CustomAcronymFields}{%
    description={\the\glslongtok},%
    name={\textsc{\the\glsshorttok}},%
    symbol={\textsc{\the\glsshorttok}},%
    }
\renewcommand{\glsnamefont}[1]{\textsc{#1}}
\SetCustomStyle
\makeglossaries
\newacronym{xts}{Tsp}{Tomato Soup Protocol}
\newacronym{xfc}{Fcp}{Fried Cheese Protocol}
\begin{document}

We like \acs{xts} and \acs{xfc}.

\printglossary
\end{document}

Body:

We like...

List:

Acronyms...

lockstep
  • 250,273

2 Answers2

8

Load the fontenc package with the T1 option to obtain bold small caps.

\documentclass[a4paper,final]{report}
\usepackage[T1]{fontenc}
\usepackage[acronym,nomain,
    style=list,
    nonumberlist,
    shortcuts,
    smallcaps,
]{glossaries}
\renewcommand*{\CustomAcronymFields}{%
    description={\the\glslongtok},%
    name={\textsc{\the\glsshorttok}},%
    symbol={\textsc{\the\glsshorttok}},%
    }
\renewcommand{\glsnamefont}[1]{\textsc{#1}}
\SetCustomStyle
\makeglossaries
\newacronym{xts}{Tsp}{Tomato Soup Protocol}
\newacronym{xfc}{Fcp}{Fried Cheese Protocol}
\begin{document}

We like \acs{xts} and \acs{xfc}.

\printglossary
\end{document}

enter image description here

lockstep
  • 250,273
  • Hmm. Works nicely, thanks. Should I expect problems using utf-8 files with Xe/LuaLatex? (I've tried it thus, and it works, but is it correct? Plus, should I load fontspec before or after fontenc?) – Brent.Longborough May 01 '12 at 23:24
  • @Brent.Longborough See http://tex.stackexchange.com/questions/2984/frequently-loaded-packages-differences-between-pdflatex-and-xelatex – lockstep May 01 '12 at 23:26
  • No problem. The other question seems to suggest I not use fontenc with utf-8/fontspec. My non-MWE fails with just fontspec, but the MWE is OK. Back to the drawing board. – Brent.Longborough May 01 '12 at 23:36
  • What if I use \usepackage{cfr-lm} to have \textsi{small italic caps}, can I use bold caps as well? – Max N Nov 28 '17 at 01:02
5

If you want non bold small caps, write this after loading glossaries

\usepackage{enumitem}
\renewcommand{\theglossary}{\begin{description}[font=\normalfont]}

This works because the theglossary environment is actually description.

egreg
  • 1,121,712