1

I am writing a paper with the IEEEconf template using texmaker/miktex in windows. When including the first figure :

\begin{figure}[!t]
\centering
\includegraphics[scale=1]{./figures/figure}
\caption{figure cap}
\label{label}
\end{figure}

I end up with the figure occupying the space before the abstract, at the very beginning of the paper, which is neither pretty, nor acceptable. I tried to look up for solving that issue on the internet, because I thought is must be very common and did not find anything.

How should I deal with this ? Are there any options that I can stack to \begin{figure} ?

4
  • most implementations of \maketitle prevent figures at the top of the title page but you could use \usepackage{flafter} to force figures never to float backwards Feb 18, 2016 at 18:02
  • 1
    oh you have used ! which says to ignore the constraints, so even if the class specifies no top floats on the first page you have over-ridden that. Don't add ! to the option except in very special circumstances. Feb 18, 2016 at 18:07
  • I tried \usepackage{flafter} but without removing !, it worked anyways
    – MaximGi
    Feb 18, 2016 at 18:10
  • yes they work in different ways, flafter changes the float algorithm so floats never move top the top of the page where they are specified. ! in an option says to ignore the numeric constraints, It is almost always wrong to use ! Feb 18, 2016 at 18:11

1 Answer 1

2

Most implementations of \maketitle prevent figures at the top of the title page.

however you have used ! which says to ignore the constraints, so even if the class specifies no top floats on the first page you have over-ridden that. Don't add ! to the option except in very special circumstances.

Alternatively you could use \usepackage{flafter} to force figures never to float backwards.

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.