Graphics, Figures & TablesPicture not positioned properly

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
bazman
Posts: 78
Joined: Mon Jan 26, 2009 3:24 am

Picture not positioned properly

Post by bazman »

Hi there,

On page 18 of the attached document I havea figure that appears on its own in the center of the page.

I slected position "t" but it still appears in the middle?

Please let me know how to move it to the top of P18.
Attachments
Transfer Panel Document2.tex
(103.81 KiB) Downloaded 351 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Re: Picture not positioned properly

Post by josephwright »

This is not a minimal example! Remember that LaTeX makes a series of calculations when placing fonts. Just putting "t" does not force LaTeX to do that. Perhaps you want "t!" ( = really at the top). Even then, it still might not work if there are other floats causing problems.
Joseph Wright
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Picture not positioned properly

Post by localghost »

You should be aware of the fact that one single parameter is always overwritten by the compiler (see log file). A posteriori I would recommend [!ht].


Best regards
Thorsten
rf
Posts: 21
Joined: Mon Jul 20, 2009 5:27 pm

Picture not positioned properly

Post by rf »

josephwright wrote:This is not a minimal example! Remember that LaTeX makes a series of calculations when placing fonts. Just putting "t" does not force LaTeX to do that. Perhaps you want "t!" ( = really at the top). Even then, it still might not work if there are other floats causing problems.
note that if the figure is too big, it won't go at the top of a
page, regardless. (constraint is, picture must be at most
\topfraction * \textheight.) if the figure only has a "t"
qualifier, and can't be placed as such because of the constraint,
it will go on the list of unplaceable floats, and be placed, as a "p"
float when next a \clearpage (or equivalent, such as
\end{document}) happens.

looking at the op's example, there's the alternative possibility
that a preceding float has been deemed unplaceable. if a figure
is unplaceable, no other figure will be placed until the stuck one
is (typically at \clearpage or...).

http://www.tex.ac.uk/cgi-bin/texfaq2html?label=floats
gives a recipe for avoiding this sort of problem, but there's
more i need to do in that area (the actual meaning of all the
parameters would help). in particular, i want to explain what
"!" does (and more importantly, doesn't) do; and _that_ will
involve me re-reading the latex output routine, which is
indigestible at best. (it contains lots of comments, of the
form "lots changed here". left to myself, i would delete all
of those...)
Post Reply