I would like to have "subsections" in my glossary, or simply two glossaries one after the other. However, I always get an empty page (or, because I am using twoside & openright, even two!) between the glossaries.
I found the following topic
Remove Page Break Before Glossary
where the short version is (I think) that any "chapter" based class will introduce a clearpage, which I should be able to remove using
\renewcommand*{\glsclearpage}{}
That does not work for me though, or I am not calling it correctly.
I created the following mini-example:
\documentclass[11pt,a4paper,twoside,openright]{scrreprt}
% Include Glossary Package
\usepackage[style=alttree,nonumberlist,acronym]{glossaries}
\glssetwidest{ABCD}% widest name
\renewcommand*{\glsclearpage}{}
% Create Glossaries
\newglossary{type1}{gls1}{glo1}{Glossary 1}
\newglossary{type2}{gls2}{glo2}{Glossary 2}
% Generate Glossary Entries
\newglossaryentry{Entry1}{type = type1, name = $aaaa$, description = Position}
\newglossaryentry{Entry2}{type = type1, name = $bbbb$, description = Velocity}
\newglossaryentry{Entry3}{type = type2, name = $cccc$, description = Position}
\newglossaryentry{Entry4}{type = type2, name = $dddd$, description = Velocity}
% Generate Glossaries
\makeglossaries
\begin{document}
% Print Glossaries
\glsaddall
\printglossary[type=type1]
\printglossary[type=type2]
\end{document}
What am I doing wrong?
Thanks a lot! Cheers
EDIT, SOLUTION: Using the suggestions below, this is how I achieved to have a main glossary chapter with some specific glossary "sections".
\documentclass[11pt,a4paper]{scrreprt}
% Include Glossary Package
\usepackage[toc,style=alttree,nonumberlist,acronym,section=section]{glossaries}
\glssetwidest{ABCD}% widest name[![enter image description here][2]][2]
% Create Glossaries
\newglossary{type1}{gls1}{glo1}{Accronyms}
\newglossary{type2}{gls2}{glo2}{Nomenclature}
% Generate Glossary Entries
\newglossaryentry{Entry1}{type = type1, name = $aaaa$, description = Position}
\newglossaryentry{Entry2}{type = type1, name = $bbbb$, description = Velocity}
\newglossaryentry{Entry3}{type = type2, name = $cccc$, description = Position}
\newglossaryentry{Entry4}{type = type2, name = $dddd$, description = Velocity}
% Generate Glossaries
\makeglossaries
\glsaddall
\begin{document}
\tableofcontents
% First, start main glossary chapter
\addchap{My Glossaries}
Some introductory text if desired.
% Now print actual glossaries
\printglossary[type=type1]
\printglossary[type=type2]
\bigskip\noindent
Some concluding text if desired.
\end{document}
(I only removed the "twoside,openright" options to have a shorter output for the forum, this has no other influence)
\renewcommand
after\begin{document}
?