diff options
Diffstat (limited to 'macros/latex/contrib/glossaries/samples/sampleAcrDesc.tex')
-rw-r--r-- | macros/latex/contrib/glossaries/samples/sampleAcrDesc.tex | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/macros/latex/contrib/glossaries/samples/sampleAcrDesc.tex b/macros/latex/contrib/glossaries/samples/sampleAcrDesc.tex index e2170feb16..03490057a2 100644 --- a/macros/latex/contrib/glossaries/samples/sampleAcrDesc.tex +++ b/macros/latex/contrib/glossaries/samples/sampleAcrDesc.tex @@ -4,8 +4,11 @@ % arara: makeglossaries % arara: pdflatex: { synctex: on } % arara: pdflatex: { synctex: on } +% +%http://mirrors.ctan.org/macros/latex/contrib/glossaries/glossaries-user.html#sampleAcrDesc \documentclass[a4paper]{report} +\usepackage[T1]{fontenc}% need support for bold smallcaps \usepackage[colorlinks,plainpages=false]{hyperref} \usepackage[acronym,% create 'acronym' glossary type % The package option "nomain" is used here to suppress the @@ -24,19 +27,14 @@ % Change the "see" items so that they use \acronymfont: \renewcommand*{\glsseeitemformat}[1]{\acronymfont{\glsentrytext{#1}}} -% Not using a font that supports bold smallcaps so change the way -% the name is formatted in the glossary: - -\renewcommand*{\glsnamefont}[1]{\textmd{#1}} - \newacronym[description={Statistical pattern recognition -technique~\protect\cite{svm}}, % acronym's description +technique~\protect\cite{svm}} % acronym's description ]{svm}{svm}{support vector machine} \newacronym [description={Statistical pattern recognition technique using the ``kernel trick''},% acronym's description - see={[see also]{svm}}, + see={[see also]{svm}} ] {ksvm}{ksvm}{kernel support vector machine} @@ -58,6 +56,9 @@ This is the entry in uppercase: \GLS{svm}. \chapter{Kernel Support Vector Machines} +% Instead of using the clumsy \ifglsused, you might find it simpler +% to use glossaries-prefix.sty + The \gls{ksvm} is \ifglsused{svm}{an}{a} \gls{svm} that uses the so called ``kernel trick''. This is the entry's description without a link: \glsentrydesc{ksvm}. |