Possible bug in makexindex

Ulrike Fischer news3 at nililand.de
Wed Aug 7 17:19:00 CEST 2024


Am Wed, 7 Aug 2024 15:04:02 +0000 schrieb Lars Madsen via tex-live:

I would say it is a bug in makeindex.

Note that it works as expected with upmendex (this needs
--shell-escape as upmendex is not in the restricted list):

\begin{filecontents*}[overwrite]{simple.ist}
item_1 "\n \\subitem (item\\_1) "
item_01 "\n \\subitem (item\\_01) "
item_x1 "\n \\subitem (item\\_x1) "
\end{filecontents*}
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{imakeidx}
\makeatletter 
\def\imki at progdefault{upmendex}
\makeatother
\makeindex[columns=1, options=-s simple.ist]
\begin{document}
\section{Section 1}
\index{aaa}
\index{aaa!bbb}
\index{aaa!ccc}
\index{ddd}
\index{ddd!eee}
\index{ddd!fff}
\index{ccc!fff}

% delete the next four lines to the the expected output

\newpage
\section{Section 2}
\index{aaa} % erase the item_01 behaviour ?
\index{aaa!bbb}
\index{ccc!fff}

\printindex
\end{document}



-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/



More information about the tex-live mailing list.