| 1 |
% This file is public domain |
| 2 |
% |
| 3 |
% See also sampleAcrDesc.tex |
| 4 |
% |
| 5 |
% If you want to use arara, you need the following directives: |
| 6 |
% arara: pdflatex: { synctex: on } |
| 7 |
% arara: makeglossaries |
| 8 |
% arara: pdflatex: { synctex: on } |
| 9 |
% arara: pdflatex: { synctex: on } |
| 10 |
% |
| 11 |
%http://mirrors.ctan.org/macros/latex/contrib/glossaries/glossaries-user.html#sampleDesc |
| 12 |
\documentclass[a4paper]{report} |
| 13 |
|
| 14 |
\usepackage[colorlinks,plainpages=false]{hyperref} |
| 15 |
|
| 16 |
\usepackage[style=altlist, % use altlist style |
| 17 |
toc % add the glossary to the table of contents |
| 18 |
]{glossaries} |
| 19 |
|
| 20 |
\makeglossaries |
| 21 |
|
| 22 |
% This sample file demonstrates the use of the first and text keys |
| 23 |
% but in general it's better to use \newacronym (as in |
| 24 |
% sampleAcrDesc.tex) instead as it's more flexible. For even greater |
| 25 |
% flexibility use \newabbreviation provided by glossaries-extra.sty |
| 26 |
|
| 27 |
\newglossaryentry{svm}{ |
| 28 |
% how the entry name should appear in the glossary |
| 29 |
name={Support vector machine (SVM)}, |
| 30 |
% how the description should appear in the glossary |
| 31 |
description={Statistical pattern recognition |
| 32 |
technique~\cite{svm}}, |
| 33 |
% how the entry should appear in the document text |
| 34 |
text={svm}, |
| 35 |
% how the entry should appear the first time it is |
| 36 |
% used in the document text |
| 37 |
first={support vector machine (svm)}} |
| 38 |
|
| 39 |
\newglossaryentry{ksvm}{ |
| 40 |
name={Kernel support vector machine (KSVM)}, |
| 41 |
description={Statistical pattern recognition technique |
| 42 |
using the ``kernel trick'' (see also SVM)}, |
| 43 |
text={ksvm}, |
| 44 |
first={kernel 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 |
| 54 |
|
| 55 |
This is the text produced without a link: \glsentrytext{svm}. |
| 56 |
This is the text produced on first use without a link: |
| 57 |
\glsentryfirst{svm}. This is the entry's description without |
| 58 |
a link: \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''. |
| 66 |
|
| 67 |
\glsresetall |
| 68 |
Possessive: \gls{ksvm}['s]. |
| 69 |
Make the glossary entry number bold for this |
| 70 |
one \gls[format=hyperbf]{svm}. |
| 71 |
|
| 72 |
\begin{thebibliography}{1} |
| 73 |
\bibitem{svm} \ldots |
| 74 |
\end{thebibliography} |
| 75 |
|
| 76 |
\printglossary[title={Acronyms}] |
| 77 |
|
| 78 |
\end{document} |