I am using MikTex,pdfLaTex, WinXP_SP3. I want to create an index including foreign letters in correct alphabetical order. Using Xindy seems like a lot of hassle, so I would like to avoid it. How can I manually change the index file (.ind
) after it is created, setting the entries in the correct alphabetical order?
I am going to answer my own question.
The preamble contains
\usepackage{imakeidx}
%\usepackage{makeidx}
\makeindex[columns=3, intoc]
I have tried using makeidx
, but it didn't work so I changed to imakeidx
.
At the end of the file there is
\clearpage
\printindex
With this setup, an index file is created and printed, but with all words starting with foreign characters at the front, which is incorrect.
Open the .ind
file with notepad. Manually copy-paste the incorrectly placed entries into proper places, adding \indexspace
entries as required. (This is easier done in wordpad, actually). Now make the following changes to the preamble:
%\usepackage{imakeidx}
\usepackage{makeidx}
%\makeindex[columns=3, intoc]
The otherwise failed makeidx now prints the manually altered index file. Even the TOC entry of the index remains. Job done.