summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/glossaries-extra/sample-docdef.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-01-26 22:52:39 +0000
committerKarl Berry <karl@freefriends.org>2016-01-26 22:52:39 +0000
commit8d88e6714a570bf2b598132718ae2beb4641c80b (patch)
tree6d627fdd2263e73984a523aeaacd6b0aca1c358e /Master/texmf-dist/doc/latex/glossaries-extra/sample-docdef.tex
parent9b9abe02f86c766295512f6699dac2b40de6968c (diff)
glossaries-extra (24jan15)
git-svn-id: svn://tug.org/texlive/trunk@39487 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/glossaries-extra/sample-docdef.tex')
-rw-r--r--Master/texmf-dist/doc/latex/glossaries-extra/sample-docdef.tex27
1 files changed, 27 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/glossaries-extra/sample-docdef.tex b/Master/texmf-dist/doc/latex/glossaries-extra/sample-docdef.tex
new file mode 100644
index 00000000000..ebf1383e3e7
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/glossaries-extra/sample-docdef.tex
@@ -0,0 +1,27 @@
+% 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}