1

I am using following code to put a wide figure in a two column document. But it put the figure at the end of document

 \begin{figure*}
    \centering
    \includegraphics[width=\textwidth]{Structure_dimensions.eps}
    \caption{Dimensions of cube}
    \label{fig_dimensions}
 \end{figure*}

Question: How can I specify the placement of figure e.g. I want to put figure on top of second page and continue two column text beneath the figure.

Thanks in advance

  • 4
    welcome to tex.sx. where is the input code for this figure* located in the file? it must be present before latex starts processing the second page; the input code should preferably be placed between two paragraphs. – barbara beeton Oct 26 '16 at 1:55
  • How tall is the figure? Aside: Because the width of the graph is \textwidth, the \centering instruction is redundant and may be omitted. – Mico Oct 26 '16 at 17:02
2

(too long for a comment, hence posted as an answer)

As barbara beeton has already pointed out in a comment, LaTeX must "encounter" the code for the figure* environment before the start of the page on which the float is supposed to be placed. This condition is satisfied in the following example:

\documentclass[twocolumn]{article}
\usepackage{lipsum} % for filler text
\usepackage[demo]{graphicx} % omit 'demo' option in real doc.
\begin{document}

\lipsum[1-3] % filler text -- starts and ends on p. 1

\begin{figure*} % this float will be placed at top of p. 2
  \includegraphics[width=\textwidth]{Structure_dimensions.eps}
  \caption{Dimensions of cube}
  \label{fig_dimensions}
\end{figure*}

\lipsum[4-12] % more filler text -- starts on p. 1, continues to p. 2

\end{document}

The LaTeX kernel provides a parameter called \dbltopfraction; its default value is 0.7, which means that in a two-column document only up to 70% of the (top of the) page may be occupied by floats. Should your figure* env. be taller than this, LaTeX will either try to place the float on a page all by itself or, if that's somehow disabled, place the float at the end of the document. Is your figure* document possibly taller than 0.7\textheight?

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.