Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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...

share|improve this question
    
@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 2

up vote 8 down vote accepted

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

share|improve this answer
    
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.

share|improve this answer
    
Thanks, useful complement. –  Brent.Longborough May 2 '12 at 0:21

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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