summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/glossaries-extra/samples/sample-docdef.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/glossaries-extra/samples/sample-docdef.tex
Initial commit
Diffstat (limited to 'macros/latex/contrib/glossaries-extra/samples/sample-docdef.tex')
-rw-r--r--macros/latex/contrib/glossaries-extra/samples/sample-docdef.tex28
1 files changed, 28 insertions, 0 deletions
diff --git a/macros/latex/contrib/glossaries-extra/samples/sample-docdef.tex b/macros/latex/contrib/glossaries-extra/samples/sample-docdef.tex
new file mode 100644
index 0000000000..8271b488fa
--- /dev/null
+++ b/macros/latex/contrib/glossaries-extra/samples/sample-docdef.tex
@@ -0,0 +1,28 @@
+% arara: pdflatex
+% arara: makeglossaries
+% arara: pdflatex
+\documentclass{article}
+
+\usepackage[docdef]{glossaries-extra}
+
+\makeglossaries
+
+\begin{document}
+
+\printglossaries
+
+This is a sample document testing the use of document definitions
+for those who are happy to accept all the associated drawbacks
+of not following the advice in the glossaries manual about
+defining all your entries in the preamble. Use it at your own
+peril.
+
+\newglossaryentry{sample}{name=sample,description={an example}}
+\newglossaryentry{sample2}{name={another sample},
+ description={another example},see={sample}}
+\newabbreviation{ab}{AB}{sample abbreviation}
+
+Use \gls{sample2}.
+
+Use \gls{ab}.
+\end{document}