Skip to content

Commit

Permalink
Add toggle for glossaries ToC inclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpovel committed Feb 4, 2021
1 parent 4d7a712 commit 5c23bd0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions chapters/mainmatter/base-features.tex
Original file line number Diff line number Diff line change
Expand Up @@ -996,10 +996,13 @@ \section{Glossaries}
In a format similar to normal bibliographies, all glossary entries are now managed
using \texttt{*.bib} files.
Each entry is processed by \ctanpackage{bib2gls} and put into an auxiliary file.
From it, it reads and inserts all contents when \verb|\gls| and its many siblings
are used.
From it, \ctanpackage{glossaries-extra} reads and inserts all contents when \verb|\gls|
and its many sibling commands are used.
The framework for all of that, also printing of the glossary and nomenclature,
is already taken care of for this document.
In addition to printing the glossaries, they are also added to the table of contents.
This behavior can be toggled using the \texttt{toc} package option flag,
see the source code for more info.

Traditionally, glossary packages are used for abbreviations.
However, using \ctanpackage{glossaries-extra} this can be kicked into top gear.
Expand Down
3 changes: 2 additions & 1 deletion cookbook.cls
Original file line number Diff line number Diff line change
Expand Up @@ -1755,7 +1755,8 @@
abbreviations,% Regular abbreviations/acronyms
symbols,% Physical symbols
index,% A regular book index at the end
numbers% constants like Pi
numbers,% constants like Pi
toc=true,% Toggle inclusion in Table of Contents
]{glossaries-extra}% Also see https://tex.stackexchange.com/q/477658/120853
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Expand Down

0 comments on commit 5c23bd0

Please sign in to comment.