Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I insert a figure in to my document using code like below, right after 2 tables in a page.

\begin{figure}[htbp]
\centering
\includegraphics[with=350mm, bb=0 0 1350 743]{path/to/figure.png}
\caption{Caption for it}
\label{label for it}
\end{figure}

This surely inserts the figure into the document in a new page, but is placed at the bottom of the page, and I am trying to put it on the top or at least the center of the page, since it would be the last page of a chapter. But the [htbp] settings are not working at all. What should I do to deal with this figure?

Update: I made a minimal working example and paste it here. I am not using the package of float actually because it is not working for me, but I put it in this example.

\documentclass[a4paper,12pt]{report}

\usepackage{graphicx}
\usepackage{float}
\usepackage{amsmath,amssymb}
\usepackage{bm}
\usepackage{layout}
\begin{document}
\tableofcontents
\newpage
\chapter{EXPERIMENTS}
In this chapter the results for the tests and experiments are presented.

...for words before this figure.

\begin{figure}[H]
\centering
\includegraphics[bb=0 0 1166 693, width=30cm]{figs/result3.png}
\caption{Result for Matrix Multiplications: Time for Multiplication and Data Transfer}
\label{result3}
\end{figure}

\end{document}

And the figure result3.png is 1166 by 693 with 19.4KB. Is there anyone can tell me why this figure keeps staying at the bottom of the page please?

share|improve this question

migrated from stackoverflow.com Feb 11 '14 at 17:45

This question came from our site for professional and enthusiast programmers.

    
Thanks Thomas but it does not work for me. I have googled around for answers and neither the [htbp] nor the float package with [H] works for me. That is why I am here asking question... –  Khaos Gao Feb 10 '14 at 19:22
    
Figure placement relies heavily on what else is going on in your document, including what the actual float contains. So it's difficult to say what you can do. You should create a minimal working example (MWE) that replicates the problem and allows the community to copy-and-paste and compile to see what your problem is. –  Werner Feb 10 '14 at 22:46
    
Werner thank you for your link, I have made one but the community requires 5 reputation for asking a question, but my documents deadline is tomorrow. Should I ask it here? –  Khaos Gao Feb 11 '14 at 9:46

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.