Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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:

My explanation

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?

share|improve this question
    
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
add comment

1 Answer

up vote 7 down vote accepted

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}
share|improve this answer
    
Thanks, lockstep! I'll read the idxlayout documentation, seems very interesting. –  Paulo Cereda Jul 17 '11 at 14:56
1  
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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.