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.tex24
1 files changed, 16 insertions, 8 deletions
diff --git a/Master/texmf-dist/doc/latex/glossaries/samples/sampleAcrDesc.tex b/Master/texmf-dist/doc/latex/glossaries/samples/sampleAcrDesc.tex
index 3ff8cd0ad83..e57550ce872 100644
--- a/Master/texmf-dist/doc/latex/glossaries/samples/sampleAcrDesc.tex
+++ b/Master/texmf-dist/doc/latex/glossaries/samples/sampleAcrDesc.tex
@@ -1,23 +1,33 @@
+ % This file is public domain
\documentclass[a4paper]{report}
\usepackage[colorlinks,plainpages=false]{hyperref}
-\usepackage[style=altlist, % use altlist style
+\usepackage[acronym,% create 'acronym' glossary type
+ nomain,% 'main' glossary not needed as using 'acronym'
+ style=altlist, % use altlist style
toc, % add the glossary to the table of contents
sanitize={description=false},% want to use description in main document
+ smallcaps,%
description% acronyms have a user-supplied description
]{glossaries}
\makeglossaries
+\renewcommand*{\glsseeitemformat}[1]{\acronymfont{\glsentrytext{#1}}}
+
+\renewcommand*{\acrnameformat}[2]{\acronymfont{#1} (#2)}
+
+
+\renewcommand*{\glsnamefont}[1]{\textmd{#1}}
+
\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 \glshyperlink[SVM]{svm})},% acronym's description
-name={Kernel support vector machine (ksvm)}% change the default way of displaying the entry name in the list of acronyms
+using the ``kernel trick''},% acronym's description
+see={[see also]{svm}},
]{ksvm}{ksvm}{kernel
support vector machine}
@@ -30,10 +40,8 @@ The \gls{svm} is used widely in the area of pattern recognition.
% plural form with initial letter in uppercase:
\Glspl{svm} are \ldots
-This is the text produced without a link: \glsentrytext{svm}.
-This is the text produced on first use without a link:
-\glsentryfirst{svm}. This is the entry's description without
-a link: \glsentrydesc{svm}.
+Short version: \acrshort{svm}. Long version: \acrlong{svm}. Full
+version: \acrfull{svm}. Description: \glsentrydesc{svm}.
This is the entry in uppercase: \GLS{svm}.