diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/glossaries/glossary2glossaries.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/glossaries/glossary2glossaries.tex | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/Master/texmf-dist/doc/latex/glossaries/glossary2glossaries.tex b/Master/texmf-dist/doc/latex/glossaries/glossary2glossaries.tex index f4d9b09679d..6cfef8116ba 100644 --- a/Master/texmf-dist/doc/latex/glossaries/glossary2glossaries.tex +++ b/Master/texmf-dist/doc/latex/glossaries/glossary2glossaries.tex @@ -21,6 +21,7 @@ \newcommand*{\igloskey}[2][newglossaryentry]{\icsopt{#1}{#2}} \newcommand*{\gloskey}[2][newglossaryentry]{\csopt{#1}{#2}} +\newcommand*{\acrstyle}[1]{\texttt{#1}} \ifpdf \newcommand{\glsentrytext}[1]{\texttt{#1}} @@ -33,7 +34,7 @@ \title{Upgrading from the glossary package to the glossaries package} \author{Nicola L.C. Talbot} -\date{2018-06-01} +\date{2018-07-23} \newenvironment{oldway}{% \begin{labelledbox}{\styfmt{glossary}}\ttfamily\obeylines @@ -173,7 +174,7 @@ with in the preamble, and, if the new glossary requires a different style to the main (default) glossary, you will also need to put \begin{newway} -\ics{glossarystyle}\marg{new style} +\ics{setglossarystyle}\marg{new style} \end{newway}% immediately before the glossary is displayed, or you can specify the style when you display the glossary using \ics{printglossary} @@ -194,7 +195,7 @@ You will need to replace the above two lines with: \end{verbatim} in the preamble and \begin{verbatim} -\glossarystyle{longheader} +\setglossarystyle{longheader} \end{verbatim} immediately prior to displaying this glossary. Alternatively, you can specify the style using the \csopt{printglossary}{style} key in @@ -397,7 +398,8 @@ This is different to the \styfmt{glossary} package which set the \csopt{newglossaryentry}{name} key to \meta{long} (\meta{abbrv}) and allowed you to set a description using the \csopt{newglossaryentry}{description} key. If you still want to do -this, you can use the \pkgopt{description} package option, and use +this, you can use one of the description styles, such as +\acrstyle{long-short-desc}, and use the \csopt{newglossaryentry}{description} key in the optional argument of \ics{newacronym}. @@ -406,10 +408,9 @@ For example, if your document originally had the following: \newacronym{SVM}{Support Vector Machine}{description=Statistical pattern recognition technique} \end{verbatim} -Then you would need to load the \styfmt{glossaries} package using the -\pkgopt{description} package option, for example: +Then you would need to first set the style: \begin{verbatim} -\usepackage[description]{glossaries} +\setacronymstyle{long-short-desc} \end{verbatim} and change the acronym definition to: \begin{verbatim} @@ -645,7 +646,9 @@ instead. As from v1.17, the \styfmt{glossaries} package can be used with either \app{makeindex} or \app{xindy}. Since \app{xindy} was designed to be multilingual, the new \styfmt{glossaries} package is a much better option for -non-English documents. +non-English documents. If you use the extension package, +\sty{glossaries-extra}, then you also have the option of using +\app{bib2gls} instead (which also provides multilingual support). For further information on using \app{makeglossaries}, \app{makeindex} or \app{xindy} to create your glossaries, see |