1

I'm using IEEE conference style spconf.sty

My question is, how to place a figure in the absolute top position in a page, and leaving no space on the top or left or right.

For example, the figure below:

the red area is the original figure.

How do I span it to blue area? Or green area? enter image description here

The current code for the figure is:

\begin{figure*}[!t]
 \centering
 \includegraphics[width=0.8\textwidth]{figures/aaa}
 \caption{aaa}
 \label{aaa}
\end{figure*}
  • If this is for a conference, don't do it. They may decide to add a header. If not, you can use \makebox[\textwidth][c]{\vskip*{\dimexpr -1in-\topmargin-\headheight-\headsep}...} – John Kormylo Apr 18 '18 at 15:00
  • @JohnKormylo This is for conference, but they wont't add anything in the header, so it is okay. Where should I insert this code? – Nathan Explosion Apr 19 '18 at 12:23
1

There appears to be a slight gap left. It is smaller than \topskip or \dblfloatsep or \dbltextfloatsep, so it probably isn't deliberate.

\documentclass[conference]{IEEEtran}
\usepackage{graphicx}
\usepackage{lipsum}

\begin{document}
\begin{figure*}[tp]% AFAICT, adding ! does nothing useful
 \vspace*{\dimexpr -1in-\topmargin-\headheight-\headsep}%
 \makebox[\textwidth]{%
   \includegraphics[width=\paperwidth]{example-image}}
 \caption{aaa}% do not put inside \makebox
 \label{aaa}
\end{figure*}

\lipsum[1-16]
\end{document}
  • Really thanks, this could work.. BTW, how to make it to show on the bottom of the page? – Nathan Explosion Apr 20 '18 at 13:34
  • The dblfloatfix package will enable [b]. You will also have to move the \vspace to the bottom of the figure* environment. – John Kormylo Apr 20 '18 at 14:44

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.