<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">% Copyright 2011 Barbara Beeton &lt;tex-live@tug.org&gt;
% You may freely use, modify and/or distribute this file.
%
% This is the minimal version that reproduces the bug.
% Some commented-out lines are some variations.
% For all the details, see nested-range-bb.tex.
%
\documentclass{article}

\makeindex

\begin{document}
\index{bad range|(}%
%\index{ok range|(}%
start.

\newpage
\index{bad range|(}%
second page.

\index{bad range|)}%
%\index{ok range|)}%
close.

\end{document}

\index{bad range|)}%
second close.

\index{bad range|)}%
third close.

\end{document}
</pre></body></html>