summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/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/source/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/source/latex/imakeidx')
-rw-r--r--Master/texmf-dist/source/latex/imakeidx/imakeidx.dtx29
1 files changed, 16 insertions, 13 deletions
diff --git a/Master/texmf-dist/source/latex/imakeidx/imakeidx.dtx b/Master/texmf-dist/source/latex/imakeidx/imakeidx.dtx
index f75f557dba0..ecf7dfdc43f 100644
--- a/Master/texmf-dist/source/latex/imakeidx/imakeidx.dtx
+++ b/Master/texmf-dist/source/latex/imakeidx/imakeidx.dtx
@@ -43,7 +43,7 @@ and the derived files imakeidx.sty and imakeidx.pdf.
%<package>\NeedsTeXFormat{LaTeX2e}[2005/12/01]
%<package>\ProvidesPackage{imakeidx}%
%<*package>
- [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]
%</package>
%<*driver>
\documentclass{ltxdoc}
@@ -87,6 +87,8 @@ and the derived files imakeidx.sty and imakeidx.pdf.
% \changes{v1.2}{2012/08/31}{made package compatible with showidx}
% \changes{v1.2}{2012/08/31}{made package compatible with fancyhdr}
% \changes{v1.2}{2012/08/31}{added index processing engine option truexindy}
+% \changes{v1.2c}{2012/10/02}{Fixed regression}
+% \changes{v1.2d}{2012/10/06}{Fixed bugs with index internal names}
%
% \begin{abstract}
% This package exploits the |\write18| facility of modern \TeX\ system
@@ -911,6 +913,7 @@ and the derived files imakeidx.sty and imakeidx.pdf.
% \begin{macrocode}
\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
@@ -1003,7 +1006,7 @@ and the derived files imakeidx.sty and imakeidx.pdf.
\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}%
@@ -1017,11 +1020,11 @@ and the derived files imakeidx.sty and imakeidx.pdf.
\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}
@@ -1058,10 +1061,10 @@ and the derived files imakeidx.sty and imakeidx.pdf.
% \begin{macrocode}
\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}}%
@@ -1201,11 +1204,11 @@ and the derived files imakeidx.sty and imakeidx.pdf.
% checks and messages.
% \begin{macrocode}
\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
@@ -1327,7 +1330,7 @@ and the derived files imakeidx.sty and imakeidx.pdf.
\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
@@ -1336,7 +1339,7 @@ and the derived files imakeidx.sty and imakeidx.pdf.
\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}%
@@ -1347,7 +1350,7 @@ and the derived files imakeidx.sty and imakeidx.pdf.
\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
}
% \end{macrocode}