blob: 0a942999dc7f2ac143fe5fd9aa4c68e00556b155 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
\documentclass{article}
\makeatletter
\def\theindex{% only for demonstration
\section*{\indexname}
\parskip\z@ \@plus .3\p@\relax \parindent\z@
\let\item\@idxitem}
\makeatother
%StartVisiblePreamble
\makeatletter
\g@addto@macro{\theindex}{%
\pagestyle{empty}%
\def\subsubsubitem{\@idxitem\hspace*{35\p@}}
\def\subsubsubsubitem{\@idxitem\hspace*{40\p@}}
}
\makeatother
\usepackage{makeidx}\makeindex
%StopVisiblePreamble
\begin{document}
foo\index{foo} bar\index{foo!bar}
baz\index{foo!bar!baz} foobar%
\index{foo!bar!baz!foobar} Kuba
\index{foo!bar!baz!foobar!Kuba}
\newpage \printindex
\end{document}
|