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