I am very happy with tufte-book 3.0 and so far managed to adjust small
things such that it fits my needs for writing a thesis.
I use the tufte-book style with the definition:
\documentclass[eighttenpaper,twoside,symmetric,justified]{tufte-book}
where eighttenpaper is a customization of the paper width to
8.25"-by-10.75" paper.
Recently, I started running into problems with figure placement
though. Marginfigures work well and normal figure environments have
their caption displayed in the margin. This is ok, but sometimes the
caption and figure placement is flipped left-right, that is, the caption
is not placed in the margin but on the opposing side. Vice verse, the
figure is not where the main body is located but covers part of the body
and the full margin.
For figure* environments, the same thing can happen but then the
figure and its caption is placed as before but shifted by the margin width.
I attached two screenshots of how the result looks like. Any ideas how
to overcome this problem?
Thanks,
Sebastian
It looks like the odd/even page detection stuff isn't working quite
right. I think this is an underlying LaTeX problem, but I'll
double-check my code to be sure.
The first thing I would try is to run pdfLaTeX (or whichever engine
you're using) on your .tex file again. That may fix the problem. (It
boils down to the same sort of problem that's sometimes encountered
with \marginpars.)
This weekend I'll write a command that you can add to your figure
environment to force the odd/even flag (for cases where the
autodetection fails). I'm also going to try to add a command to allow
you to choose the vertical alignment (top or bottom) of the caption.
Since I haven't found a way to detect where the float actually ends up
(I've heard it's impossible to detect this, but I haven't given up
hope yet), the logic used in aligning the captions vertically is
pretty lame. Basically, if you pass [b] and only [b] as the float
placement option, it'll bottom-align the caption, otherwise it'll
top-align the caption.
Anyway, I'll work on some code this weekend and let you know how it goes.
--Kevin
sorry for the late reply.
Kevin Godby wrote:
> > [...]
> It looks like the odd/even page detection stuff isn't working quite
> right. I think this is an underlying LaTeX problem, but I'll
> double-check my code to be sure.
>
> The first thing I would try is to run pdfLaTeX (or whichever engine
> you're using) on your .tex file again. That may fix the problem. (It
> boils down to the same sort of problem that's sometimes encountered
> with \marginpars.)
This indeed helped.
I now run this sequence (before I only ran pdflatex twice after
makeindex, now I run it three times):
pdflatex thesis.tex
bibtex thesis
makeindex thesis.idx
pdflatex thesis.tex
pdflatex thesis.tex
pdflatex thesis.tex
All the figures and table environments seem correctly placed now. Only
the index at the end of the book is slightly misplaced.
Thanks for all the efforts,
Sebastian
I recently added three new commands to force the placement of the
captions: \forcerectofloat, \forceversofloat, and \setfloatalignment.
I've attached a copy of the documentation for these new commands.
I'd appreciate it if a few of you could try out the new commands and
also make sure I didn't break any of the float/caption stuff.
Also, I'm not completely happy with the current command names, so if
anyone has any suggestions there, please let me know.
Thanks!
--Kevin