| 1 |
% This file is embedded in glossaries-extra-manual.pdf |
| 2 |
% Example 92 References in section headings (simplistic approach) |
| 3 |
% Label: "ex:simpleseccmds" |
| 4 |
% arara: pdflatex |
| 5 |
% arara: pdflatex |
| 6 |
% arara: pdfcrop |
| 7 |
\documentclass[12pt]{article} |
| 8 |
\pagestyle{empty} |
| 9 |
\usepackage[colorlinks]{hyperref} |
| 10 |
\usepackage{glossaries-extra} |
| 11 |
|
| 12 |
|
| 13 |
\glsdefpostlink{general}{\glsxtrpostlinkAddDescOnFirstUse} |
| 14 |
|
| 15 |
|
| 16 |
\newglossaryentry{sample}{name={sample},description={an example}} |
| 17 |
\newglossaryentry{alpha}{name={\ensuremath{\alpha}},description={alpha}} |
| 18 |
\begin{document} |
| 19 |
\tableofcontents |
| 20 |
\section{\texorpdfstring{\Glsentrytext{sample} and \glsentrytext{alpha}}{Sample and alpha}} |
| 21 |
|
| 22 |
|
| 23 |
First use: \gls{sample} and \gls{alpha}. |
| 24 |
|
| 25 |
|
| 26 |
Next use: \gls{sample} and \gls{alpha}. |
| 27 |
|
| 28 |
|
| 29 |
\printunsrtglossary |
| 30 |
\end{document} |