summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorManuel Pégourié-Gonnard <mpg@elzevir.fr>2012-10-06 17:09:54 +0000
committerManuel Pégourié-Gonnard <mpg@elzevir.fr>2012-10-06 17:09:54 +0000
commit1d80b24b10b0f2598cc5dbab7057e9e61626ce05 (patch)
treeb0ce1ce1cfd11d0d40657de408bee0e0c6d53c3c /Master/texmf-dist/tex
parentd0c4e8ba040085b627fe0990e8409150e5de98f0 (diff)
imakeidx update
git-svn-id: svn://tug.org/texlive/trunk@27906 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/imakeidx/imakeidx.sty18
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}