If I include [p]
in the placement specifier of a \begin{figure}
environment, figure floats may be placed on a dedicated page. However, at 开发者_StackOverflowleast in the "book" document class, floats are centered vertically on those pages.
How do I force all "pages-o-floats" to be aligned to the top margin (just like normal text pages)?
I believe your answer is in the UK TeX FAQ:
\@fptop defines the distance from the top of the page to the top of the first float
The simple fix is to reset \@fptop in your preamble:
\makeatletter
\setlength{\@fptop}{0pt}
\makeatother
However, you might find that this is a bit too high, so you might want something like 5pt instead. (Anyway, the FAQ entry is well worth reading; it explains in more depth what's going on than I am here.)
can you not use the [t]
specifier instead of [p]
?
精彩评论