From 8d88e6714a570bf2b598132718ae2beb4641c80b Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Tue, 26 Jan 2016 22:52:39 +0000
Subject: glossaries-extra (24jan15)

git-svn-id: svn://tug.org/texlive/trunk@39487 c570f23f-e606-0410-a88d-b1316a301751
---
 .../doc/latex/glossaries-extra/sample-onthefly.tex | 50 ++++++++++++++++++++++
 1 file changed, 50 insertions(+)
 create mode 100644 Master/texmf-dist/doc/latex/glossaries-extra/sample-onthefly.tex

(limited to 'Master/texmf-dist/doc/latex/glossaries-extra/sample-onthefly.tex')

diff --git a/Master/texmf-dist/doc/latex/glossaries-extra/sample-onthefly.tex b/Master/texmf-dist/doc/latex/glossaries-extra/sample-onthefly.tex
new file mode 100644
index 00000000000..8431c6abe26
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/glossaries-extra/sample-onthefly.tex
@@ -0,0 +1,50 @@
+% arara: pdflatex
+% arara: makeglossaries
+% arara: pdflatex
+\documentclass{article}
+
+\usepackage{glossaries-extra}
+
+\makeglossaries
+
+\GlsXtrEnableOnTheFly
+
+\begin{document}
+This is a \glsxtr{sample} document illustrating on-the-fly
+simultaneous \glsxtr{definition} and \glsxtr{usage}
+for \glsxtr[format=textbf][plural=glossaries]{glossary} 
+\glsxtrpl[][plural=entries]{entry}. This has 
+drawbacks and it's really much better to define entries in the 
+\glsxtr{preamble}, but you may find it useful for simple 
+indexing.
+
+\newpage
+
+\Glsxtr{preamble} \glsxtrpl{definition} are much better,
+but here is a \glsxtr{sample} of what you can do.
+
+\newpage
+The \glsxtrpl{glossary} must come at the end of the document 
+with this usage.
+
+\newpage
+Commands can't occur in the label. The ``name'' key has to be
+used instead. Isn't this fiddly and not really worth the
+effort. May as well just define all the \glspl{entry} in the
+\glsxtr{preamble} instead.
+
+The \glsxtr[][name={na\"{\i}ve}]{naive} 
+\glsxtr[][plural={ph\oe nixes},name={ph\oe nix}]{phoenix} sent 
+off its \glsxtr[][name={r\'esum\'e}]{resume} covered in 
+\glsxtr[][name={p\^at\'e}]{pate} from
+the \glsxtr[][name={soir\'ee}]{soiree}.
+
+\newpage
+The previous page presupposes the existence of 
+\glsxtrpl{phoenix}.
+
+\newpage
+
+\printglossaries
+
+\end{document}
-- 
cgit v1.2.3

