summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/imakeidx
diff options
context:
space:
mode:
authorManuel Pégourié-Gonnard <mpg@elzevir.fr>2012-10-08 09:23:01 +0000
committerManuel Pégourié-Gonnard <mpg@elzevir.fr>2012-10-08 09:23:01 +0000
commit385911a89479e9d6a11523371ffd92fd52616494 (patch)
treecd013cd7ee4567f5a65430387ae20d2a295f374b /Master/texmf-dist/tex/latex/imakeidx
parentd8ef1e42ff64042227534731bbb5f884f45a3aeb (diff)
imakeidx update
git-svn-id: svn://tug.org/texlive/trunk@27920 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/imakeidx')
-rw-r--r--Master/texmf-dist/tex/latex/imakeidx/imakeidx.sty27
1 files changed, 14 insertions, 13 deletions
diff --git a/Master/texmf-dist/tex/latex/imakeidx/imakeidx.sty b/Master/texmf-dist/tex/latex/imakeidx/imakeidx.sty
index 5ea32e6666f..7eba70c2b07 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/10/02 v1.2c Package for typesetting indices in a synchronous mode]
+ [2012/10/05 v1.2d Package for typesetting indices in a synchronous mode]
@@ -72,6 +72,7 @@
\renewcommand{\makeindex}[1][]{\imki@makeindex{#1}}
\def\imki@makeindex#1{%
\edef\imki@name{\jobname}%
+ \edef\imki@jobname{\jobname}%
\def\imki@title{\indexname}%
\edef\imki@program{\imki@progdefault}%
\let\imki@options\space
@@ -137,7 +138,7 @@
\def\imki@startidxsplit#1{%
\if@filesw
\def\index{\@bsphack
- \@ifnextchar [{\@index}{\@index[\imki@name]}}
+ \@ifnextchar [{\@index}{\@index[\imki@jobname]}}
\expandafter\newwrite\csname #1@idxfile\endcsname
\immediate\openout \csname #1@idxfile\endcsname #1.idx\relax
\typeout{Writing index file #1.idx}%
@@ -147,11 +148,11 @@
\if@filesw
\ifimki@startedidx\else
\newwrite\@indexfile
- \immediate\openout\@indexfile\imki@name.idx%
+ \immediate\openout\@indexfile\imki@jobname.idx%
\global\imki@startedidxtrue
\fi
\def\index{\@bsphack
- \@ifnextchar [{\@index}{\@index[\imki@name]}}
+ \@ifnextchar [{\@index}{\@index[\imki@jobname]}}
\expandafter\let\csname #1@idxfile\endcsname\@empty
\typeout{Started index file #1}%
\fi}
@@ -169,10 +170,10 @@
\def\imki@nowrindex#1{\endgroup\@esphack}
\newif\ifimki@showidx
\@ifpackageloaded{showidx}{\imki@showidxtrue}{\imki@showidxfalse}
-\edef\imki@jobname{\jobname}
-\newcommand\imki@showidxentry[2]{\ifimki@showidx
-\@showidx{\ifdefequal{\imki@jobname}{#1}{}{[#1]\space}#2}%
-\fi}
+\newcommand\imki@showidxentry[2]{%
+ \ifimki@showidx
+ \@showidx{\ifdefequal{\imki@jobname}{#1}{}{[#1]\space}#2}%
+ \fi}
\def\imki@wrindexsplit#1#2{%
\expandafter\protected@write\csname#1@idxfile\endcsname{}%
{\string\indexentry{#2}{\thepage}}%
@@ -258,11 +259,11 @@
\newcommand{\indexprologue}[2][\bigskip]{%
\long\gdef\imki@idxprologue{{#2\par}#1}}
\providecommand*{\printindex}{}
-\renewcommand*{\printindex}[1][\imki@name]{%
+\renewcommand*{\printindex}[1][\imki@jobname]{%
\@ifundefined{#1@idxfile}{\imki@error{#1}}{\imki@putindex{#1}}}
\def\imki@error#1{%
- \def\@tempa{#1}\def\@tempb{\imki@name}%
+ \def\@tempa{#1}\def\@tempb{\imki@jobname}%
\ifx\@tempa\@tempb
\let\imki@optarg\@empty
\else
@@ -345,7 +346,7 @@
\if@tempswa % we can call the external program
\ifimki@splitdone\else
\immediate\closeout\@indexfile
- \imki@exec{splitindex \imki@splitindexoptions\space\imki@name.idx}%
+ \imki@exec{splitindex \imki@splitindexoptions\space\imki@jobname.idx}%
\global\imki@splitdonetrue
\fi
\else
@@ -354,7 +355,7 @@
\fi
\fi
\if@tempswa % we can call the external program
- \imki@exec{\imki@program\imki@options\imki@name-#1.idx}%
+ \imki@exec{\imki@program\imki@options\imki@jobname-#1.idx}%
\fi
\ifKV@imki@intoc
\def\imki@maybeaddtotoc{\@nameuse{phantomsection}%
@@ -365,7 +366,7 @@
\ifx\imki@title\imki@check@indexname\else
\def\indexname{\imki@title}%
\fi
- \@input@{\imki@name-#1.ind}
+ \@input@{\imki@jobname-#1.ind}
\let\indexname\imki@indexname % restore \indexname
}
\ifimki@splitindex