* [PATCH perfbook 0/2] Split "Index of People" from general "Index"
@ 2025-04-15 9:04 Akira Yokosawa
2025-04-15 9:06 ` [PATCH perfbook 1/2] Fix \IXhmr and \IXalthmr for single-level index mode Akira Yokosawa
2025-04-15 18:47 ` [PATCH perfbook 0/2] " Paul E. McKenney
0 siblings, 2 replies; 6+ messages in thread
From: Akira Yokosawa @ 2025-04-15 9:04 UTC (permalink / raw)
To: Paul E. McKenney; +Cc: perfbook, Akira Yokosawa
Hi Paul,
Mixed list of technical terms and people's names in the Index pages
doesn't look great, especially with the growing numbers of people's
names.
Patch 2/2 splits people's names from existing general index pages into
"Index of People".
Patch 1/2 is an independent fix of a minor issue in single-level index
pages.
Thanks, Akira
--
Akira Yokosawa (2):
Fix \IXhmr and \IXalthmr for single-level index mode
Split "Index of People" from general "Index"
perfbook-lt.tex | 21 +++++++++++++--------
utilities/runlatex.sh | 3 ++-
2 files changed, 15 insertions(+), 9 deletions(-)
base-commit: 6e66e280e548545c69dde85f8eeee400f66b4bfc
--
2.34.1
^ permalink raw reply [flat|nested] 6+ messages in thread* [PATCH perfbook 1/2] Fix \IXhmr and \IXalthmr for single-level index mode 2025-04-15 9:04 [PATCH perfbook 0/2] Split "Index of People" from general "Index" Akira Yokosawa @ 2025-04-15 9:06 ` Akira Yokosawa 2025-04-15 9:13 ` [PATCH perfbook 2/2] Split "Index of People" from general "Index" Akira Yokosawa 2025-04-15 18:47 ` [PATCH perfbook 0/2] " Paul E. McKenney 1 sibling, 1 reply; 6+ messages in thread From: Akira Yokosawa @ 2025-04-15 9:06 UTC (permalink / raw) To: Paul E. McKenney; +Cc: perfbook, Akira Yokosawa In single-level Index pages, "RCU Read-Side critical section" and "RCU read-side critical section" are listed separately. This is because helper macros \indexhr and \indexhmr uses #1, which is the term to be printed in the main text. Instead, use "#3 #2" without any uppercasing. Signed-off-by: Akira Yokosawa <akiyks@gmail.com> --- perfbook-lt.tex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/perfbook-lt.tex b/perfbook-lt.tex index e6e5e609..e977dfb8 100644 --- a/perfbook-lt.tex +++ b/perfbook-lt.tex @@ -220,8 +220,8 @@ }{ \newcommand{\indexh}[3]{\ucindex{#3 #2}} \newcommand{\indexhy}[3]{\ucindex{#3#2}} -\newcommand{\indexhr}[3]{\index{#1}} -\newcommand{\indexhmr}[3]{\index{#1}} +\newcommand{\indexhr}[3]{\index{#3 #2}} +\newcommand{\indexhmr}[3]{\index{#3 #2}} } \newcommand{\IX}[1]{\ucindex{#1}\hlindex{#1}} % put with first letter capitalized into general index -- 2.34.1 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH perfbook 2/2] Split "Index of People" from general "Index" 2025-04-15 9:06 ` [PATCH perfbook 1/2] Fix \IXhmr and \IXalthmr for single-level index mode Akira Yokosawa @ 2025-04-15 9:13 ` Akira Yokosawa 0 siblings, 0 replies; 6+ messages in thread From: Akira Yokosawa @ 2025-04-15 9:13 UTC (permalink / raw) To: Paul E. McKenney; +Cc: perfbook, Akira Yokosawa 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 <akiyks@gmail.com> --- 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 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH perfbook 0/2] Split "Index of People" from general "Index" 2025-04-15 9:04 [PATCH perfbook 0/2] Split "Index of People" from general "Index" Akira Yokosawa 2025-04-15 9:06 ` [PATCH perfbook 1/2] Fix \IXhmr and \IXalthmr for single-level index mode Akira Yokosawa @ 2025-04-15 18:47 ` Paul E. McKenney 2025-04-15 23:08 ` Akira Yokosawa 1 sibling, 1 reply; 6+ messages in thread From: Paul E. McKenney @ 2025-04-15 18:47 UTC (permalink / raw) To: Akira Yokosawa; +Cc: perfbook On Tue, Apr 15, 2025 at 06:04:14PM +0900, Akira Yokosawa wrote: > Hi Paul, > > Mixed list of technical terms and people's names in the Index pages > doesn't look great, especially with the growing numbers of people's > names. > > Patch 2/2 splits people's names from existing general index pages into > "Index of People". > > Patch 1/2 is an independent fix of a minor issue in single-level index > pages. > > Thanks, Akira Nice, thank you, and I have queued this. After building perfbook.pdf twice, I have "Index of Terms" in the table of contents, but not "Index of People". Which is fine from my viewpoint, but thought I should check. Thanx, Paul > -- > Akira Yokosawa (2): > Fix \IXhmr and \IXalthmr for single-level index mode > Split "Index of People" from general "Index" > > perfbook-lt.tex | 21 +++++++++++++-------- > utilities/runlatex.sh | 3 ++- > 2 files changed, 15 insertions(+), 9 deletions(-) > > > base-commit: 6e66e280e548545c69dde85f8eeee400f66b4bfc > -- > 2.34.1 > ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH perfbook 0/2] Split "Index of People" from general "Index" 2025-04-15 18:47 ` [PATCH perfbook 0/2] " Paul E. McKenney @ 2025-04-15 23:08 ` Akira Yokosawa 2025-04-16 0:10 ` Paul E. McKenney 0 siblings, 1 reply; 6+ messages in thread From: Akira Yokosawa @ 2025-04-15 23:08 UTC (permalink / raw) To: paulmck; +Cc: perfbook, Akira Yokosawa [-- Attachment #1: Type: text/plain, Size: 1351 bytes --] On Tue, 15 Apr 2025 11:47:39 -0700, Paul E. McKenney wrote: > On Tue, Apr 15, 2025 at 06:04:14PM +0900, Akira Yokosawa wrote: >> Hi Paul, >> >> Mixed list of technical terms and people's names in the Index pages >> doesn't look great, especially with the growing numbers of people's >> names. >> >> Patch 2/2 splits people's names from existing general index pages into >> "Index of People". >> >> Patch 1/2 is an independent fix of a minor issue in single-level index >> pages. >> >> Thanks, Akira > > Nice, thank you, and I have queued this. > > After building perfbook.pdf twice, I have "Index of Terms" in the table > of contents, but not "Index of People". Which is fine from my viewpoint, > but thought I should check. Strange. I have pushed my local branch at: https://github.com/akiyks/perfbook/tree/test-split-index-of-people Appended is the screenshot of TOC in my build. Running "make clean" might help. Thanks, Akira > > Thanx, Paul > >> -- >> Akira Yokosawa (2): >> Fix \IXhmr and \IXalthmr for single-level index mode >> Split "Index of People" from general "Index" >> >> perfbook-lt.tex | 21 +++++++++++++-------- >> utilities/runlatex.sh | 3 ++- >> 2 files changed, 15 insertions(+), 9 deletions(-) >> >> >> base-commit: 6e66e280e548545c69dde85f8eeee400f66b4bfc >> -- >> 2.34.1 >> [-- Attachment #2: screenshot.png --] [-- Type: image/png, Size: 69530 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH perfbook 0/2] Split "Index of People" from general "Index" 2025-04-15 23:08 ` Akira Yokosawa @ 2025-04-16 0:10 ` Paul E. McKenney 0 siblings, 0 replies; 6+ messages in thread From: Paul E. McKenney @ 2025-04-16 0:10 UTC (permalink / raw) To: Akira Yokosawa; +Cc: perfbook On Wed, Apr 16, 2025 at 08:08:26AM +0900, Akira Yokosawa wrote: > On Tue, 15 Apr 2025 11:47:39 -0700, Paul E. McKenney wrote: > > On Tue, Apr 15, 2025 at 06:04:14PM +0900, Akira Yokosawa wrote: > >> Hi Paul, > >> > >> Mixed list of technical terms and people's names in the Index pages > >> doesn't look great, especially with the growing numbers of people's > >> names. > >> > >> Patch 2/2 splits people's names from existing general index pages into > >> "Index of People". > >> > >> Patch 1/2 is an independent fix of a minor issue in single-level index > >> pages. > >> > >> Thanks, Akira > > > > Nice, thank you, and I have queued this. > > > > After building perfbook.pdf twice, I have "Index of Terms" in the table > > of contents, but not "Index of People". Which is fine from my viewpoint, > > but thought I should check. > > Strange. > > I have pushed my local branch at: > > https://github.com/akiyks/perfbook/tree/test-split-index-of-people > > Appended is the screenshot of TOC in my build. > > Running "make clean" might help. And "make clean" did the trick! I should have thought of that, and thank you for bearing with me on this one. I have pushed them out. Thanx, Paul > >> -- > >> Akira Yokosawa (2): > >> Fix \IXhmr and \IXalthmr for single-level index mode > >> Split "Index of People" from general "Index" > >> > >> perfbook-lt.tex | 21 +++++++++++++-------- > >> utilities/runlatex.sh | 3 ++- > >> 2 files changed, 15 insertions(+), 9 deletions(-) > >> > >> > >> base-commit: 6e66e280e548545c69dde85f8eeee400f66b4bfc > >> -- > >> 2.34.1 > >> ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2025-04-16 0:10 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2025-04-15 9:04 [PATCH perfbook 0/2] Split "Index of People" from general "Index" Akira Yokosawa 2025-04-15 9:06 ` [PATCH perfbook 1/2] Fix \IXhmr and \IXalthmr for single-level index mode Akira Yokosawa 2025-04-15 9:13 ` [PATCH perfbook 2/2] Split "Index of People" from general "Index" Akira Yokosawa 2025-04-15 18:47 ` [PATCH perfbook 0/2] " Paul E. McKenney 2025-04-15 23:08 ` Akira Yokosawa 2025-04-16 0:10 ` Paul E. McKenney
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.