summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/glossaries/samples/sampleAcrDesc.tex
diff options
context:
space:
mode:
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}