开发者

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

开发者 https://www.devze.com 2022-12-19 20:28 出处:网络
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, flo

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]?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号