Generalglossaries | Suppress Output of Glossary Title

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
yaxattax
Posts: 7
Joined: Mon Dec 19, 2011 7:15 pm

glossaries | Suppress Output of Glossary Title

Post by yaxattax »

Hi,

I'm looking for a way to suppress printing the glossary title. I've seen the workaround that changes the glossary section type into the desired one to fit in the right layer of the document hierarchy, but I want to print a glossary as part of a section with some regular text, so suppressing the title is necessary. I've tried setting title empty, but that leaves a big gap that I don't desire.

Any ideas?

Kind regards,

Recommended reading 2024:

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

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

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

glossaries | Suppress Output of Glossary Title

Post by kaiserkarl13 »

Perhaps not what you're looking for, but it might work:

Code: Select all

\documentclass{article}

\begin{document}
Hello, this is a test.

\section*{Hello}
This is the rest of the chapter.

\let\oldsection\section
\renewcommand{\section}[2]{}%
Hello, this is a test.

\section*{Hello}
This is the rest of the chapter.

\let\section\oldsection
Hello, this is a test.

\section*{Hello}
This is the rest of the chapter.
\end{document}
Put your glossary command between the renewcommand and the \let\section\oldsection lines and you may have what you're looking for.
yaxattax
Posts: 7
Joined: Mon Dec 19, 2011 7:15 pm

Re: glossaries | Suppress Output of Glossary Title

Post by yaxattax »

Hi,

Thanks for this. Unfortunately, it has not suppressed the title of the glossary.

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

glossaries | Suppress Output of Glossary Title

Post by nlct »

Redefining \glossarysection to do nothing should do what you want:

Code: Select all

\renewcommand{\glossarysection}[2][]{}
Regards
Nicola Talbot
yaxattax
Posts: 7
Joined: Mon Dec 19, 2011 7:15 pm

Re: glossaries | Suppress Output of Glossary Title

Post by yaxattax »

Again, thank you very much Nicola - this works perfectly.

Kind regards,

Yaqub
Post Reply