diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/glossaries/base/glossaries.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/glossaries/base/glossaries.sty | 51 |
1 files changed, 34 insertions, 17 deletions
diff --git a/Master/texmf-dist/tex/latex/glossaries/base/glossaries.sty b/Master/texmf-dist/tex/latex/glossaries/base/glossaries.sty index 9eb6e8071f1..c30716a7552 100644 --- a/Master/texmf-dist/tex/latex/glossaries/base/glossaries.sty +++ b/Master/texmf-dist/tex/latex/glossaries/base/glossaries.sty @@ -39,7 +39,7 @@ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{glossaries}[2008/05/10 v1.13 (NLCT)] +\ProvidesPackage{glossaries}[2008/06/17 v1.14 (NLCT)] \RequirePackage{ifthen} \RequirePackage{xkeyval}[2006/11/18] \RequirePackage{mfirstuc} @@ -55,6 +55,7 @@ subsection,subsubsection,paragraph,subparagraph}[section]{% \renewcommand*{\@@glossarysec}{#1}} \newcommand*{\@@glossarysecstar}{*} \newcommand*{\@@glossaryseclabel}{} +\newcommand*{\glsautoprefix}{} \define@choicekey{glossaries.sty}{numberedsection}[\val\nr]{% false,nolabel,autolabel}[nolabel]{% \ifcase\nr\relax @@ -65,7 +66,7 @@ false,nolabel,autolabel}[nolabel]{% \renewcommand*{\@@glossaryseclabel}{}% \or \renewcommand*{\@@glossarysecstar}{}% - \renewcommand*{\@@glossaryseclabel}{\label{\@glo@type}}% + \renewcommand*{\@@glossaryseclabel}{\label{\glsautoprefix\@glo@type}}% \fi} \newcommand*{\@glossary@default@style}{list} \define@key{glossaries.sty}{style}{% @@ -1263,8 +1264,8 @@ to move \string\makeglossaries\space after all your \def\glossarytitle{\csname @glotype@\@glo@type @title\endcsname}% \def\glossarytoctitle{\glossarytitle}% \def\@glossarystyle{}% -\setkeys{printgloss}{#1}% \bgroup +\setkeys{printgloss}{#1}% \@glossarystyle \makeatletter \@input@{\jobname.\csname @glotype@\@glo@type @in\endcsname}% @@ -1279,6 +1280,24 @@ to move \string\makeglossaries\space after all your \@ifundefined{@glsstyle@#1}{\PackageError{glossaries}{Glossary style `#1' undefined}{}}{% \def\@glossarystyle{\csname @glsstyle@#1\endcsname}}} +\define@choicekey{printgloss}{numberedsection}[\val\nr]{% +false,nolabel,autolabel}[nolabel]{% +\ifcase\nr\relax + \renewcommand*{\@@glossarysecstar}{*}% + \renewcommand*{\@@glossaryseclabel}{}% +\or + \renewcommand*{\@@glossarysecstar}{}% + \renewcommand*{\@@glossaryseclabel}{}% +\or + \renewcommand*{\@@glossarysecstar}{}% + \renewcommand*{\@@glossaryseclabel}{\label{\glsautoprefix\@glo@type}}% +\fi} +\define@boolkey{printgloss}[gls]{nonumberlist}[true]{% +\ifglsnonumberlist + \def\glossaryentrynumbers##1{}% +\else + \def\glossaryentrynumbers##1{##1}% +\fi} \@ifundefined{theglossary}{% \newenvironment{theglossary}{}{}}{% \PackageWarning{glossaries}{overriding `theglossary' environment}% @@ -1424,6 +1443,7 @@ firstplural={\@glo@descplural\space (\@glo@plural)},% \new@ifnextchar[{\@ACRfullpl{#1}{#2}}{\@ACRfullpl{#1}{#2}[]}} \def\@ACRfullpl#1#2[#3]{\@GLSfirstplural@{#1}{#2}[#3]} \newcommand{\acronymfont}[1]{#1} +\newcommand{\firstacronymfont}[1]{\acronymfont{#1}} \ifglsacrdescription \ifglsacrfootnote \renewcommand{\newacronym}[4][]{% @@ -1464,7 +1484,7 @@ firstplural={\@glo@descplural\space (\@glo@plural)},% \def\@ACRfullpl#1#2[#3]{\@GLSsymbolplural@{#1}{#2}[#3] (\acronymfont{\@GLSplural@{#1}{#2}[#3]})} \defglsdisplayfirst[\acronymtype]{% - \acronymfont{#1}#4\noexpand\protect\noexpand\footnote{% + \firstacronymfont{#1}#4\noexpand\protect\noexpand\footnote{% \noexpand\protect\noexpand\glslink [\@gls@link@opts]{\@gls@link@label}{#3}}}% \defglsdisplay[\acronymtype]{\acronymfont{#1}#4}% @@ -1496,8 +1516,6 @@ firstplural={\@glo@descplural\space (\@glo@plural)},% \newglossaryentry{#2}{type=\acronymtype,% name={\acronymfont#4},% sort={#4}, - first={#4},% - firstplural={#4\acrpluralsuffix},% text={#4},% plural={#4\acrpluralsuffix},% symbol={#3},% @@ -1545,8 +1563,8 @@ firstplural={\@glo@descplural\space (\@glo@plural)},% firstplural={#4\acrpluralsuffix},% text={#3},% plural={#3\acrpluralsuffix},% - symbol={#3},% - symbolplural={#3\acrpluralsuffix},% + symbol={\@glo@text},% + symbolplural={\@glo@plural},% #1}} \def\glsshortkey{text}% \def\glsshortpluralkey{plural}% @@ -1576,7 +1594,7 @@ firstplural={\@glo@descplural\space (\@glo@plural)},% (\acronymfont{\@glssymbolplural@{#1}{#2}[#3]})} \def\@ACRfullpl#1#2[#3]{\@GLSfirstplural@{#1}{#2}[#3] (\acronymfont{\@GLSsymbolplural@{#1}{#2}[#3]})} - \defglsdisplayfirst[\acronymtype]{#1#4 (\acronymfont{#3})} + \defglsdisplayfirst[\acronymtype]{#1#4 (\firstacronymfont{#3})} \defglsdisplay[\acronymtype]{\acronymfont{#1}#4} \ifglsacrsmallcaps \renewcommand{\acronymfont}[1]{\textsc{#1}} @@ -1605,7 +1623,7 @@ firstplural={\@glo@descplural\space (\@glo@plural)},% \def\glslongkey{description}% \def\glslongpluralkey{descriptionplural}% \defglsdisplayfirst[\acronymtype]{% - \acronymfont{#1}#4\noexpand\protect\noexpand\footnote{% + \firstacronymfont{#1}#4\noexpand\protect\noexpand\footnote{% \noexpand\protect\noexpand\glslink [\@gls@link@opts]{\@gls@link@label}{#2}}}% \defglsdisplay[\acronymtype]{\acronymfont{#1}#4}% @@ -1652,12 +1670,12 @@ firstplural={\@glo@descplural\space (\@glo@plural)},% \newglossaryentry{#2}{type=\acronymtype,% name={\acronymfont{#3}},% sort={#3},% - text={#3},% - plural={#3\acrpluralsuffix},% + text={\@glo@symbol},% + plural={\@glo@symbolplural},% first={#4},% firstplural={#4\acrpluralsuffix},% - description={#4},% - descriptionplural={#4\acrpluralsuffix},% + description={\@glo@first},% + descriptionplural={\@glo@firstplural},% symbol={#3},% symbolplural={#3\acrpluralsuffix},% #1}} @@ -1665,7 +1683,7 @@ firstplural={\@glo@descplural\space (\@glo@plural)},% \def\glsshortpluralkey{symbolplural}% \def\glslongkey{first}% \def\glslongpluralkey{firstplural}% - \defglsdisplayfirst[\acronymtype]{#1#4 (\acronymfont{#3})} + \defglsdisplayfirst[\acronymtype]{#1#4 (\firstacronymfont{#3})} \defglsdisplay[\acronymtype]{\acronymfont{#1}#4} \ifglsacrsmallcaps \renewcommand*{\acronymfont}[1]{\textsc{#1}} @@ -1712,10 +1730,9 @@ firstplural={\@glo@descplural\space (\@glo@plural)},% \renewcommand{\newacronym}[4][]{% \newglossaryentry{#2}{type=\acronymtype,% name={#3},% - description={#4},% - descriptionplural={#4\acrpluralsuffix},% text={#4},% plural={#4\acrpluralsuffix},% + description={#4},% symbol={#3},% symbolplural={#3\acrpluralsuffix},% #1}} |