diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/imakeidx/imakeidx.sty | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/imakeidx/imakeidx.sty b/Master/texmf-dist/tex/latex/imakeidx/imakeidx.sty index 285c4e390f2..5ea32e6666f 100644 --- a/Master/texmf-dist/tex/latex/imakeidx/imakeidx.sty +++ b/Master/texmf-dist/tex/latex/imakeidx/imakeidx.sty @@ -14,7 +14,7 @@ %% \NeedsTeXFormat{LaTeX2e}[2005/12/01] \ProvidesPackage{imakeidx}% - [2012/09/22 v1.2b Package for typesetting indices in a synchronous mode] + [2012/10/02 v1.2c Package for typesetting indices in a synchronous mode] @@ -42,8 +42,9 @@ \if@twocolumn\imki@originaltrue\fi \def\imki@exec{\immediate\write18} \def\imki@engine{(pdf)latex} -\ifdefined\XeTeXversion\def\imki@engine{xelatex}\fi -\ifdefined\directlua % luatex doesn't have \(pdf)shellescape +\RequirePackage{ifxetex,ifluatex} +\ifxetex\def\imki@engine{xelatex}\fi +\ifluatex % luatex doesn't have \(pdf)shellescape \def\imki@engine{lualatex} \ifnum\luatexversion<68 \chardef\imki@shellescape\@ne % no way to know the value @@ -200,10 +201,13 @@ \KV@imki@noautomatictrue \fi \newif\ifimki@fancyhdr -\AtBeginDocument{\@ifpackageloaded{fancyhdr}{\imki@fancyhdrtrue}{\imki@fancyhdrfalse}% -\ifimki@fancyhdr - \patchcmd{\theindex}{\imki@indexheaders}{\relax}{}{}% - \patchcmd{\theindex}{\thispagestyle}{\@gobble}{}{}\fi} +\AtBeginDocument{% + \@ifpackageloaded{fancyhdr}{\imki@fancyhdrtrue}{\imki@fancyhdrfalse}% + \ifimki@fancyhdr + \patchcmd{\theindex}{\imki@indexheaders}{\relax}{}{}% + \patchcmd{\theindex}{\thispagestyle}{\@gobble}{}{}% + \fi +} \ifimki@original \expandafter\def\expandafter\theindex\expandafter{\expandafter \imki@maybeaddtotoc\theindex} |