Debian Codegraph @

texmf-dist/doc/latex/glossaries-extra/samples/sample-docdef.tex

raw
1 % arara: pdflatex
2 % arara: makeglossaries
3 % arara: pdflatex
4 \documentclass{article}
5
6 \usepackage[docdef]{glossaries-extra}
7
8 \makeglossaries
9
10 \begin{document}
11
12 \printglossaries
13
14 This is a sample document testing the use of document definitions
15 for those who are happy to accept all the associated drawbacks
16 of not following the advice in the glossaries manual about
17 defining all your entries in the preamble. Use it at your own
18 peril.
19
20 \newglossaryentry{sample}{name=sample,description={an example}}
21 \newglossaryentry{sample2}{name={another sample},
22 description={another example},see={sample}}
23 \newabbreviation{ab}{AB}{sample abbreviation}
24
25 Use \gls{sample2}.
26
27 Use \gls{ab}.
28 \end{document}