summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/glossaries/samples/sampleNtn.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/glossaries/samples/sampleNtn.tex')
-rw-r--r--macros/latex/contrib/glossaries/samples/sampleNtn.tex21
1 files changed, 11 insertions, 10 deletions
diff --git a/macros/latex/contrib/glossaries/samples/sampleNtn.tex b/macros/latex/contrib/glossaries/samples/sampleNtn.tex
index 9b3841cc33..23ddfcd409 100644
--- a/macros/latex/contrib/glossaries/samples/sampleNtn.tex
+++ b/macros/latex/contrib/glossaries/samples/sampleNtn.tex
@@ -4,6 +4,8 @@
% arara: makeglossaries
% arara: pdflatex: { synctex: on }
% arara: pdflatex: { synctex: on }
+%
+%http://mirrors.ctan.org/macros/latex/contrib/glossaries/glossaries-user.html#sampleNtn
\documentclass{report}
% If you want to add babel to this document, you may have to
@@ -12,7 +14,7 @@
\usepackage[plainpages=false,colorlinks]{hyperref}
\usepackage{html}
-\usepackage[toc,xindy]{glossaries}
+\usepackage[toc]{glossaries}
% Define a new glossary type called notation
\newglossary[nlg]{notation}{not}{ntn}{Notation}
@@ -22,22 +24,22 @@
% Notation definitions
\newglossaryentry{not:set}{type=notation, % glossary type
-name={$\mathcal{S}$},
-description={A set},
+name={\ensuremath{\mathcal{S}}},
+description={A \gls{gls:set}},
sort={S}}
\newglossaryentry{not:U}{type=notation,
-name={$\mathcal{U}$},
-description={The universal set},
+name={\ensuremath{\mathcal{U}}},
+description={The universal \gls{gls:set}},
sort=U}
\newglossaryentry{not:card}{type=notation,
-name={$|\mathcal{S}|$},
-description={cardinality of $\mathcal{S}$},
+name={\ensuremath{\mid\mathcal{S}\mid}},
+description={The \gls{gls:card} of $\mathcal{S}$},
sort=cardinality}
\newglossaryentry{not:fact}{type=notation,
-name={$!$},
+name={\ensuremath{!}},
description={factorial},
sort=factorial}
@@ -61,8 +63,7 @@ description={The number of elements in the specified set}}
This is a sample document illustrating the use of the
\textsf{glossaries} package. In this example, a new glossary type
called \texttt{notation} is defined, so that the document can have a
-separate glossary of terms and index of notation. The index of notation
-doesn't have associated numbers.
+separate glossary of terms and index of notation.
\end{abstract}