Text FormattingDouble and single spacing in a list of acronyms

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
mcclur51
Posts: 9
Joined: Wed Mar 24, 2010 10:30 pm

Double and single spacing in a list of acronyms

Post by mcclur51 »

I am preparing a list of acronyms to go with my document. The document is doublespaced. I would like the doublespacing to continue into the glossary/list of acronyms, but only between entries. ie. I want single spacing within entries but double between entries. Here is a MWE:

Code: Select all

\documentclass[11pt]{article} % use larger type; default would be 10pt

\renewcommand*{\baselinestretch}{2}

\usepackage[acronym,nonumberlist]{glossaries}
\makeglossary
\newacronym{IkB}{I$\kappa$B}{nuclear factor of kappa light polypeptide gene enhancer in B-cells inhibitor}
\newacronym{IKK}{IKK}{\protect\gls{IkB} kinase}
\newacronym{MyD88}{MyD88}{TIR domain-containing adaptor, myeloid differentiation primary response gene 88}
\newacronym{MZ}{MZ}{marginal zone}

\title{Brief Article}
\author{The Author}

\begin{document}

\maketitle
\section{First section}
Interesting text \gls{IkB}. More interesting thoughts \gls{MyD88}. Followed by the \gls{MZ}. Final thoughts on the matter \gls{IKK}.

\newpage
\printglossary[type=\acronymtype,title={LIST OF ABBREVIATIONS},toctitle={LIST OF ABBREVIATIONS},style=indexgroup]
 \addcontentsline{toc}{chapter}{\MakeUppercase{List of Abbreviations}}%

\end{document}
Thanks for any help

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Double and single spacing in a list of acronyms

Post by localghost »

Read the l2tabu document to learn why you should not set double space this way. Use the structures provided by the setspace package.


Best regards
Thorsten
Post Reply