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.
Post Reply
circuitbreaker
Posts: 2
Joined: Thu Apr 16, 2020 3:24 pm

Vertical spacing around group/parent headings with glossaries

Post by circuitbreaker »

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 32409 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:

Code: Select all

\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 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Vertical spacing around group/parent headings with glossaries

Post by Johannes_B »

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

Post by circuitbreaker »

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: 2
Joined: Fri Sep 02, 2022 4:59 pm

Vertical spacing around group/parent headings with glossaries

Post by dexteritas »

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