<div style="color:black;font: 12pt Arial, Helvetica, sans-serif;"><span style="color: blue;">Many thanks Herbert, it worked like a charm. D. W. Jones</span><br>
<br>
<br>
<div style="font-family:helvetica,arial;font-size:10pt;color:black">-----Original Message-----<br>
From: Herbert Voss <Herbert.Voss@fu-berlin.de><br>
To: Djones9976 <djones9976@aol.com>; texhax <texhax@tug.org><br>
Sent: Sun, Mar 15, 2020 4:16 pm<br>
Subject: Re: Capitalization of index entries<br>
<br>
<div dir="ltr"><br clear="none">
<div class="yqt6984899205" id="yqtfd18021"><br clear="none">Am 15.03.20 um 22:03 schrieb Djones9976 via texhax:<br clear="none">> I completed a manuscript for a book making entries for words I wanted <br clear="none">> to index using the command \index{xxxxx} or \index{Xxxxx} if I wanted <br clear="none">> to capitalize the word in the index. Now I find that the generally <br clear="none">> accepted rule is to capitalize all words whether they are capitalized <br clear="none">> in the text or not. Is there a way that I can correct all my <br clear="none">> \index{xxxxx} entries to read \index{Xxxxx} without changing them one <br clear="none">> by one?</div>
<br clear="none">><br clear="none"><br clear="none">\documentclass{article}<br clear="none">\usepackage{makeidx}\makeindex<br clear="none">\let\myIndex\index<br clear="none">\makeatletter<br clear="none">\renewcommand\index[1]{\<a shape="rect" ymailto="mailto:index@i" rel="noopener noreferrer" href="mailto:index@i">index@i</a>#1\@nil}<br clear="none">\def\<a shape="rect" ymailto="mailto:index@i" rel="noopener noreferrer" href="mailto:index@i">index@i</a>#1#2\@nil{\myIndex{\MakeUppercase{#1}#2}}<br clear="none">\makeatother<br clear="none">\def\foobar{foobar}% only for demo<br clear="none">\begin{document}<br clear="none"><br clear="none">foo\index{foo \foobar} bar\index{a nice bar} baz\index{Baz}<br clear="none"><br clear="none">\printindex<br clear="none">\end{document}
<div class="yqt6984899205" id="yqtfd26416"><br clear="none"></div>
</div>
</div>
</div>