summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/glossaries/samples/sampleAcrDesc.tex
diff options
context:
space:
mode:
authorManuel Pégourié-Gonnard <mpg@elzevir.fr>2008-05-22 12:12:33 +0000
committerManuel Pégourié-Gonnard <mpg@elzevir.fr>2008-05-22 12:12:33 +0000
commitce57a552309046a4cc494db73b145392d23854d8 (patch)
tree31e74f95d0e1055a9be38ceeff043b0da92c6b55 /Master/texmf-dist/doc/latex/glossaries/samples/sampleAcrDesc.tex
parent5d73f3920ec5a45afe3f6a89f59cbf5ba5f90a8f (diff)
-mglossaries v1.13 (2008/05/18)
git-svn-id: svn://tug.org/texlive/trunk@8285 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/glossaries/samples/sampleAcrDesc.tex')
-rw-r--r--Master/texmf-dist/doc/latex/glossaries/samples/sampleAcrDesc.tex35
1 files changed, 13 insertions, 22 deletions
diff --git a/Master/texmf-dist/doc/latex/glossaries/samples/sampleAcrDesc.tex b/Master/texmf-dist/doc/latex/glossaries/samples/sampleAcrDesc.tex
index 8014d656b42..e8945a270e3 100644
--- a/Master/texmf-dist/doc/latex/glossaries/samples/sampleAcrDesc.tex
+++ b/Master/texmf-dist/doc/latex/glossaries/samples/sampleAcrDesc.tex
@@ -4,31 +4,22 @@
\usepackage[style=altlist, % use altlist style
toc, % add the glossary to the table of contents
- sanitize={description=false}% don't sanitize description
+ sanitize={description=false},% want to use description in main document
+ description% acronyms have a user-supplied description
]{glossaries}
\makeglossaries
-\newglossaryentry{svm}{
- % how the entry name should appear in the glossary
-name={Support vector machine (SVM)},
- % how the description should appear in the glossary
- % since I have used sanitize={description=false}
- % I have to protect fragile commands
-description={Statistical pattern recognition
-technique~\protect\cite{svm}},
- % how the entry should appear in the document text
-text={svm},
- % how the entry should appear the first time it is
- % used in the document text
-first={support vector machine (svm)}}
-
-\newglossaryentry{ksvm}{
-name={Kernel support vector machine (KSVM)},
-description={Statistical pattern recognition technique
-using the ``kernel trick'' (see also SVM)},
-text={ksvm},
-first={kernel support vector machine}}
+\newacronym[description={Statistical pattern recognition
+technique~\protect\cite{svm}}, % acronym's description
+name={Support vector machine (svm)}% change the default way of displaying the entry name in the list of acronyms
+]{svm}{svm}{support vector machine}
+
+\newacronym[description={Statistical pattern recognition technique
+using the ``kernel trick'' (see also SVM)},% acronym's description
+name={Kernel support vector machine (ksvm)}% change the default way of displaying the entry name in the list of acronyms
+]{ksvm}{ksvm}{kernel
+support vector machine}
\begin{document}
\tableofcontents
@@ -60,6 +51,6 @@ one \gls[format=hyperbf]{svm}.
\bibitem{svm} \ldots
\end{thebibliography}
-\printglossary[title={Acronyms}]
+\printglossary
\end{document}