# Cannot get small caps acronyms to work using glossaries package

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:

List:

-
@lockstep: Thanks for the tag edit. One day, I'm sure, I'll get them right at the first attempt. –  Brent.Longborough May 1 '12 at 23:26

## 2 Answers

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}


-
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 1 '12 at 23:24
@Brent.Longborough See tex.stackexchange.com/questions/2984/… –  lockstep May 1 '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 1 '12 at 23:36

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.

-
Thanks, useful complement. –  Brent.Longborough May 2 '12 at 0:21