Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to align "pages of floats" to the top margin?

Tags:

latex

If I include [p] in the placement specifier of a \begin{figure} environment, figure floats may be placed on a dedicated page. However, at least 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)?

like image 895
akaihola Avatar asked Feb 09 '10 13:02

akaihola


1 Answers

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.)

like image 121
uckelman Avatar answered Oct 14 '22 12:10

uckelman