diff options
author | Karl Berry <karl@freefriends.org> | 2016-06-18 22:00:18 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-06-18 22:00:18 +0000 |
commit | a2108d8fb8bcdf43db03cb2bd3a7d9ebde44e634 (patch) | |
tree | da8b60a49916f9313a9325943dd48c8250f5ef06 /Master/texmf-dist/doc/latex/glossaries-extra/sample-restricteddocdefs.tex | |
parent | 0bac232781697b3a0f1796a6264fd68bffc4a6ee (diff) |
glossaries-extra (18jun16)
git-svn-id: svn://tug.org/texlive/trunk@41486 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/glossaries-extra/sample-restricteddocdefs.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/glossaries-extra/sample-restricteddocdefs.tex | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/glossaries-extra/sample-restricteddocdefs.tex b/Master/texmf-dist/doc/latex/glossaries-extra/sample-restricteddocdefs.tex new file mode 100644 index 00000000000..b0ca68763b9 --- /dev/null +++ b/Master/texmf-dist/doc/latex/glossaries-extra/sample-restricteddocdefs.tex @@ -0,0 +1,33 @@ +% arara: pdflatex +% arara: makeglossaries +% arara: pdflatex +\documentclass{article} + +\usepackage[docdef=restricted, + undefaction=warn + ]{glossaries-extra} + +\makeglossaries + +\begin{document} + +\newglossaryentry{sample}{name={sample},description={an example}} + +\gls{sample}. + +\printglossaries + +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|\printglossaries|. +This missing entry will be marked with two question marks ?? +in the glossary. + + +\end{document} |