summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/glossaries-extra/samples/sample-undef.tex
blob: 194f4a4bc89d49c98a09ce8bb9c0414a439e0207 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
% arara: pdflatex
% arara: makeglossaries
% arara: pdflatex
% arara: pdflatex
\documentclass{article}

\usepackage[colorlinks]{hyperref}
\usepackage[undefaction=warn]{glossaries-extra}

\makeglossaries

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

\begin{document}

Defined entry: \gls{sample}, \glslink{sample}{text}.

Undefined entry: \gls{undefined}, \glslink{undefined}{text}.

\printglossaries
\end{document}