From 6e74bc926a94668b3647fd2e14d9bf7c31ab31fa Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 30 Apr 2018 22:45:09 +0000 Subject: robustindex (30apr18) git-svn-id: svn://tug.org/texlive/trunk@47521 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/robustindex/README.md | 2 +- .../doc/latex/robustindex/multisample.pdf | Bin 162849 -> 163966 bytes Master/texmf-dist/doc/latex/robustindex/stind.html | 2 +- .../tex/latex/robustindex/robustindex.sty | 18 ++++++++++++------ 4 files changed, 14 insertions(+), 8 deletions(-) (limited to 'Master/texmf-dist') diff --git a/Master/texmf-dist/doc/latex/robustindex/README.md b/Master/texmf-dist/doc/latex/robustindex/README.md index 6968a05727f..7e2fde0e1ad 100644 --- a/Master/texmf-dist/doc/latex/robustindex/README.md +++ b/Master/texmf-dist/doc/latex/robustindex/README.md @@ -1,5 +1,5 @@ Package robustindex.sty, Wilberd van der Kallen 2018. -Date of last change of _anything_ in the bundle 2018/04/25 +Date of last change of _anything_ in the bundle 2018/04/28 This package uses \pageref to ensure that the page numbers in the index are synchronous with the manuscript, even when a third party changes the page numbers and fails to diff --git a/Master/texmf-dist/doc/latex/robustindex/multisample.pdf b/Master/texmf-dist/doc/latex/robustindex/multisample.pdf index cfe76e57aeb..44fa6ac84a4 100644 Binary files a/Master/texmf-dist/doc/latex/robustindex/multisample.pdf and b/Master/texmf-dist/doc/latex/robustindex/multisample.pdf differ diff --git a/Master/texmf-dist/doc/latex/robustindex/stind.html b/Master/texmf-dist/doc/latex/robustindex/stind.html index 516814c1700..8f003bf0544 100644 --- a/Master/texmf-dist/doc/latex/robustindex/stind.html +++ b/Master/texmf-dist/doc/latex/robustindex/stind.html @@ -14,7 +14,7 @@ without rerunning makeindex. (Yes, it happened also to my 1993 book.)

It is much nicer to have an index that adapts itself to all changes but the adding/deleting/rearranging of \index commands.

Our package -robustindex.sty (version 2018/04/25) +robustindex.sty (version 2018/04/28) achieves this with the \pageref mechanism.

Here is our Manual for the robustindex package. diff --git a/Master/texmf-dist/tex/latex/robustindex/robustindex.sty b/Master/texmf-dist/tex/latex/robustindex/robustindex.sty index 490758af944..8c3d3943412 100644 --- a/Master/texmf-dist/tex/latex/robustindex/robustindex.sty +++ b/Master/texmf-dist/tex/latex/robustindex/robustindex.sty @@ -64,7 +64,7 @@ % version 1999/12/01 or later. \ProvidesPackage{robustindex} - [2018/04/25 + [2018/04/28 index entries with pagerefs] \RequirePackage{makeidx} @@ -333,12 +333,12 @@ \newcommand{\letr@test}{\relax}% To test if entry starts with new letter. -\long\def\letr@test#1{\ifx#1\nxtletre\else\procletter{#1}\fi}% +\long\def\letr@test#1{\ifx#1\nxtletre\else\proc@letter{#1}\fi}% -\newcommand{\procletter}{\relax}% +\newcommand{\proc@letter}{\relax}% -\def\procletter#1{\long\def\item{\olditem}\indexcapstyle{\nwletre}\ifx#1\indnr -\expandafter\ja@\else #1\fi}% +\def\proc@letter#1{\long\def\item{\olditem}\ifx#1\relax\else\indexcapstyle{\nwletre}\fi +\ifx#1\indnr\expandafter\ja@\else #1\fi}% \newcommand{\olditem}{\relax}% @@ -398,7 +398,13 @@ Package needs \string\make index in preamble. Detected}\fi \addtocounter{multindctr}{-1}% \expandafter\edef\csname#1@rbstind\endcsname{\the\c@multindctr}% \edef\robustchoice{\csname#1@rbstind\endcsname}% -\@esphack \protected@write +\@esphack +\protected@write + \@indexfile {}{\string \indexentry + {\string\indnr\the\c@multindctr d91a @\protect\nxtletre\protect\def + \protect\nwletre{\relax}\string\jmptonine +}{9}}% +\protected@write \@indexfile {}{\string \indexentry {\string\indnr\the\c@multindctr a @\string\robustcutpoint \string\ifnum\string\robustchoice=\the\c@multindctr\string\multindpreamble -- cgit v1.2.3