[Tex/LaTex] Symbols as glossary entry indicators

glossariessymbols

Concerning the book I am about to write, I brood over another subject, which merits in my view a separate thread.

As the book will be a classical paper book and not an e-book, I would like to mark any technical term in the text, which is explained in a glossary, so that the reader is aware whenever further explanation is available at the end of the book. Of course, the labelling shall be done in an unobtrusive way, so that the decent text layout will not be spoilt.

The use of different text styles (like italics, bold, different fonts, etc.) is not an option, as they are already applied for other highlighting purposes. Hence, I thought of some symbols alongside the technical term to be marked, like a \leftpointright after the term or a superscripted \diamond.

How can I realise that concretely with the package glossaries?

Best Answer

I think \defglsentryfmt is one way to define a prefix to the gls entry as shown in the text.

Since a 'classical' paper book is being designed, hyperref is not needed and as such no ugly splitted links occur.

\documentclass{article}

\usepackage{blindtext}
\usepackage{glossaries}

\makeglossaries
\newglossaryentry{foo}{%
  name={Foo},
  description={Foo is the Foo, nothing more}
}

\defglsentryfmt{$\rightarrow$\glsname{\glslabel}}

\begin{document}
\blindtext

\gls{foo}

\blindtext

\printglossaries

\end{document}