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

share|improve this question

3 Answers 3

up vote 5 down vote accepted

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.

share|improve this answer
    
This is great. style=index worked best for me. Thanks! –  fideli Oct 16 '10 at 14:46

Solution: use

\renewcommand*{\glsgroupskip}{}

Explanation: Abbreviations are bunched according to the starting letter. In your example, you can see this additional spacing is between the A-list & B-list and the B-list & C-list. This is the normal behavior of the glossaries package and is useful whenever the glossaries run to several pages. For smaller glossaries, it doesn't make a lot of sense.

share|improve this answer

I solved this with \glsnogroupskiptrue before of \printglossary. I was using a custom style based in long style and for some reason remained the spacing skip between groups and \renewcommand*{\glsgroupskip}{} do not worked at all.

Oddly, it seem that only \glsnogroupskipfalse appear in the manual (page 8) . It should be evident that this is a boolean option that must have a opposite command, but it would have been better see it written.

share|improve this answer

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.