Page Layoutglossaries | Space beneath Title in Acronym List too large

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
nicksy
Posts: 8
Joined: Sat Aug 27, 2011 9:59 pm

glossaries | Space beneath Title in Acronym List too large

Post by nicksy »

Hi,

I have been using LaTeX the last few months to write my thesis and have solved most issues, however, there is one thing still bugging me - the spacing between the title of my glossaries 'Acronym List' and the start of the list. The spacing here is much larger than the equivalent spacing in my ToC, LoF or LoT, etc.

I am using an adaptation of the Thesis Class specific to my university, but that does not specifically implement anything to do with an abbreviations list so I don't think my issue arises there. But it does contain my style:

Code: Select all

\LoadClass[12pt,a4paper]{book}
The issue might be with my code for the Acronym List: it took me 2 weeks to get it looking like I wanted it, most solutions came from the internet not the Glossaries manual which didn't seem to address my problems (i.e. for renaming the list).

Anyway, here is the code specific to my Acronym list, any help would be greatly appreciated.

Code: Select all

\documentclass[12pt]{thesistemplate}
\usepackage{lipsum}
\usepackage{hyperref}
\usepackage{fancyhdr} %not used on Acronym's page, but just including anyway
\usepackage{setspace}
\usepackage{tocloft}
\renewcommand{\cftchapleader}{\cftdotfill{\cftsecdotsep}}

\usepackage[style=long,nonumberlist,acronym,toc]{glossaries}%style=long,toc

%creates empty title
\renewcommand*{\glspostdescription}{}
\renewcommand{\glossarysection}[2][]{}

\makeglossaries

%The next section outputs my list in the style I wanted
\renewcommand{\glsgroupskip}{}{}
\renewcommand{\glsnamefont}[1]{\textbf{\bfseries #1}}
\setlength{\LTleft}{0pt}
\setlength{\LTright}{\fill}

\newacronym{ct}{CT}{Computed Tomography}
\newglossaryentry{..}{type=\acronymtype, name={..}, description={.....}, first={....., ..}}
etc.

\begin{document}

%creates Acronym list with title 'List of Abbreviations' on page immediately following the last list%
\makeatletter\@openrightfalse\prefacesection{List of Abbreviations}
\pagestyle{plain}
\glossaryheader
\printglossaries
\@openrighttrue\makeatother

\chapter{some chapter}
\lipsum \gls{ct} \lipsum \gls{ct} \lipsum

\end{document}
Thanks in advance

Nicola

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

nlct
Posts: 276
Joined: Thu Nov 06, 2008 11:15 am

glossaries | Space beneath Title in Acronym List too large

Post by nlct »

The tocloft package reduces the spacing for the table of contents (and presumably the list of figures and list of tables). You can compensate for it by add some negative space to the glossary preamble. For example:

Code: Select all

documentclass{book}

\usepackage{tocloft}
\usepackage[style=long,nonumberlist,acronym,toc]{glossaries}

\makeglossaries

\renewcommand{\glossarypreamble}{\vspace*{-\baselineskip}}

\renewcommand{\acronymname}{List of Acronyms}

\newacronym{sample}{ABC}{sample acronym}

\renewcommand{\glsgroupskip}{}

\begin{document}

\tableofcontents

\printglossaries

\chapter{Sample}

\gls{sample}.

\end{document}

The issue might be with my code for the Acronym List: it took me 2 weeks to get it looking like I wanted it, most solutions came from the internet not the Glossaries manual which didn't seem to address my problems (i.e. for renaming the list).
If by "renaming the list" you mean how to change the title from "Acronyms" to "List of Acronyms", that's described in the section "Changing the Fixed Names" in the user manual.

Regards
Nicola Talbot
Post Reply