summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/glossaries/samples/sampleacronyms.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-11-13 16:23:27 +0000
committerKarl Berry <karl@freefriends.org>2009-11-13 16:23:27 +0000
commit6cc2c89243924fb671f0ad637ed718b99933fbde (patch)
tree6a827d14bb8c3089e7525b43a81c2510167848fb /Master/texmf-dist/doc/latex/glossaries/samples/sampleacronyms.tex
parent9f6934cabc90af62c40c7ed913cf91f6a9c6f61a (diff)
glossaries 2.4 (10nov09)
git-svn-id: svn://tug.org/texlive/trunk@16008 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/glossaries/samples/sampleacronyms.tex')
-rw-r--r--Master/texmf-dist/doc/latex/glossaries/samples/sampleacronyms.tex34
1 files changed, 34 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/glossaries/samples/sampleacronyms.tex b/Master/texmf-dist/doc/latex/glossaries/samples/sampleacronyms.tex
new file mode 100644
index 00000000000..c01c479cc49
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/glossaries/samples/sampleacronyms.tex
@@ -0,0 +1,34 @@
+\documentclass{article}
+
+\usepackage[acronym,footnote,acronymlists={main,acronym2}]{glossaries}
+
+\newglossary[alg2]{acronym2}{acr2}{acn2}{Statistical Acronyms}
+
+\makeglossaries
+
+% Main glossary is a list of calculus acronyms
+
+\renewcommand{\glossaryname}{Calculus Acronyms}
+
+\newacronym[type=main]{vc}{VC}{Vector Calculus}
+\newacronym[type=main]{ftoc}{FTOC}{Fundamental Theorem of Calculus}
+
+% "acronym" glossary is a list of computer related acronyms
+
+\renewcommand{\acronymname}{Computer Acronyms}
+
+\newacronym{kb}{kb}{KiloBit}
+\newacronym{kB}{kB}{KiloByte}
+
+% "acronym2" glossary is a list of statistical acronyms
+
+\newacronym[type=acronym2]{svm}{SVM}{Support Vector Machine}
+
+\begin{document}
+\section{Sample Section}
+\gls{kb}. \gls{kB}. \gls{vc}. \gls{ftoc}. \gls{svm}.
+
+\gls{kb}. \gls{kB}. \gls{vc}. \gls{ftoc}. \gls{svm}.
+
+\printglossaries
+\end{document}