LaTeX forum ⇒ MakeIndex, Nomenclature, Glossaries and AcronymsVertical spacing around group/parent headings with glossaries

Information and discussion about MakeIndex - the tool to generate subject indices for LaTeX documents.
circuitbreaker
Posts: 2
Joined: Thu Apr 16, 2020 3:24 pm

Vertical spacing around group/parent headings with glossaries

Postby circuitbreaker » Thu Apr 16, 2020 3:31 pm

I am writing a thesis using the book class and thanks to the glossaries package with the alttree style, I can have a list of symbols grouped in different categories

Since I am using "option 2", that is using makeindex with \makeglossaries and \printglossaries I had to resort to create different categories (here Greek and Latin) by using \newglossaryentry.

However, I am not happy with the space between "angular frequency" and the heading "Latin symbols" (in red on the picture attached) and in a minor proportion of the space between the heading and its first entry (in blue)

screenshot.png
screenshot.png (18.28 KiB) Viewed 4947 times


Is there an elegant way to add more vertical space for these two locations, without changing the vertical space between entries? I tried to have a look in the manual as well as in the package code which are both verbose however glossaries is extremely painful to customize compared to other packages

MWE:

\documentclass[a4paper,12pt]{article}

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[automake,nonumberlist,sort=def,nogroupskip]{glossaries}

\newglossary*{symbols}{List of Symbols}
\makeglossaries

\glssetwidest{X}

\newglossaryentry{greeksymbols} {name={Greek symbols}, description={\nopostdesc}}
\newglossaryentry{latinsymbols} {name={Latin symbols}, description={\nopostdesc}}

\newglossaryentry{s_tau}  {type=symbols, parent=greeksymbols, description={relaxation time},   name={\ensuremath{\tau}}}
\newglossaryentry{s_omega}{type=symbols, parent=greeksymbols, description={angular frequency}, name={\ensuremath{\omega}}}

\newglossaryentry{s_A}    {type=symbols, parent=latinsymbols, description={wave amplitude},    name={\ensuremath{A}}}
\newglossaryentry{s_F}    {type=symbols, parent=latinsymbols, description={reduced frequency}, name={\ensuremath{F}}}

\begin{document}

\printglossary[type=symbols,style=alttree]

\clearpage

Hello world, using \gls{s_tau}, \gls{s_omega}, \gls{s_A} and \gls{s_F}

\end{document}

Recommended reading 2021:

LaTeXguide.org • LaTeX-Cookbook.net
LaTeX Beginner's Guide LaTeX Cookbook
User avatar
Johannes_B
Site Moderator
Posts: 4183
Joined: Thu Nov 01, 2012 4:08 pm

Vertical spacing around group/parent headings with glossaries

Postby Johannes_B » Fri Apr 17, 2020 5:37 am

You are using the glossaries option nogroupskip.
What does it do?
I can't test right now.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

circuitbreaker
Posts: 2
Joined: Thu Apr 16, 2020 3:24 pm

Vertical spacing around group/parent headings with glossaries

Postby circuitbreaker » Fri Apr 17, 2020 1:27 pm

Hi,
That option is supposed to define some vertical extra gap between letter groups in acronyms (which I would like), and probably other 'sorted' glossaries.
However activating or deactivating that option in my MWE has no effect at all whatsoever. I suspect it is because I defined 'manually' my categories without the sort key.

dexteritas
Posts: 1
Joined: Fri Sep 02, 2022 4:59 pm

Vertical spacing around group/parent headings with glossaries

Postby dexteritas » Fri Sep 02, 2022 5:05 pm

This question is a duplicate of this question on tex.stackexchange.
I just gave an answer there.


Return to “MakeIndex, Nomenclature, Glossaries and Acronyms”

Who is online

Users browsing this forum: No registered users and 2 guests