For more readable Index pages, move people's names into "Index of
People".

Existing index markers are ready for the split.
Just tweaking their definitions in the preamble and adding
a makeindex command in utilities/runlatex.sh should suffice.

Change titles of Index pages as follows:

    - Index of Terms
    - Index of People
    - Index of APIs

Signed-off-by: Akira Yokosawa <[email protected]>
---
 perfbook-lt.tex       | 17 +++++++++++------
 utilities/runlatex.sh |  3 ++-
 2 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/perfbook-lt.tex b/perfbook-lt.tex
index e977dfb8..25f16ff0 100644
--- a/perfbook-lt.tex
+++ b/perfbook-lt.tex
@@ -187,8 +187,9 @@
 \usepackage{placeins}
 }
 % Custom commands for index
-\newindex[API Index]{api} % index for API
-\newindex[People Name Index]{ppl} % index for People Name
+\renewcommand{\indexname}{Index of Terms}
+\newindex[Index of APIs]{api} % index for API
+\newindex[Index of People]{ppl} % index for People Name
 \newcommand{\categapi}[1]{~{\scriptsize (#1)}}
 \IfIndexHl{
 \newcommand{\hlindex}[1]{\textcolor{DarkGreen}{#1}}
@@ -294,10 +295,10 @@
 \newcommand{\apialtc}[2]{\hlindex{\co{#1}}\sindex[api]{#2@\co{#2}\categapi{c}}}
 \newcommand{\apialtg}[2]{\hlindex{\co{#1}}\sindex[api]{#2@\co{#2}\categapi{g}}}
 \newcommand{\apialtk}[2]{\hlindex{\co{#1}}\sindex[api]{#2@\co{#2}\categapi{k}}}
-\newcommand{\ppl}[2]{\hlindex{#1 #2}\index{#2, #1}} % forename surname in 
text, "surname, forename" into ppl index
-\newcommand{\pplmdl}[2]{\hlindex{#1~#2}\index{#2, #1}} % for abbreviated 
middle name
-\newcommand{\pplsur}[2]{\hlindex{#2}\index{#2, #1}} % surname in text, 
"surname, givenname" into ppl index
-\newcommand{\pplalt}[2]{\hlindex{#1}\index{#2}} % put 1st arg in text, put 2nd 
arg into ppl index
+\newcommand{\ppl}[2]{\hlindex{#1 #2}\sindex[ppl]{#2, #1}} % forename surname 
in text, "surname, forename" into ppl index
+\newcommand{\pplmdl}[2]{\hlindex{#1~#2}\sindex[ppl]{#2, #1}} % for abbreviated 
middle name
+\newcommand{\pplsur}[2]{\hlindex{#2}\sindex[ppl]{#2, #1}} % surname in text, 
"surname, givenname" into ppl index
+\newcommand{\pplalt}[2]{\hlindex{#1}\sindex[ppl]{#2}} % put 1st arg in text, 
put 2nd arg into ppl index
 
 \IfTwoColumn{}{
   \setboolean{colorlinks}{true}
@@ -748,6 +749,10 @@
 }
 \printindex
 \phantomsection
+\setindexprenote{% empty for now
+}
+\printindex[ppl]
+\phantomsection
 \setindexprenote{%
   \hfill\begin{minipage}{2.6in}
     \footnotesize (c):~Cxx standard, (g):~GCC extension,
diff --git a/utilities/runlatex.sh b/utilities/runlatex.sh
index ec2114af..358b6baf 100644
--- a/utilities/runlatex.sh
+++ b/utilities/runlatex.sh
@@ -69,8 +69,9 @@ iterate_latex () {
        perl utilities/adjustindexformat.pl $basename.idx > $basename-adjust.idx
        cp -f $basename-adjust.idx $basename.idx
        makeindex $basename.idx > /dev/null 2>&1
+       makeindex $basename-ppl.idx > /dev/null 2>&1
        makeindex $basename-api.idx > /dev/null 2>&1
-       if grep -q '## Warning' $basename.ilg $basename-api.ilg
+       if grep -q '## Warning' $basename.ilg $basename-ppl.ilg 
$basename-api.ilg
        then
                echo "----- Warning in makeindex, see .ilg log files. -----"
                exit 1
-- 
2.34.1



Reply via email to