diff options
Diffstat (limited to 'macros/latex/contrib/glossaries/samples/sample-custom-acronym.tex')
-rw-r--r-- | macros/latex/contrib/glossaries/samples/sample-custom-acronym.tex | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/macros/latex/contrib/glossaries/samples/sample-custom-acronym.tex b/macros/latex/contrib/glossaries/samples/sample-custom-acronym.tex index 95b78a2773..992187f671 100644 --- a/macros/latex/contrib/glossaries/samples/sample-custom-acronym.tex +++ b/macros/latex/contrib/glossaries/samples/sample-custom-acronym.tex @@ -1,29 +1,29 @@ - % 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 } +% 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 } \documentclass{report} \usepackage[colorlinks]{hyperref} \usepackage[acronym,% create list of acronyms - % 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 ]{glossaries} \makeglossaries - % This is a sample file to illustrate how to define a custom - % 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. +% This is a sample file to illustrate how to define a custom +% 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. \newacronymstyle{custom-fn}% new style name {% Check for long form in case of a mixed glossary @@ -103,13 +103,13 @@ }% }% }% - % Use smallcaps for the acronym in the document text: +% 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: +% 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: +% 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}})}% } @@ -117,11 +117,11 @@ % Now set the new acronym style (to override the default style) \setacronymstyle{custom-fn} - % Set an appropriate glossary style: +% Set an appropriate glossary style: \setglossarystyle{altlist} - % Now define the acronyms (must be done after setting the custom - % style) +% 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} |