diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/glossaries-extra/glossaries-extra.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/glossaries-extra/glossaries-extra.sty | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/glossaries-extra/glossaries-extra.sty b/Master/texmf-dist/tex/latex/glossaries-extra/glossaries-extra.sty index ee66803885f..888488ab869 100644 --- a/Master/texmf-dist/tex/latex/glossaries-extra/glossaries-extra.sty +++ b/Master/texmf-dist/tex/latex/glossaries-extra/glossaries-extra.sty @@ -39,7 +39,7 @@ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{glossaries-extra}[2017/02/03 v1.12 (NLCT)] +\ProvidesPackage{glossaries-extra}[2017/02/07 v1.13 (NLCT)] \RequirePackage{xkeyval} \RequirePackage{etoolbox} \@ifpackageloaded{glossaries} @@ -211,6 +211,7 @@ \let\glsxtr@warnonexistsordo\@gobble \let\@@glsxtr@recordcounter\@glsxtr@noop@recordcounter \def\printunsrtglossaryunit{\print@noop@unsrtglossaryunit}% + \undef\glsxtrsetaliasnoindex }% \or \def\glsxtr@setup@record{% @@ -223,6 +224,7 @@ \renewcommand*{\@glsxtr@autoindexcrossrefs}{}% \let\@@glsxtr@recordcounter\@glsxtr@op@recordcounter \def\printunsrtglossaryunit{\print@op@unsrtglossaryunit}% + \def\glsxtrsetaliasnoindex{}% }% \or \def\glsxtr@setup@record{% @@ -234,6 +236,7 @@ \glsxtr@addloclistfield \let\@@glsxtr@recordcounter\@glsxtr@op@recordcounter \def\printunsrtglossaryunit{\print@op@unsrtglossaryunit}% + \undef\glsxtrsetaliasnoindex }% \fi } @@ -1297,10 +1300,23 @@ \@glsxtr@record{#1}{#2}% \@glsxtr@org@GLSpl@{#1}{#2}% }% -\let\@glsxtr@org@glsdisp\@glsdisp \renewcommand*{\@glsdisp}[3][]{% \@glsxtr@record{#1}{#2}% - \@glsxtr@org@glsdisp[#1]{#2}{#3}% + \glsdoifexists{#2}{% + \let\do@gls@link@checkfirsthyper\@gls@link@checkfirsthyper + \let\glsifplural\@secondoftwo + \let\glscapscase\@firstofthree + \def\glscustomtext{#3}% + \def\glsinsert{}% + \def\@glo@text{\csname gls@\glstype @entryfmt\endcsname}% + \@gls@link[#1]{#2}{\@glo@text}% + \ifKV@glslink@local + \glslocalunset{#2}% + \else + \glsunset{#2}% + \fi + }% + \glspostlinkhook } \renewcommand*{\@gls@@link}[3][]{% \@glsxtr@record{#1}{#2}% @@ -1907,7 +1923,7 @@ } \preto\do@glsdisablehyperinlist{\@gls@setdefault@glslink@opts} } -\newcommand*{\glsxtrsetaliasnoindex}{% +\providecommand*{\glsxtrsetaliasnoindex}{% \KV@glslink@noindextrue } \newcommand*{\@glsxtrsetaliasnoindex}{% |