Debian Codegraph @

texmf-dist/doc/latex/glossaries/samples/sampleFnAcrDesc.tex

raw
1 % This file is public domain
2 % If you want to use arara, you need the following directives:
3 % arara: pdflatex: { synctex: on }
4 % arara: makeglossaries
5 % arara: pdflatex: { synctex: on }
6 % arara: pdflatex: { synctex: on }
7 %
8 %http://mirrors.ctan.org/macros/latex/contrib/glossaries/glossaries-user.html#sampleFnAcrDesc
9 \documentclass[a4paper]{report}
10
11 \usepackage[T1]{fontenc}% need support for bold smallcaps
12 \usepackage[colorlinks,plainpages=false]{hyperref}
13 \usepackage[acronym,% create 'acronym' glossary type
14 % The package option "nomain" is used here to suppress the
15 % main glossary, since this example doesn't use it. If you
16 % want to use the main glossary, remove the "nomain" option.
17 nomain,
18 style=altlist, % use altlist style
19 toc, % add the glossary to the table of contents
20 ]{glossaries}
21
22 \makeglossaries
23
24 % Change the acronym style to a small-caps footnote style:
25 \setacronymstyle{footnote-sc-desc}
26
27 % Make some minor adjustments to the style:
28 \renewcommand*{\acronymsort}[2]{#1}% sort by short form
29 \renewcommand*{\acronymentry}[1]{%
30 \acronymfont{\glsentryshort{#1}}\space (\glsentrylong{#1})}
31
32 % Change the "see" items so that they use \acronymfont:
33 \renewcommand*{\glsseeitemformat}[1]{\acronymfont{\glsentrytext{#1}}}
34
35
36 \newacronym[description={Statistical pattern recognition
37 technique~\protect\cite{svm}}, % acronym's description
38 ]{svm}{svm}{support vector machine}
39
40 \newacronym[description={Statistical pattern recognition technique
41 using the ``kernel trick''},% acronym's description
42 see={[see also]{svm}},
43 ]{ksvm}{ksvm}{kernel
44 support vector machine}
45
46 \begin{document}
47 \tableofcontents
48
49 \chapter{Support Vector Machines}
50
51 The \gls{svm} is used widely in the area of pattern recognition.
52 % plural form with initial letter in uppercase:
53 \Glspl{svm} are \ldots\ (but beware, converting the initial letter to
54 upper case for a small caps acronym is sometimes considered
55 poor style).
56
57 Short version: \acrshort{svm}. Long version: \acrlong{svm}. Full
58 version: \acrfull{svm}. Description: \glsentrydesc{svm}.
59
60 This is the entry in uppercase: \GLS{svm}.
61
62 \chapter{Kernel Support Vector Machines}
63
64 The \gls{ksvm} is \ifglsused{svm}{an}{a} \gls{svm} that uses
65 the so called ``kernel trick''. This is the entry's description without
66 a link: \glsentrydesc{ksvm}.
67
68 \glsresetall
69 Possessive: \gls{ksvm}['s].
70 Make the glossary entry number bold for this
71 one \gls[format=hyperbf]{svm}.
72
73 \begin{thebibliography}{1}
74 \bibitem{svm} \ldots
75 \end{thebibliography}
76
77 \printglossary
78
79 \end{document}