summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/glossary/sample.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/glossary/sample.tex')
-rw-r--r--Master/texmf-dist/doc/latex/glossary/sample.tex36
1 files changed, 22 insertions, 14 deletions
diff --git a/Master/texmf-dist/doc/latex/glossary/sample.tex b/Master/texmf-dist/doc/latex/glossary/sample.tex
index adb2f94af49..5d3a245a346 100644
--- a/Master/texmf-dist/doc/latex/glossary/sample.tex
+++ b/Master/texmf-dist/doc/latex/glossary/sample.tex
@@ -33,6 +33,21 @@
\makeglossary
+
+\storeglosentry{glossary1}{name=glossary,
+description=1) list of technical words}
+
+\storeglosentry{glossary2}{name=glossary,
+description=2) collection of glosses}
+
+\storeglosentry{Perl}{name=\texttt{Perl},
+sort=Perl, % need a sort key because name contains a command
+description=A scripting language}
+
+\storeglosentry{pagelist}{name=page list,
+description={a list of individual pages or page ranges,
+e.g.\ 1,2,4,7-9}}
+
\begin{document}
\title{Sample Document Using glossary Package}
@@ -46,10 +61,8 @@
\chapter{Introduction}
\pagenumbering{arabic}
-A \xglossary{name=glossary,description=1) list of technical
-words}{glossary} is a very useful addition to any
-technical document, although a \xglossary{name=glossary,
-description=2) collection of glosses}{glossary} can
+A \gls{glossary1} is a very useful addition to any
+technical document, although a \gls{glossary2} can
also simply be a collection of glosses, which is
another thing entirely.
@@ -61,23 +74,18 @@ of an \texttt{.ind} file, and change the name of
the log file so that it doesn't overwrite the index
log file (if you have an index for your document).
Rather than having to remember all the command line
-switches, you can call the \xglossary{name=\texttt{Perl},
-sort=Perl,description=A scripting language}{Perl} script
+switches, you can call the \gls{Perl} script
\texttt{makeglos.pl} which provides a convenient
wrapper.
If you have two terms with different meanings in your
-\xglossary{name=glossary,description=1) list of technical
-words}{glossary},
-\texttt{makeindex} will of course treat them as two
+\gls{glossary1}, \texttt{makeindex} will of course treat them as two
separate entries, however, some people prefer to
-merge them. This can be done using
-\texttt{makeglos.pl}, and passing the option
-\texttt{-m}.
+merge them. This can be done using \texttt{makeglos.pl}, and
+passing the option \texttt{-m}.
If a comma appears within the name or description, grouping
-must be used: \xglossary{name=page list,description={a list
-of individual pages or page ranges, e.g.\ 1,2,4,7-9}}{page list}
+must be used: \gls{pagelist}.
\printglossary