[Tex/LaTex] Package glossaries – single spaced \printglossaries

glossariesline-spacing

I'm trying to make a single-spaced glossary using the glossaries package but it seems as though the package has a default level of spacing in between entries even in single-spaced mode for the document. I'm using the ut-thesis style, which is based on report.cls. Examples below. Double-spaced text:

\documentclass[11pt]{ut-thesis}
…
\usepackage[nonumberlist]{glossaries}
\makeglossaries
…
\begin{document}
\printglossaries
…
\end{document}

double

Single-spaced text:

\documentclass[11pt,singlespaced]{ut-thesis}
…
\usepackage[nonumberlist]{glossaries}
\makeglossaries
…
\begin{document}
\printglossaries
…
\end{document}

single

This is simply not single-spaced enough for my purposes. I checked the documentation for glossaries and I hope I didn't miss anything there but nothing for \printglossaries or otherwise seemed to indicate that spacing could be altered. I tried using the leading package to help my case. This is the best that I could come up with:

\documentclass[11pt,singlespaced]{ut-thesis}
…
\usepackage{leading}
\usepackage[nonumberlist]{glossaries}
\makeglossaries
…
\begin{document}
\leading{10pt}
\printglossaries
…
\end{document}

leading

It works okay and it's what I'm using right now but I'm not sure why I can't get it to be any better. Any ideas?

Also, I'm a bit new here so if someone feels like correcting my taxonomy with respect to tagging this question, please feel free.

Best Answer

Given the default glossary entry "style" isn't what you want, why not select another one via the \printglossary style options (e.g., \printglossary[style=altlist])? The manual sets out quite a few styles that might work for you.

Out of these, I expect that \printglossary[style=long] will work best. However, since this style relies on the longtable package, you'll need to be sure that glossary can access it.

Also, you might notice that the style=long option doesn't set glossary entry names in bold font as before. If you still want that, just add \renewcommand{\glsnamefont}[1]{\textbf{#1}} to your document preamble to get it back again.