tufte-book with multiple-page index, second index page shifted

431 views
Skip to first unread message

Sebastian Nowozin

unread,
Jul 24, 2009, 8:09:27 AM7/24/09
to tufte-latex

Hello everybody,

thanks a lot for all the effort you put into the tufte-latex class and
the user support. Because of Kevin's repeated help I am now nearing
completion of my PhD thesis using the tufte-book style.

There is only one problem remaining right now: the second page of the
index has an additional margin, see here.
http://www.nowozin.net/tufte/index-1.png
http://www.nowozin.net/tufte/index-2.png

As you can see, on the second index page the index is indented by the
Tufte margin width, although it should still be in a fullwidth
environment. Usually, I would expect the index-2.png to be layouted
identical to index-1.png.

Here is how my document is created.

1. I had to make some changes to the tufte-common.sty in order to
prepare it for printing on 8.25"-by-10.75" paper, which are these:

\newboolean{@tufte@eighttenpaper}
\DeclareOption{eighttenpaper}{\setboolean{@tufte@eighttenpaper}{true}}

% 209.55mm x 273.05mm (8.25" by 10.75")
\ifthenelse{\boolean{@tufte@eighttenpaper}}
{\geometry
{paperwidth=8.25in,paperheight=10.75in,left=24.0mm,top=27.4mm,headsep=2\baselineskip,textwidth=120.0mm,marginparsep=8.2mm,marginparwidth=49.4mm,textheight=44\baselineskip,headheight=
\baselineskip}}
{}

2. The main document has the following documentclass command:
\documentclass[eighttenpaper,twoside,symmetric,justified]{tufte-book}

3. The index is build with makeidx and printindex:
\usepackage{makeidx}
% ... include all chapters here
\makeindex
% ...
\cleardoublepage
\printindex

4. The document is build with the command sequence:
pdflatex thesis.tex
bibtex thesis
makeindex thesis.idx
pdflatex thesis.tex
pdflatex thesis.tex
pdflatex thesis.tex

Could it be that this is an incompatibility between the tufte-common
style and the makeidx package?

Thanks a lot,
Sebastian

Kevin Godby

unread,
Jul 24, 2009, 4:48:29 PM7/24/09
to tufte...@googlegroups.com
Hello, Sebastian.

I'm glad to hear your PhD thesis is progressing so well!

I'm guessing that the problem with the index is in the fullwidth
environment. TeX doesn't like us adjusting the left and right margins
on the fly and we have to cheat a bit to achieve the effect. It works
for small bits of text, but we run into problems when the text
straddles a page break. The odd/even page detection routine can break
down at that point sometimes.

You might try removing the fullwidth environment and reducing the
number of columns to 2 -- see if that works out. Just add this to the
preamble of your document:

\makeatletter
\renewenvironment{theindex}
{%
\small%
\ifthenelse{\equal{\@tufte@class}{book}}%
{\chapter{\indexname}}%
{\section*{\indexname}}%
\parskip0pt%
\parindent0pt%
\let\item\@idxitem%
\begin{multicols}{2}%
}
{\end{multicols}%
}
\makeatother

Otherwise, I haven't had too much luck yet with using the fullwidth
environment for text that straddles page breaks.

--Kevin

Sebastian Nowozin

unread,
Jul 25, 2009, 5:41:00 AM7/25/09
to tufte-latex

Kevin,

thank you so much for the quick reply. This modification indeed works
as expected and I do not mind whether the index is a two- or three-
column index.

Thanks,
Sebastian
Reply all
Reply to author
Forward
0 new messages