I have the problem, that I need to insert some external pates in my thesis. After that I start a new section and want to add a (floating) figure.

The problem is that the figure is not set here as I defined (\begin{float}[htp]). Instead it is always set on a separate page as far as I can see.

I will give an example.

The file to be included (Call it includefile.tex or modify the other file later and run pdflatex on it.):

\title{This is just a simple sample file}

The main file:

Here comes some simple text.

    \caption{A simple picture.}

This should come after the figure.

You will see, that the black box is typeset on the forth page. Although there is clearly enough space on the third page.

If you just diable the input of the external PDF file (comment out line 8), you will get the expected result.

How to place the figure generally correct? Is this a problem of pdfpages?

I do know of the possibilty to use the float package and the H modifier. The is not what I want to do because this should be done automatically. I have it in an user defined macro for easy modification of e.g the appearence. Therefore setting to H would lead to multiple changes in the text, which is what I would like to avoid.

  • 1
    Good question! However, I would not call it "breaks the algorithm", more "changes [htp] to [p] with floats in the queue. If you use [!t] placement, everything works as expected. – yo' Feb 20 '13 at 12:52



With the ! TeX can ignore the parameters for floats, eg amount of text per page, aso

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.