summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/glossaries/samples/sampleFnAcrDesc.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/glossaries/samples/sampleFnAcrDesc.tex')
-rw-r--r--macros/latex/contrib/glossaries/samples/sampleFnAcrDesc.tex31
1 files changed, 16 insertions, 15 deletions
diff --git a/macros/latex/contrib/glossaries/samples/sampleFnAcrDesc.tex b/macros/latex/contrib/glossaries/samples/sampleFnAcrDesc.tex
index 8ea1f3883c..c1a24c8f17 100644
--- a/macros/latex/contrib/glossaries/samples/sampleFnAcrDesc.tex
+++ b/macros/latex/contrib/glossaries/samples/sampleFnAcrDesc.tex
@@ -1,16 +1,16 @@
- % This file is public domain
- % If you want to use arara, you need the following directives:
- % arara: pdflatex: { synctex: on }
- % arara: makeglossaries
- % arara: pdflatex: { synctex: on }
- % arara: pdflatex: { synctex: on }
+% This file is public domain
+% If you want to use arara, you need the following directives:
+% arara: pdflatex: { synctex: on }
+% arara: makeglossaries
+% arara: pdflatex: { synctex: on }
+% arara: pdflatex: { synctex: on }
\documentclass[a4paper]{report}
\usepackage[colorlinks,plainpages=false]{hyperref}
\usepackage[acronym,% create 'acronym' glossary type
- % The package option "nomain" is used here to suppress the
- % main glossary, since this example doesn't use it. If you
- % want to use the main glossary, remove the "nomain" option.
+% The package option "nomain" is used here to suppress the
+% main glossary, since this example doesn't use it. If you
+% want to use the main glossary, remove the "nomain" option.
nomain,
style=altlist, % use altlist style
toc, % add the glossary to the table of contents
@@ -18,21 +18,22 @@
\makeglossaries
- % Change the acronym style to a small-caps footnote style:
+% Change the acronym style to a small-caps footnote style:
\setacronymstyle{footnote-sc-desc}
- % Make some minor adjustments to the style:
+% Make some minor adjustments to the style:
\renewcommand*{\acronymsort}[2]{#1}% sort by short form
\renewcommand*{\acronymentry}[1]{%
\acronymfont{\glsentryshort{#1}}\space (\glsentrylong{#1})}
- % Not using a font that supports bold smallcaps so ensure
- % the acronym is always in medium weight.
+% Not using a font that supports bold smallcaps so ensure
+% the acronym is always in medium weight.
\renewcommand*{\acronymfont}[1]{\textmd{\scshape #1}}
- % Change the "see" items so that they use \acronymfont:
+% Change the "see" items so that they use \acronymfont:
\renewcommand*{\glsseeitemformat}[1]{\acronymfont{\glsentrytext{#1}}}
+
\newacronym[description={Statistical pattern recognition
technique~\protect\cite{svm}}, % acronym's description
]{svm}{svm}{support vector machine}
@@ -49,7 +50,7 @@ support vector machine}
\chapter{Support Vector Machines}
The \gls{svm} is used widely in the area of pattern recognition.
- % plural form with initial letter in uppercase:
+% plural form with initial letter in uppercase:
\Glspl{svm} are \ldots\ (but beware, converting the initial letter to
upper case for a small caps acronym is sometimes considered
poor style).