Debian Codegraph @

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

raw
1 % arara: pdflatex
2 % arara: pdflatex
3 \documentclass{article}
4
5 \usepackage[
6 docdef=restricted,
7 undefaction=warn,
8 style=tree
9 ]{glossaries-extra}
10
11 \makenoidxglossaries
12
13 \begin{document}
14 \newglossaryentry{sample}{name={sample},description={an example}}
15 \newglossaryentry{child-sample}{name={child name},parent={sample},
16 description={an example child}}
17
18 %\gls{sample}.
19 \gls{child-sample}.
20
21 \verb|\printnoidxglossaries| follows:
22 \printnoidxglossaries
23
24 Too late to define an entry with the \texttt{docdef=restricted}
25 setting. (Definitions must come before \verb|\printglossary|.)
26
27 \newglossaryentry{sample2}{name={sample2},description={another
28 example}}
29
30 New entry just defined: \gls{sample2}.
31 This will cause an error (or warning with \texttt{undefaction=warn})
32 in \verb|\printnoidxglossaries|.
33 This missing entry will cause a missing entry marker ??
34 at the start of the glossary (before the header).
35
36
37 \end{document}