Possible Duplicate:
Table in LaTeX appearing in middle of next page
I'm triying to make an image appear on top, but only works if I have some text, otherwise, the image appears at the center (vertical alignement). If I only put the image, I can make it appear on top, but if I add some text (leaving no space for the image in that page), the image appears on the next page, but at the center. I been looking into many forums and I didn't find an answer yet ... I'm losing my mind, because I need to put every image on top (even if it's alone on a page).
Here's a minimal example:
\documentclass[lettersize,oneside,11pt]{book}
\usepackage{graphicx}
\usepackage{blindtext} % for dummy text
\begin{document}
\blindtext
\blindtext
\blindtext
\begin{figure} [htbp]
\includegraphics[width=0.8\columnwidth]{figure xx}
\caption{figure xx}
\label{fig:figure xx}
\end{figure}
\end{document}
My image is a PNG file and if you run this example with any image, you will notice that the text is on the first page, and the image on the second one vertically centered. But I want to have it on top.
I tried [t], [!t], [!ht], ... all combinations I guess without good results.
\makeatletter \setlength{\@fptop}{0pt} \makeatotherseems to move the figure to the top. – Peter Grill Mar 29 '12 at 00:04floatpackage's\begin{figure}[H]\end{figure}command. – Apr 06 '18 at 05:22