diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/imakeidx/imakeidx.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/imakeidx/imakeidx.sty | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/imakeidx/imakeidx.sty b/Master/texmf-dist/tex/latex/imakeidx/imakeidx.sty index 1cc0053bc1c..2826591476f 100644 --- a/Master/texmf-dist/tex/latex/imakeidx/imakeidx.sty +++ b/Master/texmf-dist/tex/latex/imakeidx/imakeidx.sty @@ -176,16 +176,24 @@ \ifshowindexmark \@showidx{\ifdefequal{\imki@jobname}{#1}{}{[#1]\space}#2}% \fi} -\def\imki@wrindexsplit#1#2{% +\newcommand\imki@wrindexentrysplit[3]{% \expandafter\protected@write\csname#1@idxfile\endcsname{}% - {\string\indexentry{#2}{\thepage}}% - \endgroup\imki@showidxentry{#1}{#2}% - \@esphack} -\def\imki@wrindexunique#1#2{% + {\string\indexentry{#2}{#3}}% +} +\newcommand\imki@wrindexentryunique[3]{% \protected@write\@indexfile{}% - {\string\indexentry[#1]{#2}{\thepage}}% - \endgroup\imki@showidxentry{#1}{#2}% - \@esphack} + {\string\indexentry[#1]{#2}{#3}}% +} +\def\imki@wrindexsplit#1#2{% +\imki@wrindexentrysplit{#1}{#2}{\thepage}% +\endgroup\imki@showidxentry{#1}{#2}% + \@esphack% +} +\def\imki@wrindexunique#1#2{% +\imki@wrindexentryunique{#1}{#2}{\thepage}% +\endgroup\imki@showidxentry{#1}{#2}% + \@esphack% + } \def\imki@shellwarn{} \ifdefined\imki@shellescape % luatex \else @@ -375,6 +383,7 @@ \let\imki@startidx\imki@startidxunique \let\@wrindex\imki@wrindexunique \let\imki@putindex\imki@putindexunique + \let\imki@wrindexentry\imki@wrindexentryunique \let\imki@startidxsplit\@undefined \let\imki@wrindexsplit\@undefined \let\imki@putindexsplit\@undefined @@ -382,6 +391,7 @@ \let\imki@startidx\imki@startidxsplit \let\@wrindex\imki@wrindexsplit \let\imki@putindex\imki@putindexsplit + \let\imki@wrindexentry\imki@wrindexentrysplit \let\imki@startidxunique\@undefined \let\imki@wrindexunique\@undefined \let\imki@putindexunique\@undefined |