summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/glossaries-extra/sample-noidx-restricteddocdefs.tex
blob: da909b222ff89426d2561d2ed0cb28aa2ae43b3b (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
30
31
32
33
% arara: pdflatex
% arara: pdflatex
\documentclass{article}

\usepackage[
 docdef=restricted,
 undefaction=warn
 ]{glossaries-extra}

\makenoidxglossaries

\begin{document}
\newglossaryentry{sample}{name={sample},description={an example}}

\gls{sample}.

\verb|\printnoidxglossaries| follows:
\printnoidxglossaries

Too late to define an entry with the \texttt{docdef=restricted}
setting. (Definitions must come before \verb|\printglossary|.)

\newglossaryentry{sample2}{name={sample2},description={another
example}}

New entry just defined: \gls{sample2}.
This will cause an error (or warning with \texttt{undefaction=warn})
in \verb|\printnoidxglossaries|.
This missing entry will cause a missing entry marker ?? 
at the start of the glossary (before the header).


\end{document}