summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/glossaries/samples/sample.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-04-04 23:19:17 +0000
committerKarl Berry <karl@freefriends.org>2011-04-04 23:19:17 +0000
commitd49526563e8a66d6774a086ad2a91fbf249b35b3 (patch)
treeaecb9254e4f4db280b2f7ab8a9dc9f154fa08dd7 /Master/texmf-dist/doc/latex/glossaries/samples/sample.tex
parentaeb22f958bf3b465bb5e3f085176c7fe0f2ef562 (diff)
glossaries 3.0 (4apr11)
git-svn-id: svn://tug.org/texlive/trunk@21968 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/glossaries/samples/sample.tex')
-rw-r--r--Master/texmf-dist/doc/latex/glossaries/samples/sample.tex42
1 files changed, 22 insertions, 20 deletions
diff --git a/Master/texmf-dist/doc/latex/glossaries/samples/sample.tex b/Master/texmf-dist/doc/latex/glossaries/samples/sample.tex
index bfea39f9672..86b299ab7a4 100644
--- a/Master/texmf-dist/doc/latex/glossaries/samples/sample.tex
+++ b/Master/texmf-dist/doc/latex/glossaries/samples/sample.tex
@@ -1,27 +1,28 @@
+ % This file is public domain
\documentclass[a4paper]{report}
\usepackage[plainpages=false,colorlinks]{hyperref}
-\usepackage[toc,style=treenoname,order=word,acronym]{glossaries}
+\usepackage[toc,style=treenoname,order=word,subentrycounter]{glossaries}
\makeglossaries
+\newglossaryentry{Perl}{name=\texttt{Perl},
+sort=Perl, % need a sort key because name contains a command
+description=A scripting language}
+
\newglossaryentry{glossary}{name=glossary,
description={\nopostdesc},
plural={glossaries}}
-\newglossaryentry{glossarylist}{
-description={1) list of technical words},
-sort={1},
-parent={glossary}}
-
\newglossaryentry{glossarycol}{
-description={2) collection of glosses},
+description={collection of glosses},
sort={2},
parent={glossary}}
-\newglossaryentry{Perl}{name=\texttt{Perl},
-sort=Perl, % need a sort key because name contains a command
-description=A scripting language}
+\newglossaryentry{glossarylist}{
+description={list of technical words},
+sort={1},
+parent={glossary}}
\newglossaryentry{pagelist}{name=page list,
% description value has to be enclosed in braces
@@ -54,12 +55,12 @@ female of any bovine animal}}
\newglossaryentry{bravo}{name={bravo},
description={\nopostdesc}}
-\newglossaryentry{bravo1}{description={1) cry of approval (pl.\ bravos)},
+\newglossaryentry{bravo1}{description={cry of approval (pl.\ bravos)},
sort={1},
plural={bravos},
parent=bravo}
-\newglossaryentry{bravo2}{description={2) hired ruffian or killer (pl.\ bravoes)},
+\newglossaryentry{bravo2}{description={hired ruffian or killer (pl.\ bravoes)},
sort={2},
plural={bravoes},
parent=bravo}
@@ -83,11 +84,11 @@ description={large seal}}
\chapter{Introduction}
\pagenumbering{arabic}
-A \gls{glossarylist} is a very useful addition to any
-technical document, although a \gls{glossarycol} can
-also simply be a collection of glosses, which is
-another thing entirely. Some documents have
-multiple \glspl{glossarylist}.
+A \gls{glossarylist} (definition~\glsrefentry{glossarylist}) is a
+very useful addition to any technical document, although a
+\gls{glossarycol} (definition~\glsrefentry{glossarycol}) can also
+simply be a collection of glosses, which is another thing entirely.
+Some documents have multiple \glspl{glossarylist}.
Once you have run your document through \LaTeX, you
will then need to run the \texttt{.glo} file through
@@ -115,9 +116,10 @@ explicitly specify the alternative form using \verb|\glslink|.
\Glspl{seal} and \glspl{sealion} have regular plural forms.
\Gls{bravo} is a homograph, but the plural forms are spelt
-differently. The plural of \gls{bravo1}, a cry of approval,
-is \glspl{bravo1}, whereas the plural of \gls{bravo2}, a hired
-ruffian or killer, is \glspl{bravo2}.
+differently. The plural of \gls{bravo1}, a cry of approval
+(definition~\glsrefentry{bravo1}), is \glspl{bravo1}, whereas the
+plural of \gls{bravo2}, a hired ruffian or killer
+(definition~\glsrefentry{bravo2}), is \glspl{bravo2}.
\Glspl{par} can cause a problem in commands, so care is needed
when having a paragraph break in a \gls{glossarylist} entry.