# Setting the same distance from the top of the page for chapter and index titles

I noticed that the distance from the top of the page to the chapter title differs from the table of contents and list of <> ones. I can see why, as these elements have specific purposes and semantics in a document:

I have a document in which this distance should be the very same, for project reasons. The following code refers to the previous image:

\documentclass[a4paper,oneside]{book}
\usepackage[useindex]{splitidx}
\newindex[List of Foo]{iof}
\makeindex

\begin{document}
\chapter*{Bar}

Hi there\sindex[iof]{Bar}

\chapter*{Foo}

Hi there\sindex[iof]{Foo}

\printindex*

\end{document}


Chapters could have the same distance of the table of contents / lists of <> or vice versa. I'm stuck with this issue. Any ideas?

-
I also noticed that different line spacing with the setspace changes the upper margin :-(. I normally use \singlespacing for ToC etc. but need to have larger spacing for the main content of my thesis. – Martin Scharrer Jul 17 '11 at 14:50
@Martin: I didn't noticed that! Thanks for mentioning it. =) – Paulo Cereda Jul 17 '11 at 15:08
@Paulo: I changed the question title because an index is not a ToC. – lockstep Jul 17 '11 at 15:13
@lockstep: Thanks, it looks way better now. =) – Paulo Cereda Jul 17 '11 at 15:16

You have stumbled upon LaTeX bug 3126 (\twocolumn interfering with \topskip). Load my idxlayout package (which uses multicol) to avoid the bug.

\documentclass[a4paper,oneside]{book}

\usepackage{splitidx}
\makeindex

\usepackage{idxlayout}

\begin{document}

\chapter*{Foo}

Hi there!\index{Foo}

\printindex*

\end{document}

-
Thanks, lockstep! I'll read the idxlayout documentation, seems very interesting. – Paulo Cereda Jul 17 '11 at 14:56
In imakeidx we redefine theindex to use multicols so the problem doesn't show. – egreg Jul 17 '11 at 15:18
@egreg: The same is true for idxlayout. – lockstep Jul 17 '11 at 15:20
I should have known. Of course this has the advantage that the final page has balanced columns. – egreg Jul 17 '11 at 15:25