7

I would like an acronym list with equal vertical space between each acronym. My list is grouping acronyms that start with the same letter. How is this avoided?

Here is the code for a MWE with this "problem":

\documentclass[11pt,a4paper,openany,oneside]{book}

\usepackage[acronym,nonumberlist,toc]{glossaries}
\usepackage{glossary-superragged}
\makeglossaries

\renewcommand*{\acronymname}{List of Acronyms and Abbreviations}
\renewcommand*{\glspostdescription}{} % remove trailing dot
\renewcommand{\glsnamefont}[1]{\textbf{#1}}
\newacronym[longplural={Affinity Diagrams}]{ad}{AD}{Affinity Diagram}
\newacronym{dom}{DOM}{Document Object Model}
\newacronym{svg}{SVG}{Scalable Vector Graphics}
\newacronym{spa}{SPA}{Single Page Application}

\begin{document}

\tableofcontents
\printglossary[style=super, type=\acronymtype]

\section{First section}

Here we go... \gls{ad}, \gls{dom}, \gls{svg} and \gls{spa}!
\end{document}

I get the following output:

enter image description here

11

Heiko's answer works perfectly in your case, since you are printing only one glossary.

In fact, adding nogroupskip option at loading time, you change the behavior globally, i.e. for all glossaries.

Just in case you need to define it locally to one glossary, you can define a new style that redefines just that aspect:

\newglossarystyle{modsuper}{%
  \glossarystyle{super}%
  \renewcommand{\glsgroupskip}{}
}

and at printing time use

\printglossary[style=modsuper, type=\acronymtype]

The result is the same, but if you want to define another glossary where you want the gap between groups, this solution may be of interest.

MWE

\documentclass[11pt,a4paper,openany,oneside]{book}

\usepackage[acronym,nonumberlist,toc]{glossaries}
\usepackage{glossary-superragged}
\newglossarystyle{modsuper}{%
  \glossarystyle{super}%
  \renewcommand{\glsgroupskip}{}
}
\makeglossaries

\renewcommand*{\acronymname}{List of Acronyms and Abbreviations}
\renewcommand*{\glspostdescription}{} % remove trailing dot
\renewcommand{\glsnamefont}[1]{\textbf{#1}}
\newacronym[longplural={Affinity Diagrams}]{ad}{AD}{Affinity Diagram}
\newacronym{dom}{DOM}{Document Object Model}
\newacronym{svg}{SVG}{Scalable Vector Graphics}
\newacronym{spa}{SPA}{Single Page Application}

\begin{document}

\tableofcontents
\printglossary[style=modsuper, type=\acronymtype]

\section{First section}

Here we go... \gls{ad}, \gls{dom}, \gls{svg} and \gls{spa}!
\end{document} 

Output

enter image description here

Addendum

If you want to add some vertical space between items, you can define the new style as:

\newglossarystyle{modsuper}{%
  \glossarystyle{super}%
  \renewcommand{\glsgroupskip}{}%
  \renewcommand*{\glossaryentryfield}[5]{%
    \glsentryitem{##1}\glstarget{##1}{##2} & ##3\glspostdescription\space ##5\\[5pt]}%
}

and adjust 5pt to whatever you like. In this case the output will be:

enter image description here

  • I chose to define a new style because I have texlive 2012 with an old version of glossaries which does not support nogroupskip. How do I adjust the distance between the items in the list? I think it looks to compact now... – swenedo Aug 21 '13 at 10:13
  • @swenedo See the addendum – karlkoeller Aug 21 '13 at 10:52
  • \printglossary now supports nogroupskip as an option to locally change the setting for that specific glossary. – Nicola Talbot Apr 27 '18 at 14:51
10

The vertical gap between is controlled by option nogroupskip. From the user manual of package glossaries:

nogroupskip This is a boolean option. If no value is specified, true is assumed. When set to true, this option suppresses the default vertical gap between groups used by some of the predefined styles. The default setting is nogroupskip=false.

Example file:

\documentclass[11pt,a4paper,openany,oneside]{book}

\usepackage[acronym,nonumberlist,toc,nogroupskip]{glossaries}
\usepackage{glossary-superragged}
\makeglossaries

\renewcommand*{\acronymname}{List of Acronyms and Abbreviations}
\renewcommand*{\glspostdescription}{} % remove trailing dot
\renewcommand{\glsnamefont}[1]{\textbf{#1}}
\newacronym[longplural={Affinity Diagrams}]{ad}{AD}{Affinity Diagram}
\newacronym{dom}{DOM}{Document Object Model}
\newacronym{svg}{SVG}{Scalable Vector Graphics}
\newacronym{spa}{SPA}{Single Page Application}

\begin{document}

\tableofcontents
\printglossary[style=super, type=\acronymtype]

\section{First section}

Here we go... \gls{ad}, \gls{dom}, \gls{svg} and \gls{spa}!
\end{document}

Result

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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