diff options
author | Karl Berry <karl@freefriends.org> | 2016-04-04 21:44:22 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-04-04 21:44:22 +0000 |
commit | c6e536456e2875f3aea9121fee00644988246844 (patch) | |
tree | 693c86476b6b9e2f2c7ecb3b62dc5b4b98eaf2dd /Master/texmf-dist/tex/latex/imakeidx | |
parent | 2973164cd6b8a0c3ce5fbabdeafb5cbe231e6827 (diff) |
imakeidx (3apr16)
git-svn-id: svn://tug.org/texlive/trunk@40241 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/imakeidx')
-rw-r--r-- | Master/texmf-dist/tex/latex/imakeidx/imakeidx.sty | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/imakeidx/imakeidx.sty b/Master/texmf-dist/tex/latex/imakeidx/imakeidx.sty index 60563622646..a9de7bad7e7 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}% - [2013/07/11 v1.3a Package for typesetting indices in a synchronous mode] + [2016/04/03 v1.3b Package for typesetting indices in a synchronous mode] @@ -47,16 +47,14 @@ \RequirePackage{ifxetex,ifluatex} \ifxetex\def\imki@engine{xelatex}\fi \ifluatex % luatex doesn't have \(pdf)shellescape - \def\imki@engine{lualatex} + \def\imki@engine{lualatex} \ifnum\luatexversion<68 \chardef\imki@shellescape\@ne % no way to know the value \else - \RequirePackage{pdftexcmds} % provides \pdf@shellescape - \chardef\imki@shellescape\pdf@shellescape + \chardef\imki@shellescape\directlua{tex.write(os.execute())} + \def\imki@exec#1{\directlua{os.execute("\luaescapestring{#1}")}} \fi - \let\imki@exec\pdf@system \fi -\RequirePackage{xpatch} \edef\imki@splitindexoptions{-m \string"\string"} \def\splitindexoptions#1{\g@addto@macro\imki@splitindexoptions{ #1}} \@onlypreamble\splitindexoptions @@ -213,10 +211,11 @@ \fi \newif\ifimki@fancyhdr \AtBeginDocument{% + \@ifundefined{xpatchcmd}{\RequirePackage{xpatch}}{}% \@ifpackageloaded{fancyhdr}{\imki@fancyhdrtrue}{\imki@fancyhdrfalse}% \ifimki@fancyhdr - \patchcmd{\theindex}{\imki@indexheaders}{\relax}{}{}% - \patchcmd{\theindex}{\thispagestyle}{\@gobble}{}{}% + \xpatchcmd{\theindex}{\imki@indexheaders}{\relax}{}{}% + \xpatchcmd{\theindex}{\thispagestyle}{\@gobble}{}{}% \fi } \ifimki@original @@ -324,8 +323,10 @@ \def\imki@putindexsplit#1{% \ifimki@nonewpage\else \imki@clearpage + \ifimki@disableautomatic\else + \immediate\closeout\csname #1@idxfile\endcsname + \fi \fi - \immediate\closeout\csname #1@idxfile\endcsname \let\imki@indexname\indexname % keep \indexname \@nameuse{imki@set@#1}\imki@decide \if@tempswa % we can call the external program @@ -355,7 +356,9 @@ \@nameuse{imki@set@#1}\imki@decide \if@tempswa % we can call the external program \ifimki@splitdone\else - \immediate\closeout\@indexfile + \ifimki@disableautomatic\else + \immediate\closeout\@indexfile + \fi \imki@exec{splitindex \imki@splitindexoptions\space\imki@jobname.idx}% \global\imki@splitdonetrue \fi |