| 1 |
% This file is embedded in glossaries-extra-manual.pdf |
| 2 |
% Example 93 References in section headings using \glsfmttext |
| 3 |
% Label: "ex:glsfmttext" |
| 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{\Glsfmttext{sample} and \glsfmttext{alpha}} |
| 21 |
|
| 22 |
First use: \gls{sample} and \gls{alpha}. |
| 23 |
|
| 24 |
Next use: \gls{sample} and \gls{alpha}. |
| 25 |
|
| 26 |
\printunsrtglossary |
| 27 |
\end{document} |