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 am using the glossaries package with long style. However I don't want the entries to be so tight one to another.

Minimal code:

\documentclass{book}
\usepackage{glossaries}

\newglossarystyle{customlong}{
    \glossarystyle{long}
    % I use this to prevent a different vertical spacing from x2 to y than from x1 to x2
    \renewcommand{\glsgroupskip}{}
}
\makeglossaries

\newglossaryentry{x1}{name={x1},description={first term}}
\glsadd{x1}
\newglossaryentry{x2}{name={x2},description={second term}}
\glsadd{x2}
\newglossaryentry{y}{name={y},description={third term}}
\glsadd{y}

\begin{document}
test document
\newpage
\printglossary[type=main,style=customlong]
\end{document}

How can I increase the vertical space between entries?

Thanks.

share|improve this question
add comment

2 Answers

up vote 3 down vote accepted

The long style uses the longtable environment and therefore is "governed by the same parameters as that environment" (manual, p. 75). So the following should work (put it immediately before \printglossaries):

\renewcommand*{\arraystretch}{1.2}% default is 1
share|improve this answer
add comment

The answer from lockstep should do the trick. If you want to see how the styles are defined, have a look in the glossaries folder in your tex-tree.

Looking at a few styles it becomes fairly obvious how to write your own style or how to change certain settings.

share|improve this answer
add comment

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.