diff options
author | Karl Berry <karl@freefriends.org> | 2013-12-06 22:12:47 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-12-06 22:12:47 +0000 |
commit | cfbdc127e742f1a0758482a6e7c5f00985127ff6 (patch) | |
tree | a4c682376d022ca5c3c73595a489e32f26c66948 /Master/texmf-dist/doc/latex/glossaries/samples | |
parent | 7f304fc721af7e006a9209f30840ad96bfab1e9f (diff) |
glossaries (6dec13)
git-svn-id: svn://tug.org/texlive/trunk@32341 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/glossaries/samples')
43 files changed, 327 insertions, 277 deletions
diff --git a/Master/texmf-dist/doc/latex/glossaries/samples/minimalgls.pdf b/Master/texmf-dist/doc/latex/glossaries/samples/minimalgls.pdf Binary files differindex 8860c21f396..1b9da222b7b 100644 --- a/Master/texmf-dist/doc/latex/glossaries/samples/minimalgls.pdf +++ b/Master/texmf-dist/doc/latex/glossaries/samples/minimalgls.pdf diff --git a/Master/texmf-dist/doc/latex/glossaries/samples/minimalgls.tex b/Master/texmf-dist/doc/latex/glossaries/samples/minimalgls.tex index 91b70b8bc02..144f1436977 100644 --- a/Master/texmf-dist/doc/latex/glossaries/samples/minimalgls.tex +++ b/Master/texmf-dist/doc/latex/glossaries/samples/minimalgls.tex @@ -38,6 +38,22 @@ \makeglossaries + % Setup acronym fonts (e.g. \emph for short form on first use and + % \textbf for short form on subsequent use): +\renewcommand{\firstacronymfont}[1]{\emph{#1}} +\renewcommand{\acronymfont}[1]{\textbf{#1}} + % Apply the generic acronym style to just the "acronym" glossary: +\defglsentryfmt[acronym]{\glsgenacfmt} + + % Change acronym first use so that its displayed as + % short (long) +\renewcommand{\genacrfullformat}[2]{% + \glsentryshort{#1}#2 (\glsentrylong{#1})% +} +\renewcommand{\genplacrfullformat}[2]{% + \glsentryshortpl{#1}#2 (\glsentrylongpl{#1})% +} + \longnewglossaryentry{par}{name={par}}% {% A long description with a paragraph break. @@ -57,6 +73,12 @@ A \gls{sample} entry and \gls{aca}. Second use: \gls{aca}. Plurals: \glspl{sample}. Reset acronym\glsreset{aca}. First use: \glspl{aca}. Second use: \glspl{aca}. +\glsresetall +First letter upper case: \Gls{sample}. First use: \Gls{aca}. +Subsequent use: \Gls{aca}. +\glsresetall +Plurals: \Glspl{sample}. First use: \Glspl{aca}. Next: \Glspl{aca}. + If you want paragraph breaks in the description use \verb|\longnewglossaryentry|, as with entry \gls{par}. diff --git a/Master/texmf-dist/doc/latex/glossaries/samples/sample-FnDesc.pdf b/Master/texmf-dist/doc/latex/glossaries/samples/sample-FnDesc.pdf Binary files differnew file mode 100644 index 00000000000..bfdc31fdf86 --- /dev/null +++ b/Master/texmf-dist/doc/latex/glossaries/samples/sample-FnDesc.pdf diff --git a/Master/texmf-dist/doc/latex/glossaries/samples/sample-crossref.pdf b/Master/texmf-dist/doc/latex/glossaries/samples/sample-crossref.pdf Binary files differindex 35b8fdc39ce..ab02047da75 100644 --- a/Master/texmf-dist/doc/latex/glossaries/samples/sample-crossref.pdf +++ b/Master/texmf-dist/doc/latex/glossaries/samples/sample-crossref.pdf diff --git a/Master/texmf-dist/doc/latex/glossaries/samples/sample-custom-acronym.pdf b/Master/texmf-dist/doc/latex/glossaries/samples/sample-custom-acronym.pdf Binary files differindex 65419c3b547..d2dd194e17a 100644 --- a/Master/texmf-dist/doc/latex/glossaries/samples/sample-custom-acronym.pdf +++ b/Master/texmf-dist/doc/latex/glossaries/samples/sample-custom-acronym.pdf diff --git a/Master/texmf-dist/doc/latex/glossaries/samples/sample-custom-acronym.tex b/Master/texmf-dist/doc/latex/glossaries/samples/sample-custom-acronym.tex index c6a9c5d8612..b9cbb86c8c2 100644 --- a/Master/texmf-dist/doc/latex/glossaries/samples/sample-custom-acronym.tex +++ b/Master/texmf-dist/doc/latex/glossaries/samples/sample-custom-acronym.tex @@ -8,50 +8,124 @@ \usepackage[colorlinks]{hyperref} \usepackage[acronym, % create list of acronyms nomain, % don't need main glossary for this example - style=tree, % need a style that displays the symbol - hyperfirst=false% don't hyperlink first use ]{glossaries} \makeglossaries % This is a sample file to illustrate how to define a custom - % acronym. This example defines the acronym so that on first use - % it displays the short form in the text and places the long form - % and its description in a footnote. In the main body of the + % acronym style. This example defines the acronyms so that on first use + % they display the short form in the text and with the long form + % and description in a footnote. In the main body of the % document the short form will be displayed in small caps, but in % the list of acronyms the short form is displayed in normal % capitals. To ensure this, the short form should be written in % lower case when the acronym is defined, and \MakeTextUppercase is % used when it's displayed in the list of acronyms. - % In the list of acronyms, the long form is used as the name, the - % short form is used as the symbol and the user supplies the - % description when defining the acronym. - -\renewcommand*{\CustomAcronymFields}{% - name={\the\glslongtok},% - symbol={\MakeTextUppercase{\the\glsshorttok}},% - text={\textsc{\the\glsshorttok}},% - plural={\textsc{\the\glsshorttok}\noexpand\acrpluralsuffix}% +\newacronymstyle{custom-fn}% new style name +{% Check for long form in case of a mixed glossary + \ifglshaslong{\glslabel}{\glsgenacfmt}{\glsgenentryfmt}% +}% +{% Style definitions: + % User needs to supply the description: + \renewcommand*{\GenericAcronymFields}{}% + % Need to ensure hyperlinks are switched off on first use: + \glshyperfirstfalse + % Redefine the commands used by \glsgenacfmt on first use: + \renewcommand*{\genacrfullformat}[2]{% + \firstacronymfont{\glsentryshort{##1}}##2% + \footnote{\glsentrylong{##1}: \glsentrydesc{##1}}% + }% + \renewcommand*{\Genacrfullformat}[2]{% + \firstacronymfont{\Glsentryshort{##1}}##2% + \footnote{\glsentrylong{##1}: \glsentrydesc{##1}}% + }% + \renewcommand*{\genplacrfullformat}[2]{% + \firstacronymfont{\glsentryshortpl{##1}}##2% + \footnote{\glsentrylongpl{##1}: \glsentrydesc{##1}}% + }% + \renewcommand*{\Genplacrfullformat}[2]{% + \firstacronymfont{\Glsentryshortpl{##1}}##2% + \footnote{\glsentrylongpl{##1}: \glsentrydesc{##1}}% + }% + % Redefine the no-link full forms: + \renewcommand*{\glsentryfull}[1]{% + \glsentrylong{##1}\space(\acronymfont{\glsentryshort{##1}})% + }% + \renewcommand*{\Glsentryfull}[1]{% + \Glsentrylong{##1}\space(\acronymfont{\glsentryshort{##1}})% + }% + \renewcommand*{\glsentryfullpl}[1]{% + \glsentrylongpl{##1}\space(\acronymfont{\glsentryshortpl{##1}})% + }% + \renewcommand*{\Glsentryfullpl}[1]{% + \Glsentrylongpl{##1}\space(\acronymfont{\glsentryshortpl{##1}})% + }% + % Redefine the link full forms: + \renewcommand*{\acrfullfmt}[3]{% + \glslink[##1]{##2}{% + \glsentrylong{##2}##3\space(\acronymfont{\glsentryshort{##2}})% + }% + }% + \renewcommand*{\Acrfullfmt}[3]{% + \glslink[##1]{##2}{% + \Glsentrylong{##2}##3\space(\acronymfont{\glsentryshort{##2}})% + }% + }% + \renewcommand*{\ACRfullfmt}[3]{% + \glslink[##1]{##2}{% + \MakeTextUppercase{% + \glsentrylong{##2}##3\space + (\acronymfont{\glsentryshort{##2}})% + }% + }% + }% + \renewcommand*{\acrfullplfmt}[3]{% + \glslink[##1]{##2}{% + \glsentrylongpl{##2}##3\space + (\acronymfont{\glsentryshortpl{##2}})% + }% + }% + \renewcommand*{\Acrfullplfmt}[3]{% + \glslink[##1]{##2}{% + \Glsentrylongpl{##2}##3\space + (\acronymfont{\glsentryshortpl{##2}})% + }% + }% + \renewcommand*{\ACRfullplfmt}[3]{% + \glslink[##1]{##2}{% + \MakeTextUppercase{% + \glsentrylongpl{##2}##3\space + (\acronymfont{\glsentryshortpl{##2}})% + }% + }% + }% + % Use smallcaps for the acronym in the document text: + \renewcommand*{\acronymfont}[1]{\textsc{##1}}% + \renewcommand*{\acrpluralsuffix}{\glstextup{\glspluralsuffix}}% + % Sort acronyms according to the long form: + \renewcommand*{\acronymsort}[2]{##2}% + % Set the name in the list of acronyms to the long form followed by + % the short form (in upper case) in parentheses: + \renewcommand*{\acronymentry}[1]{% + \Glsentrylong{##1}\space(\MakeTextUppercase{\glsentryshort{##1}})}% } -\renewcommand*{\SetCustomDisplayStyle}[1]{% - \defglsentryfmt[#1]{\glsgenentryfmt - \ifglsused{\glslabel}{}{\footnote{\glsentrylong{\glslabel}}}}% -} + % Now set the new acronym style (to override the default style) +\setacronymstyle{custom-fn} - % Now set the custom acronym style (to override the default style) -\SetCustomStyle + % Set an appropriate glossary style: +\setglossarystyle{altlist} % Now define the acronyms (must be done after setting the custom % style) \newacronym[description={set of tags for use in developing hypertext -documents}]{html}{html}{Hyper Text Markup Language} +documents}]{html}{html}{hyper text markup language} \newacronym[description={language used to describe the layout of a -document written in a markup language}]{css}{css}{Cascading Style -Sheet} +document written in a markup language}]{css}{css}{cascading style +sheet} \begin{document} @@ -59,5 +133,17 @@ Sheet} \gls{css}. \gls{html}. +No-link full forms: \glsentryfull{css}, \Glsentryfull{css}. +Linking full forms: \acrfull{css}, \Acrfull{css}, \ACRfull{css}. +Linking with insert: \acrfull{css}['s], \Acrfull{css}['s], +\ACRfull{css}['s]. + +Now test plurals. + +No-link full forms: \glsentryfullpl{html}, \Glsentryfullpl{html}. +Linking full forms: \acrfullpl{html}, \Acrfullpl{html}, \ACRfullpl{html}. +Linking with insert: \acrfullpl{html}['s], \Acrfullpl{html}['s], +\ACRfullpl{html}['s]. + \printglossaries \end{document} diff --git a/Master/texmf-dist/doc/latex/glossaries/samples/sample-dual.pdf b/Master/texmf-dist/doc/latex/glossaries/samples/sample-dual.pdf Binary files differindex 34fc4f6c0ed..0a6c0c06b85 100644 --- a/Master/texmf-dist/doc/latex/glossaries/samples/sample-dual.pdf +++ b/Master/texmf-dist/doc/latex/glossaries/samples/sample-dual.pdf diff --git a/Master/texmf-dist/doc/latex/glossaries/samples/sample-entryfmt.pdf b/Master/texmf-dist/doc/latex/glossaries/samples/sample-entryfmt.pdf Binary files differnew file mode 100644 index 00000000000..6772c33b807 --- /dev/null +++ b/Master/texmf-dist/doc/latex/glossaries/samples/sample-entryfmt.pdf diff --git a/Master/texmf-dist/doc/latex/glossaries/samples/sample-index.pdf b/Master/texmf-dist/doc/latex/glossaries/samples/sample-index.pdf Binary files differnew file mode 100644 index 00000000000..07321a8550b --- /dev/null +++ b/Master/texmf-dist/doc/latex/glossaries/samples/sample-index.pdf diff --git a/Master/texmf-dist/doc/latex/glossaries/samples/sample-index.tex b/Master/texmf-dist/doc/latex/glossaries/samples/sample-index.tex index c33ca87c160..1f2441dbed8 100644 --- a/Master/texmf-dist/doc/latex/glossaries/samples/sample-index.tex +++ b/Master/texmf-dist/doc/latex/glossaries/samples/sample-index.tex @@ -8,25 +8,24 @@ \documentclass{report} \usepackage[colorlinks]{hyperref} -\usepackage[toc]{glossaries} +\usepackage[toc,index,nohypertypes={index}]{glossaries} \usepackage{glossary-mcols} -\newglossary[ilg]{index}{ind}{idx}{\indexname} - \makeglossaries -\newcommand*{\newterm}[2][]{% - \newglossaryentry{#2}{type={index},name={#2},description={\nopostdesc},#1}% -} - + % define terms for the index \newterm[plural={stegosauruses}]{stegosaurus} \newterm[plural={triceratopses}]{triceratops} \newterm[plural={apatosauruses}]{apatosaurus} + % To avoid labels conflicting with the same name in the main glossary + % prefix the index label with "ind-". (This means that the name must + % be set independently.) \newterm[name={dinosaur}]{ind-dinosaur} \newterm[name={Triassic}]{ind-triassic} + % define terms for the main glossary \newglossaryentry{dinosaur}% {% @@ -49,12 +48,14 @@ \gls{Triassic} period. Examples of \glspl{dinosaur} include the \gls{triceratops}, the \gls{apatosaurus} and the \gls{stegosaurus}. +Indexed term: \gls{ind-dinosaur}. + \renewcommand*{\glsnamefont}[1]{\textbf{\makefirstuc{#1}}} \printglossary[style=long,nogroupskip] \renewcommand*{\glsnamefont}[1]{\textmd{#1}} -\printglossary[type=index,style=mcolindexgroup] +\printindex[style=mcolindexgroup] \end{document} diff --git a/Master/texmf-dist/doc/latex/glossaries/samples/sample-inline.pdf b/Master/texmf-dist/doc/latex/glossaries/samples/sample-inline.pdf Binary files differnew file mode 100644 index 00000000000..eceeb393492 --- /dev/null +++ b/Master/texmf-dist/doc/latex/glossaries/samples/sample-inline.pdf diff --git a/Master/texmf-dist/doc/latex/glossaries/samples/sample-langdict.pdf b/Master/texmf-dist/doc/latex/glossaries/samples/sample-langdict.pdf Binary files differnew file mode 100644 index 00000000000..fe4315f4a30 --- /dev/null +++ b/Master/texmf-dist/doc/latex/glossaries/samples/sample-langdict.pdf diff --git a/Master/texmf-dist/doc/latex/glossaries/samples/sample-mfirstuc.pdf b/Master/texmf-dist/doc/latex/glossaries/samples/sample-mfirstuc.pdf Binary files differnew file mode 100644 index 00000000000..627bad52ec8 --- /dev/null +++ b/Master/texmf-dist/doc/latex/glossaries/samples/sample-mfirstuc.pdf diff --git a/Master/texmf-dist/doc/latex/glossaries/samples/sample-newkeys.pdf b/Master/texmf-dist/doc/latex/glossaries/samples/sample-newkeys.pdf Binary files differnew file mode 100644 index 00000000000..f95ce1c9348 --- /dev/null +++ b/Master/texmf-dist/doc/latex/glossaries/samples/sample-newkeys.pdf diff --git a/Master/texmf-dist/doc/latex/glossaries/samples/sample-nomathhyper.pdf b/Master/texmf-dist/doc/latex/glossaries/samples/sample-nomathhyper.pdf Binary files differnew file mode 100644 index 00000000000..d4437387658 --- /dev/null +++ b/Master/texmf-dist/doc/latex/glossaries/samples/sample-nomathhyper.pdf diff --git a/Master/texmf-dist/doc/latex/glossaries/samples/sample-numberlist.pdf b/Master/texmf-dist/doc/latex/glossaries/samples/sample-numberlist.pdf Binary files differnew file mode 100644 index 00000000000..b5e671cbfb7 --- /dev/null +++ b/Master/texmf-dist/doc/latex/glossaries/samples/sample-numberlist.pdf diff --git a/Master/texmf-dist/doc/latex/glossaries/samples/sample-prefix.pdf b/Master/texmf-dist/doc/latex/glossaries/samples/sample-prefix.pdf Binary files differnew file mode 100644 index 00000000000..65cfc9b388b --- /dev/null +++ b/Master/texmf-dist/doc/latex/glossaries/samples/sample-prefix.pdf diff --git a/Master/texmf-dist/doc/latex/glossaries/samples/sample-si.pdf b/Master/texmf-dist/doc/latex/glossaries/samples/sample-si.pdf Binary files differnew file mode 100644 index 00000000000..73cf459c27b --- /dev/null +++ b/Master/texmf-dist/doc/latex/glossaries/samples/sample-si.pdf diff --git a/Master/texmf-dist/doc/latex/glossaries/samples/sample.pdf b/Master/texmf-dist/doc/latex/glossaries/samples/sample.pdf Binary files differindex 9f8d4cc0961..78a0343ca21 100644 --- a/Master/texmf-dist/doc/latex/glossaries/samples/sample.pdf +++ b/Master/texmf-dist/doc/latex/glossaries/samples/sample.pdf diff --git a/Master/texmf-dist/doc/latex/glossaries/samples/sample4col.pdf b/Master/texmf-dist/doc/latex/glossaries/samples/sample4col.pdf Binary files differindex dd307d68435..9ad908fe2fd 100644 --- a/Master/texmf-dist/doc/latex/glossaries/samples/sample4col.pdf +++ b/Master/texmf-dist/doc/latex/glossaries/samples/sample4col.pdf diff --git a/Master/texmf-dist/doc/latex/glossaries/samples/sampleAcr.pdf b/Master/texmf-dist/doc/latex/glossaries/samples/sampleAcr.pdf Binary files differindex db1619605fe..115a4b1a287 100644 --- a/Master/texmf-dist/doc/latex/glossaries/samples/sampleAcr.pdf +++ b/Master/texmf-dist/doc/latex/glossaries/samples/sampleAcr.pdf diff --git a/Master/texmf-dist/doc/latex/glossaries/samples/sampleAcr.tex b/Master/texmf-dist/doc/latex/glossaries/samples/sampleAcr.tex index 048cb7ab44f..41ae5fab965 100644 --- a/Master/texmf-dist/doc/latex/glossaries/samples/sampleAcr.tex +++ b/Master/texmf-dist/doc/latex/glossaries/samples/sampleAcr.tex @@ -9,11 +9,13 @@ \usepackage[colorlinks,plainpages=false]{hyperref} \usepackage[style=long,% use 'long' style for the glossary toc,% add glossary to table of contents - smallcaps% Use small caps for acronyms ]{glossaries} \makeglossaries + % Set the acronym style +\setacronymstyle{long-sc-short} + \newacronym{svm}% label {svm}% abbreviation {support vector machine}% long form diff --git a/Master/texmf-dist/doc/latex/glossaries/samples/sampleAcrDesc.pdf b/Master/texmf-dist/doc/latex/glossaries/samples/sampleAcrDesc.pdf Binary files differindex c10d54d41ac..ffcb40dd5a8 100644 --- a/Master/texmf-dist/doc/latex/glossaries/samples/sampleAcrDesc.pdf +++ b/Master/texmf-dist/doc/latex/glossaries/samples/sampleAcrDesc.pdf diff --git a/Master/texmf-dist/doc/latex/glossaries/samples/sampleAcrDesc.tex b/Master/texmf-dist/doc/latex/glossaries/samples/sampleAcrDesc.tex index 70905f05b3e..c12d179a6a8 100644 --- a/Master/texmf-dist/doc/latex/glossaries/samples/sampleAcrDesc.tex +++ b/Master/texmf-dist/doc/latex/glossaries/samples/sampleAcrDesc.tex @@ -7,21 +7,17 @@ \documentclass[a4paper]{report} \usepackage[colorlinks,plainpages=false]{hyperref} - \usepackage[acronym,% create 'acronym' glossary type nomain,% 'main' glossary not needed as using 'acronym' style=altlist, % use altlist style toc, % add the glossary to the table of contents - sanitize={description=false},% want to use description in main document - smallcaps,% - description% acronyms have a user-supplied description ]{glossaries} \makeglossaries -\renewcommand*{\glsseeitemformat}[1]{\acronymfont{\glsentrytext{#1}}} +\setacronymstyle{long-sc-short-desc} -\renewcommand*{\acrnameformat}[2]{\acronymfont{#1} (#2)} +\renewcommand*{\glsseeitemformat}[1]{\acronymfont{\glsentrytext{#1}}} \renewcommand*{\glsnamefont}[1]{\textmd{#1}} diff --git a/Master/texmf-dist/doc/latex/glossaries/samples/sampleCustomAcr.pdf b/Master/texmf-dist/doc/latex/glossaries/samples/sampleCustomAcr.pdf Binary files differnew file mode 100644 index 00000000000..0a09b3966fb --- /dev/null +++ b/Master/texmf-dist/doc/latex/glossaries/samples/sampleCustomAcr.pdf diff --git a/Master/texmf-dist/doc/latex/glossaries/samples/sampleCustomAcr.tex b/Master/texmf-dist/doc/latex/glossaries/samples/sampleCustomAcr.tex new file mode 100644 index 00000000000..ac0a6793501 --- /dev/null +++ b/Master/texmf-dist/doc/latex/glossaries/samples/sampleCustomAcr.tex @@ -0,0 +1,108 @@ + % 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 + nomain,% 'main' glossary not needed as using 'acronym' + style=altlist, % use altlist style + toc, % add the glossary to the table of contents + ]{glossaries} + +\makeglossaries + + % Define a new acronym style called "altfn" that's based on the + % footnote-sc-desc style + +\newacronymstyle + {altfn}% style name + {% Inherit display style from "footnote-sc-desc" + \GlsUseAcrEntryDispStyle{footnote-sc-desc}% + }% + {% 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: + \renewcommand*{\genacrfullformat}[2]{% + \protect\firstacronymfont{\glsentryshort{##1}}##2% + \protect\footnote{\glsentrylong{##1}: \glsentrydesc{##1}}% + }% + % First use of \Gls: + \renewcommand*{\Genacrfullformat}[2]{% + \firstacronymfont{\Glsentryshort{##1}}##2% + \protect\footnote{\glsentrylong{##1}: \glsentrydesc{##1}}% + }% + % First use of \glspl: + \renewcommand*{\genplacrfullformat}[2]{% + \protect\firstacronymfont{\glsentryshortpl{##1}}##2% + \protect\footnote{\glsentrylongpl{##1}: \glsentrydesc{##1}}% + }% + % First use of \Glspl: + \renewcommand*{\Genplacrfullformat}[2]{% + \protect\firstacronymfont{\Glsentryshortpl{##1}}##2% + \protect\footnote{\glsentrylongpl{##1}: \glsentrydesc{##1}}% + }% + % Sort according to long form: + \renewcommand*{\acronymsort}[2]{##2}% + % 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: + \renewcommand{\acronymfont}[1]{\textmd{\scshape ##1}}% + } + +\setacronymstyle{altfn} + +\renewcommand*{\glsseeitemformat}[1]{\acronymfont{\glsentrytext{#1}}} + +\newacronym[description={Statistical pattern recognition +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}}, +]{ksvm}{ksvm}{kernel +support vector machine} + +\begin{document} +\tableofcontents + +\chapter{Support Vector Machines} + +The \gls{svm} is used widely in the area of pattern recognition. + % plural form with initial letter in uppercase: +\Glspl{svm} are \ldots + +Short version: \acrshort{svm}. Long version: \acrlong{svm}. Full +version: \acrfull{svm}. Description: \glsentrydesc{svm}. + +This is the entry in uppercase: \GLS{svm}. + +\chapter{Kernel Support Vector Machines} + +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}. + +\glsresetall +(Reset all.) +Possessive: \gls{ksvm}['s]. +Make the glossary entry number bold for this +one \gls[format=hyperbf]{svm}. + +\begin{thebibliography}{1} +\bibitem{svm} \ldots +\end{thebibliography} + +\printglossary + +\end{document} diff --git a/Master/texmf-dist/doc/latex/glossaries/samples/sampleDB.pdf b/Master/texmf-dist/doc/latex/glossaries/samples/sampleDB.pdf Binary files differindex ac110670fca..fed07670c44 100644 --- a/Master/texmf-dist/doc/latex/glossaries/samples/sampleDB.pdf +++ b/Master/texmf-dist/doc/latex/glossaries/samples/sampleDB.pdf diff --git a/Master/texmf-dist/doc/latex/glossaries/samples/sampleDesc.pdf b/Master/texmf-dist/doc/latex/glossaries/samples/sampleDesc.pdf Binary files differindex 8529011e952..61f0500e65f 100644 --- a/Master/texmf-dist/doc/latex/glossaries/samples/sampleDesc.pdf +++ b/Master/texmf-dist/doc/latex/glossaries/samples/sampleDesc.pdf diff --git a/Master/texmf-dist/doc/latex/glossaries/samples/sampleEq.pdf b/Master/texmf-dist/doc/latex/glossaries/samples/sampleEq.pdf Binary files differindex 2262d5cf8a9..b69d69a0714 100644 --- a/Master/texmf-dist/doc/latex/glossaries/samples/sampleEq.pdf +++ b/Master/texmf-dist/doc/latex/glossaries/samples/sampleEq.pdf diff --git a/Master/texmf-dist/doc/latex/glossaries/samples/sampleEqPg.pdf b/Master/texmf-dist/doc/latex/glossaries/samples/sampleEqPg.pdf Binary files differindex e903658bc16..fda7938e55a 100644 --- a/Master/texmf-dist/doc/latex/glossaries/samples/sampleEqPg.pdf +++ b/Master/texmf-dist/doc/latex/glossaries/samples/sampleEqPg.pdf diff --git a/Master/texmf-dist/doc/latex/glossaries/samples/sampleFnAcrDesc.pdf b/Master/texmf-dist/doc/latex/glossaries/samples/sampleFnAcrDesc.pdf Binary files differnew file mode 100644 index 00000000000..824cb7296b2 --- /dev/null +++ b/Master/texmf-dist/doc/latex/glossaries/samples/sampleFnAcrDesc.pdf diff --git a/Master/texmf-dist/doc/latex/glossaries/samples/sampleFnAcrDesc.tex b/Master/texmf-dist/doc/latex/glossaries/samples/sampleFnAcrDesc.tex new file mode 100644 index 00000000000..7b36d142a51 --- /dev/null +++ b/Master/texmf-dist/doc/latex/glossaries/samples/sampleFnAcrDesc.tex @@ -0,0 +1,74 @@ + % 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 + nomain,% 'main' glossary not needed as using 'acronym' + style=altlist, % use altlist style + toc, % add the glossary to the table of contents + ]{glossaries} + +\makeglossaries + + % Change the acronym style to a small-caps footnote style: +\setacronymstyle{footnote-sc-desc} + + % Make some minor adjustments to the style: +\renewcommand*{\acronymsort}[2]{#1}% sort by short form +\renewcommand*{\acronymentry}[1]{% + \acronymfont{\glsentryshort{#1}}\space (\glsentrylong{#1})} + + % Not using a font that supports bold smallcaps so ensure + % the acronym is always in medium weight. +\renewcommand*{\acronymfont}[1]{\textmd{\scshape #1}} + + % Change the "see" items so that they use \acronymfont: +\renewcommand*{\glsseeitemformat}[1]{\acronymfont{\glsentrytext{#1}}} + +\newacronym[description={Statistical pattern recognition +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}}, +]{ksvm}{ksvm}{kernel +support vector machine} + +\begin{document} +\tableofcontents + +\chapter{Support Vector Machines} + +The \gls{svm} is used widely in the area of pattern recognition. + % plural form with initial letter in uppercase: +\Glspl{svm} are \ldots + +Short version: \acrshort{svm}. Long version: \acrlong{svm}. Full +version: \acrfull{svm}. Description: \glsentrydesc{svm}. + +This is the entry in uppercase: \GLS{svm}. + +\chapter{Kernel Support Vector Machines} + +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}. + +\glsresetall +Possessive: \gls{ksvm}['s]. +Make the glossary entry number bold for this +one \gls[format=hyperbf]{svm}. + +\begin{thebibliography}{1} +\bibitem{svm} \ldots +\end{thebibliography} + +\printglossary + +\end{document} diff --git a/Master/texmf-dist/doc/latex/glossaries/samples/sampleNtn.pdf b/Master/texmf-dist/doc/latex/glossaries/samples/sampleNtn.pdf Binary files differindex 680c49f253a..c653c4482e0 100644 --- a/Master/texmf-dist/doc/latex/glossaries/samples/sampleNtn.pdf +++ b/Master/texmf-dist/doc/latex/glossaries/samples/sampleNtn.pdf diff --git a/Master/texmf-dist/doc/latex/glossaries/samples/samplePeople.pdf b/Master/texmf-dist/doc/latex/glossaries/samples/samplePeople.pdf Binary files differnew file mode 100644 index 00000000000..37501dcc7cc --- /dev/null +++ b/Master/texmf-dist/doc/latex/glossaries/samples/samplePeople.pdf diff --git a/Master/texmf-dist/doc/latex/glossaries/samples/sampleSec.pdf b/Master/texmf-dist/doc/latex/glossaries/samples/sampleSec.pdf Binary files differindex 3f87bc00963..f50aa8e5943 100644 --- a/Master/texmf-dist/doc/latex/glossaries/samples/sampleSec.pdf +++ b/Master/texmf-dist/doc/latex/glossaries/samples/sampleSec.pdf diff --git a/Master/texmf-dist/doc/latex/glossaries/samples/sampleSort.pdf b/Master/texmf-dist/doc/latex/glossaries/samples/sampleSort.pdf Binary files differnew file mode 100644 index 00000000000..08da7b546ef --- /dev/null +++ b/Master/texmf-dist/doc/latex/glossaries/samples/sampleSort.pdf diff --git a/Master/texmf-dist/doc/latex/glossaries/samples/sampleaccsupp.pdf b/Master/texmf-dist/doc/latex/glossaries/samples/sampleaccsupp.pdf Binary files differindex 1904a28ed81..8c45c5a4b76 100644 --- a/Master/texmf-dist/doc/latex/glossaries/samples/sampleaccsupp.pdf +++ b/Master/texmf-dist/doc/latex/glossaries/samples/sampleaccsupp.pdf diff --git a/Master/texmf-dist/doc/latex/glossaries/samples/sampleacronyms.pdf b/Master/texmf-dist/doc/latex/glossaries/samples/sampleacronyms.pdf Binary files differindex 0a273d55394..3228aa16a58 100644 --- a/Master/texmf-dist/doc/latex/glossaries/samples/sampleacronyms.pdf +++ b/Master/texmf-dist/doc/latex/glossaries/samples/sampleacronyms.pdf diff --git a/Master/texmf-dist/doc/latex/glossaries/samples/sampletree.pdf b/Master/texmf-dist/doc/latex/glossaries/samples/sampletree.pdf Binary files differindex 519e2e56a54..876061f671d 100644 --- a/Master/texmf-dist/doc/latex/glossaries/samples/sampletree.pdf +++ b/Master/texmf-dist/doc/latex/glossaries/samples/sampletree.pdf diff --git a/Master/texmf-dist/doc/latex/glossaries/samples/sampleutf8.pdf b/Master/texmf-dist/doc/latex/glossaries/samples/sampleutf8.pdf Binary files differindex 3e2ca5c27ca..ce8221f72be 100644 --- a/Master/texmf-dist/doc/latex/glossaries/samples/sampleutf8.pdf +++ b/Master/texmf-dist/doc/latex/glossaries/samples/sampleutf8.pdf diff --git a/Master/texmf-dist/doc/latex/glossaries/samples/samplexdy-compatible207.tex b/Master/texmf-dist/doc/latex/glossaries/samples/samplexdy-compatible207.tex deleted file mode 100644 index 01c0bf111a6..00000000000 --- a/Master/texmf-dist/doc/latex/glossaries/samples/samplexdy-compatible207.tex +++ /dev/null @@ -1,239 +0,0 @@ - % This file is public domain. - % - % *** The latest version of xindy fails on this example*** - % If xindy gives you the error - % "PROGN: variable SAMPLEXDY-MC207.XDY has no value" - % it may be related to the issue described in - % http://www.tug.org/pipermail/tex-live/2012-August/032260.html - % This is a problem with xindy not with makeglossaries. - % - % This is a sample document illustrating how to use the - % glossaries package with xindy using the compatibility option. - % To create the document: - % - % latex samplexdy-compatible207 - % makeglossaries samplexdy-compatible207 - % latex samplexdy-compatible207 - % - % If you don't have Perl installed, then use one of the - % following instead of makeglossaries: - % - % If you want to have a separate "Mc" letter group do: - % - % xindy -I xindy -M samplexdy-mc207 -t samplexdy-compatible207.glg -o samplexdy-compatible207.gls samplexdy-compatible207.glo - % - % Otherwise do: - % - % xindy -L english -C utf8 -I xindy -M samplexdy-compatible207 -t samplexdy-compatible207.glg -o samplexdy-compatible207.gls samplexdy-compatible207.glo - % -\documentclass{article} - -\usepackage[utf8]{inputenc} -\usepackage[T1]{fontenc} -\usepackage{fmtcount} - - % remove redefinition of \thepage below if you want to uncomment - % the following line: - % \usepackage[colorlinks]{hyperref} - -\usepackage[xindy,compatible-2.07,style=altlistgroup]{glossaries} - - % Define a new command to do bold italic (it uses \hyperbf - % rather than \textbf in case I later introduce hyperlinks - % - although I would have to remove the fancy page numbering - % if I wanted to do that): - -\newcommand*{\hyperbfit}[1]{\textit{\hyperbf{#1}}} - - % Need to add this to the list of attributes in order - % to use it with xindy: - % (This command will have no effect if \noist is used) - -\GlsAddXdyAttribute{hyperbfit} - - % Redefine the page numbers so that they appear as a word: - - \renewcommand*{\thepage}{\Numberstring{page}} - - % Need to add this to the list of location styles. - % \Numberstring{page} gets expanded to - % \protect \Numberstringnum {<n>} (where <n> is the page number) - % so need to define the location in that format: - % (This command will have no effect if \noist is used) - -\GlsAddXdyLocation{Numberstring}{:sep "\string\protect\space - \string\Numberstringnum\space\glsopenbrace" - "arabic-numbers" :sep "\glsclosebrace"} - - % To have Mc as a separate group uncomment the following three - % lines: - - \setStyleFile{samplexdy-mc207} % note no extension - \noist - \GlsSetXdyLanguage{} - - % The above three lines specify to use samplexdy-mc.xdy (supplied - % with this file) and don't overwrite it. The language is - % unset using \GlsSetXdyLanguage{} as all the language - % dependent information is contained in samplexdy-mc.xdy - % Note that using \noist means that commands like - % \GlsAddXdyAttribute and \GlsAddXdyLocation will no longer have - % an effect. - - % Write the style file (if \noist isn't used) - % and activate glossary entries - -\makeglossaries - - % Define glossary entries - % \glshyperlink is used instead of \gls to prevent the glossary - % page numbers also appear in the locations, however I need - % to ensure that the referenced entries are added to the - % glossary via commands that use \glslink, \glsadd or \glssee - -\newglossaryentry{mcadam}{name={McAdam, John Loudon}, -first={John Loudon McAdam},text={McAdam}, -description={Scottish engineer}} - -\newglossaryentry{maclaurin}{name={Maclaurin, Colin}, -first={Colin Maclaurin},text={Maclaurin}, -description={Scottish mathematician best known for the -\gls{maclaurinseries}}} - -\newglossaryentry{maclaurinseries}{name={Maclaurin series}, -description={Series expansion},see={taylorstheorem}} - -\newglossaryentry{taylorstheorem}{name={Taylor's theorem}, -description={Theorem expressing a function $f(x)$ as the sum of -a polynomial and a remainder: -\[f(x) = f(a)+f'(a)(x-a)+f''(a)(x-a^2)/2!+\cdots+R_n\] -If $n\to\infty$ the expansion is a \glshyperlink{taylorseries} -and if $a=0$, the series is called a -\gls{maclaurinseries}}} - -\newglossaryentry{taylorseries}{name={Taylor series}, -description={Series expansion},see={taylorstheorem}} - -\newglossaryentry{taylor}{name={Taylor, Brook}, -first={Brook Taylor},text={Taylor}, -description={English mathematician}} - -\newglossaryentry{mcnemar}{name={McNemar, Quinn}, -first={Quinn McNemar},text={McNemar}, -description={Mathematician who introduced -\gls{mcnemarstest}. This entry has the number list -suppressed},nonumberlist} - -\newglossaryentry{mcnemarstest}{name={McNemar's test}, -description={A nonparametric test introduced by -\gls{mcnemar} in 1947}} - -\newglossaryentry{mach}{name={Mach, Ernst}, -first={Ernst Mach},text={Mach}, - % if using samplexdy-mc.xdy, the following line is needed - % to prevent this entry being put in the "Mc" group -sort={mach, Ernst}, -description={Czech/Austrian physicist and philosopher}} - -\newglossaryentry{machnumber}{name={Mach number}, - % if using samplexdy-mc.xdy, the following line is needed - % to prevent this entry being put in the "Mc" group -sort={mach number}, -description={Ratio of the speed of a body in a fluid to the -speed of sound in that fluid named after \gls{mach}}} - -\newglossaryentry{malthus}{name={Malthus, Thomas Robert}, -first={Thomas Robert Malthus},text={Malthus}, -description={English mathematician, sociologist and classicist}} - -\newglossaryentry{ampereandre}{name={Ampère, André-Marie}, -first={André-Marie Ampère},text={Ampère}, -description={French mathematician and physicist}} - -\newglossaryentry{ampere}{name={ampere}, -description={SI unit of electric current named after -\gls{ampereandre}}} - -\newglossaryentry{archimedes}{name={Archimedes of Syracuse}, -first={Archimedes of Syracuse},text={Archimedes}, -description={Greek mathematician}} - -\newglossaryentry{archimedesprinciple}{name={Archemedes' principle}, -description={Principle that if a body is submerged in a fluid -it experiences upthrust equal to the weight of the displaced -fluid. Named after \gls{archimedes}}} - -\newglossaryentry{galton}{name={Galton, Sir Francis}, -first={Sir Francis Galton},text={Galton}, -description={English anthropologist}} - -\newglossaryentry{gauss}{name={Gauss, Karl Friedrich}, -first={Karl Friedrich Gauss},text={Gauss}, -description={German mathematician}} - -\newglossaryentry{gaussianint}{name={Gaussian integer}, -description={Complex number where both real and imaginary -parts are integers}} - -\newglossaryentry{peano}{name={Peano, Giuseppe}, -first={Giuseppe Peano},text={Peano}, -description={Italian mathematician}} - -\newglossaryentry{peanoscurve}{name={Peano's curve}, -description={A space-filling curve discovered by -\gls{peano}}} - -\newglossaryentry{pearson}{name={Pearson, Karl}, -first={Karl Pearson},text={Pearson}, -description={English mathematician}} - -\newglossaryentry{pearspmcc}{name={Pearson's product moment -correlation coefficient},description={Product moment correlation -coefficient named after \gls{pearson}}} - -\begin{document} -\title{Sample Document Using the Glossaries Package With Xindy} -\author{Nicola Talbot} -\maketitle - -\section{\glsentryfirst{gauss}} - -This is a section on \gls[format=(]{gauss}. This section spans -several pages. - -\newpage - -This page talks about \glspl[format=hyperbfit]{gaussianint}. Since -it's the principle definition, the user-defined hyperbfit format is -used. - -\newpage - -The section on \gls[format=)]{gauss} ends here. - -\section{Series Expansions} - -This section is about series expansions. It mentions -\gls{maclaurin} and \gls{taylor}. It also discusses -\gls{taylorstheorem} which is related to the \gls{taylorseries}. -The \gls{maclaurinseries} is a special case of the -\gls{taylorseries}. - -\section{\glsentryname{archimedesprinciple}} - -This section discusses \gls{archimedesprinciple} which was -introduced by \gls{archimedes}. - -\section{Another section} - -This section covers \gls{mach} who introduced the \gls{machnumber}. -It also mentions \gls{ampereandre} after whom the -SI unit \gls{ampere} is named. It then discusses \gls{galton} -and \gls{malthus}. Finally it mentions \gls{mcadam}. - -\newpage -This page discusses \gls{mcnemar} who introduced -\gls{mcnemarstest} and \gls{peano} who discovered \gls{peanoscurve}. - -\printglossaries -\end{document} diff --git a/Master/texmf-dist/doc/latex/glossaries/samples/samplexdy.pdf b/Master/texmf-dist/doc/latex/glossaries/samples/samplexdy.pdf Binary files differindex 550709f057d..810f36d2474 100644 --- a/Master/texmf-dist/doc/latex/glossaries/samples/samplexdy.pdf +++ b/Master/texmf-dist/doc/latex/glossaries/samples/samplexdy.pdf diff --git a/Master/texmf-dist/doc/latex/glossaries/samples/samplexdy2.pdf b/Master/texmf-dist/doc/latex/glossaries/samples/samplexdy2.pdf Binary files differindex fe8532a8371..5e90bb2ad24 100644 --- a/Master/texmf-dist/doc/latex/glossaries/samples/samplexdy2.pdf +++ b/Master/texmf-dist/doc/latex/glossaries/samples/samplexdy2.pdf |