4

I want to add a text at the beginning of the List of Symbols (which I create with the glossaries package), i.e., directly after the heading and before the first symbol. Is this possible?

MWE:

\documentclass{article}
\usepackage[toc, nonumberlist, style=altlist]{glossaries}
\newglossary[slg]{symbolslist}{syi}{syg}{List of Symbols}
\makenoidxglossaries
\newglossaryentry{determinant}{
name=\ensuremath{\det(A)},
sort={det},
description={The determinant of the matrix $A$},
type=symbolslist
}
\begin{document}
text
\glsaddall
\printnoidxglossary[type=symbolslist]
\end{document}
4

From the glossaries user manual (section 10 Displaying a glossary):

Information can be added to the start of the glossary (after the title and before the main body of the glossary) by redefining \glossarypreamble. For example:

\renewcommand{\glossarypreamble}{Numbers in italic indicate primary definitions.}

This needs to be done before the glossary is displayed.

If you want a different preamble per glossary you can use \setglossarypreamble[<type>]{<preamble text>}. If <type> is omitted, \glsdefaulttype is used. For example:

\setglossarypreamble{Numbers in italic indicate primary definitions.}

This will print the given preamble text for the main glossary, but not have any preamble text for any other glossaries.

enter image description here

\documentclass{article}

\usepackage[toc, nonumberlist, style=altlist]{glossaries}

\newglossary[slg]{symbolslist}{syi}{syg}{List of Symbols}

\makenoidxglossaries

\newglossaryentry{determinant}{
  name=\ensuremath{\det(A)},
  sort={det},
  description={The determinant of the matrix $A$},
  type=symbolslist
}
\setglossarypreamble[symbolslist]{This is a preamble.}

\begin{document}

text

\glsaddall

\printnoidxglossary[type=symbolslist]

\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.