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 | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/glossaries/base/glossaries.sty b/Master/texmf-dist/tex/latex/glossaries/base/glossaries.sty index c9f7c96a53d..490dc9f04b7 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}[2017/08/10 v4.31 (NLCT)] +\ProvidesPackage{glossaries}[2017/08/24 v4.32 (NLCT)] \RequirePackage{ifthen} \RequirePackage{xkeyval}[2006/11/18] \RequirePackage{mfirstuc} @@ -69,19 +69,36 @@ \endgroup } \fi -\define@boolkey{glossaries.sty}[@gls@]{debug}[true]{% - \if@gls@debug +\newif\if@gls@debug +\define@choicekey{glossaries.sty}{debug}[\val\nr]{true,false,showtargets}[true]{% + \ifcase\nr\relax + \@gls@debugtrue \renewcommand*{\GlossariesWarning}[1]{% \PackageWarning{glossaries}{##1}% }% \renewcommand*{\GlossariesWarningNoLine}[1]{% \PackageWarningNoLine{glossaries}{##1}% }% + \let\@glsshowtarget\@gobble \PackageInfo{glossaries}{debug mode ON (nowarn option disabled)}% - \else + \or + \@gls@debugfalse + \let\@glsshowtarget\@gobble \PackageInfo{glossaries}{debug mode OFF}% + \or + \@gls@debugtrue + \renewcommand*{\GlossariesWarning}[1]{% + \PackageWarning{glossaries}{##1}% + }% + \renewcommand*{\GlossariesWarningNoLine}[1]{% + \PackageWarningNoLine{glossaries}{##1}% + }% + \PackageInfo{glossaries}{debug mode ON (nowarn option disabled)}% + \renewcommand{\@glsshowtarget}{\glsshowtarget}% \fi } +\newcommand*{\glsshowtarget}[1]{\marginpar{\texttt{\small #1}}} +\newcommand*{\@glsshowtarget}[1]{} \newcommand*{\@gls@see@noindex}{% \PackageError{glossaries}% {`\gls@xr@key' key may only be used after \string\makeglossaries\space @@ -3646,12 +3663,15 @@ false,nolabel,autolabel,nameref}[nolabel]{% }% } \def@gls@xdycheckbackslash + \newlength\gls@tmplen \newcommand*{\glsdohypertarget}[2]{% + \@glsshowtarget{#1}% \settoheight{\gls@tmplen}{#2}% \raisebox{\gls@tmplen}{\hypertarget{#1}{}}#2% } \newcommand*{\glsdohyperlink}[2]{% + \@glsshowtarget{#1}% \hyperlink{#1}{#2}% } \newcommand*{\glsdonohyperlink}[2]{#2} |