diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/datatool/datagidx.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/datatool/datagidx.sty | 61 |
1 files changed, 40 insertions, 21 deletions
diff --git a/Master/texmf-dist/tex/latex/datatool/datagidx.sty b/Master/texmf-dist/tex/latex/datatool/datagidx.sty index 7485711aca1..f759feff100 100644 --- a/Master/texmf-dist/tex/latex/datatool/datagidx.sty +++ b/Master/texmf-dist/tex/latex/datatool/datagidx.sty @@ -7,7 +7,7 @@ %% datatool.dtx (with options: `datagidx.sty,package') %% %% datatool.dtx -%% Copyright 2018 Nicola Talbot +%% Copyright 2019 Nicola Talbot %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3 @@ -39,7 +39,7 @@ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{datagidx}[2018/12/07 v2.31 (NLCT)] +\ProvidesPackage{datagidx}[2019/09/27 v2.32 (NLCT)] \RequirePackage{datatool} \RequirePackage{etoolbox} \RequirePackage{xkeyval} @@ -2221,15 +2221,31 @@ \def\{{\expandafter\@gobble\string\{}% \def\}{\expandafter\@gobble\string\}}% } -\newcommand*{\datagidxstripaccents}{% - \let\add@accent@\@secondoftwo - \let\@text@composite@x\@secondoftwo - \let\@tabacckludge\@secondoftwo - \expandafter\def\csname \encodingdefault-cmd\endcsname##1##2##3{##3}% - \expandafter\def\csname OT1-cmd\endcsname##1##2##3{##3}% - \expandafter\def\csname T1-cmd\endcsname##1##2##3{##3}% - \expandafter\def\csname PD1-cmd\endcsname##1##2##3{##3}% - \def\IeC##1{\@gobbletwo##1}% +\@ifl@t@r\fmtversion{2019/10/01} +{% + \newcommand*{\datagidxstripaccents}{% + \let\add@accent@\@secondoftwo + \let\@text@composite@x\@secondoftwo + \let\@tabacckludge\@secondoftwo + \expandafter\def\csname \encodingdefault-cmd\endcsname##1##2##3{##3}% + \expandafter\def\csname OT1-cmd\endcsname##1##2##3{##3}% + \expandafter\def\csname T1-cmd\endcsname##1##2##3{##3}% + \expandafter\def\csname PD1-cmd\endcsname##1##2##3{##3}% + \def\IeC##1{\@gobbletwo##1}% + \let\UTFviii@two@octets\UTFviii@two@octets@combine + }% +} +{% + \newcommand*{\datagidxstripaccents}{% + \let\add@accent@\@secondoftwo + \let\@text@composite@x\@secondoftwo + \let\@tabacckludge\@secondoftwo + \expandafter\def\csname \encodingdefault-cmd\endcsname##1##2##3{##3}% + \expandafter\def\csname OT1-cmd\endcsname##1##2##3{##3}% + \expandafter\def\csname T1-cmd\endcsname##1##2##3{##3}% + \expandafter\def\csname PD1-cmd\endcsname##1##2##3{##3}% + \def\IeC##1{\@gobbletwo##1}% + }% } \providecommand{\newterm}{\datagidx@newterm} \@onlypreamble\newterm @@ -3215,16 +3231,7 @@ {% \ifcsdef{datagidx@prev@loc@\Label}% {% - \protected@edef\@prev@location{% - \csname datagidx@prev@loc@\Label\endcsname}% - \@onelevel@sanitize\@prev@location - \protected@edef\@cur@location{\CurrentLocation}% - \@onelevel@sanitize\@cur@location - \ifdefequal{\@prev@location}{\@cur@location}% - {}% - {% - \global\let\@datagidx@dorerun@warn\@data@rerun@warn - }% + \dtlgidx@checklocationchange }% {% \global\let\@datagidx@dorerun@warn\@data@rerun@warn @@ -3248,6 +3255,18 @@ {}% }% } +\newcommand*{\dtlgidx@checklocationchange}{% + \protected@edef\@prev@location{% + \csname datagidx@prev@loc@\Label\endcsname}% + \@onelevel@sanitize\@prev@location + \protected@edef\@cur@location{\CurrentLocation}% + \@onelevel@sanitize\@cur@location + \ifdefequal{\@prev@location}{\@cur@location}% + {}% + {% + \global\let\@datagidx@dorerun@warn\@data@rerun@warn + }% +} \newcommand{\datagidx@doifdisplayed}[1]{% \DTLifnull{\Location}% {% |