| 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#sampleAcr |
| 9 |
\documentclass[a4paper]{report} |
| 10 |
|
| 11 |
\usepackage[colorlinks,plainpages=false]{hyperref} |
| 12 |
\usepackage[style=long,% use 'long' style for the glossary |
| 13 |
toc,% add glossary to table of contents |
| 14 |
]{glossaries} |
| 15 |
|
| 16 |
\makeglossaries |
| 17 |
|
| 18 |
% Set the acronym style |
| 19 |
\setacronymstyle{long-sc-short} |
| 20 |
|
| 21 |
\newacronym{svm}% label |
| 22 |
{svm}% abbreviation |
| 23 |
{support vector machine}% long form |
| 24 |
|
| 25 |
\newacronym{ksvm}{ksvm}{kernel support vector machine} |
| 26 |
|
| 27 |
\newacronym{rna}{rna}{ribonukleins\"aure} |
| 28 |
|
| 29 |
\begin{document} |
| 30 |
\tableofcontents |
| 31 |
|
| 32 |
\chapter{Support Vector Machines} |
| 33 |
|
| 34 |
\Glspl{svm} are used widely in the area of pattern recognition. |
| 35 |
Subsequent use: \gls{svm}. |
| 36 |
|
| 37 |
Short version: \acrshort{svm}. Long version: \acrlong{svm}. Full |
| 38 |
version: \acrfull{svm}. Description: \glsentrydesc{svm}. |
| 39 |
|
| 40 |
This is the entry in uppercase: \GLS{svm}. |
| 41 |
|
| 42 |
\chapter{Kernel Support Vector Machines} |
| 43 |
|
| 44 |
% Instead of using the clumsy \ifglsused, you might find it simpler |
| 45 |
% to use glossaries-prefix.sty |
| 46 |
|
| 47 |
The \gls{ksvm} is \ifglsused{svm}{an}{a} \gls{svm} that uses |
| 48 |
the so called ``kernel trick''. Plural: \glspl{ksvm}. Resetting |
| 49 |
acronyms. |
| 50 |
|
| 51 |
\glsresetall |
| 52 |
Possessive: \gls{ksvm}['s]. |
| 53 |
Make the glossary entry number bold for this |
| 54 |
one \gls[format=hyperbf]{ksvm}. |
| 55 |
|
| 56 |
\chapter{Short, Long and Full Forms} |
| 57 |
|
| 58 |
These commands don't affect the first use flag: |
| 59 |
|
| 60 |
\begin{center} |
| 61 |
\begin{tabular}{lll} |
| 62 |
& Unstarred & Starred\\ |
| 63 |
acrshort & \acrshort{svm} & \acrshort*{svm}\\ |
| 64 |
Acrshort & \Acrshort{svm} & \Acrshort*{svm}\\ |
| 65 |
ACRshort & \ACRshort{svm} & \ACRshort*{svm}\\ |
| 66 |
acrlong & \acrlong{svm} & \acrlong*{svm}\\ |
| 67 |
Acrlong & \Acrlong{svm} & \Acrlong*{svm}\\ |
| 68 |
ACRlong & \ACRlong{svm} & \ACRlong*{svm}\\ |
| 69 |
acrfull & \acrfull{svm} & \acrfull*{svm}\\ |
| 70 |
Acrfull & \Acrfull{svm} & \Acrfull*{svm}\\ |
| 71 |
ACRfull & \ACRfull{svm} & \ACRfull*{svm}\\ |
| 72 |
\\ |
| 73 |
& Insert Unstarred & Insert Starred\\ |
| 74 |
acrshort & \acrshort{svm}['s] & \acrshort*{svm}['s]\\ |
| 75 |
Acrshort & \Acrshort{svm}['s] & \Acrshort*{svm}['s]\\ |
| 76 |
ACRshort & \ACRshort{svm}['s] & \ACRshort*{svm}['s]\\ |
| 77 |
acrlong & \acrlong{svm}['s] & \acrlong*{svm}['s]\\ |
| 78 |
Acrlong & \Acrlong{svm}['s] & \Acrlong*{svm}['s]\\ |
| 79 |
ACRlong & \ACRlong{svm}['s] & \ACRlong*{svm}['s]\\ |
| 80 |
acrfull & \acrfull{svm}['s] & \acrfull*{svm}['s]\\ |
| 81 |
Acrfull & \Acrfull{svm}['s] & \Acrfull*{svm}['s]\\ |
| 82 |
ACRfull & \ACRfull{svm}['s] & \ACRfull*{svm}['s] |
| 83 |
\end{tabular} |
| 84 |
\end{center} |
| 85 |
|
| 86 |
\chapter{Another chapter} |
| 87 |
|
| 88 |
You don't need to worry about makeindex's special characters: |
| 89 |
\gls{rna}. |
| 90 |
|
| 91 |
\printglossary[title={List of Acronyms}] |
| 92 |
|
| 93 |
\end{document} |