diff options
Diffstat (limited to 'macros/latex/contrib/glossaries/samples/sampleCustomAcr.tex')
-rw-r--r-- | macros/latex/contrib/glossaries/samples/sampleCustomAcr.tex | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/macros/latex/contrib/glossaries/samples/sampleCustomAcr.tex b/macros/latex/contrib/glossaries/samples/sampleCustomAcr.tex index 084f5b7c98..bc32d1329a 100644 --- a/macros/latex/contrib/glossaries/samples/sampleCustomAcr.tex +++ b/macros/latex/contrib/glossaries/samples/sampleCustomAcr.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,8 +18,8 @@ \makeglossaries - % Define a new acronym style called "altfn" that's based on the - % footnote-sc-desc style +% Define a new acronym style called "altfn" that's based on the +% footnote-sc-desc style \newacronymstyle {altfn}% style name @@ -28,44 +28,44 @@ }% {% Inherit definitions from "footnote-sc-desc" \GlsUseAcrStyleDefs{footnote-sc-desc}% - % Modify the first use display styles so they put the long form - % followed by the description in the footnote: - % - % First use of \gls: +% Modify the first use display styles so they put the long form +% followed by the description in the footnote: +% +% First use of \gls: \renewcommand*{\genacrfullformat}[2]{% \protect\firstacronymfont{\glsentryshort{##1}}##2% \protect\footnote{\glsentrylong{##1}: \glsentrydesc{##1}}% }% - % First use of \Gls: +% First use of \Gls: \renewcommand*{\Genacrfullformat}[2]{% \firstacronymfont{\Glsentryshort{##1}}##2% \protect\footnote{\glsentrylong{##1}: \glsentrydesc{##1}}% }% - % First use of \glspl: +% First use of \glspl: \renewcommand*{\genplacrfullformat}[2]{% \protect\firstacronymfont{\glsentryshortpl{##1}}##2% \protect\footnote{\glsentrylongpl{##1}: \glsentrydesc{##1}}% }% - % First use of \Glspl: +% First use of \Glspl: \renewcommand*{\Genplacrfullformat}[2]{% \protect\firstacronymfont{\Glsentryshortpl{##1}}##2% \protect\footnote{\glsentrylongpl{##1}: \glsentrydesc{##1}}% }% - % Sort according to long form: +% Sort according to long form: \renewcommand*{\acronymsort}[2]{##2}% - % Set the name (as displayed in the glossary) to long (short) +% Set the name (as displayed in the glossary) to long (short) \renewcommand*{\acronymentry}[1]{% \glsentrylong{##1} (\acronymfont{\glsentryshort{##1}})}% - % Since bold small caps isn't supported with this document's - % fonts, adjust \acronymfont so that it switches to medium - % small caps: +% Since bold small caps isn't supported with this document's +% fonts, adjust \acronymfont so that it switches to medium +% small caps: \renewcommand{\acronymfont}[1]{\textmd{\scshape ##1}}% } - % Now use this new style: +% Now use this new style: \setacronymstyle{altfn} - % 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 @@ -84,7 +84,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). |