15

I am writing an IEEEtran article. I use graphicx for inserting .pdf images. Normally, LaTeX selects a position like A. I want LaTeX automatically find and insert the image to a position like B. How can I do that? This is my code:

\usepackage{graphicx}
\begin{document}
\begin{figure}
  \centering
  % Requires \usepackage{graphicx}
  \includegraphics{Figures/Fig1.pdf}\\
  \caption{hi}\label{hi}
\end{figure}
\end{document}

enter image description here

  • <<There is no bottom area for page-wide floats in two-column mode>> from tex.stackexchange.com/questions/39017/… – touhami Mar 28 '15 at 20:09
  • @touhami So we can't do this in LaTeX? – user2991243 Mar 28 '15 at 20:14
  • @user2991243 - What \documentclass are you using? – AboAmmar Mar 28 '15 at 20:55
  • @AboAmmar \documentclass[conference,hidelinks]{IEEEtran} – user2991243 Mar 28 '15 at 21:46
  • @user2991243 - Please see my answer. – AboAmmar Mar 28 '15 at 23:39
18

You need to use the starred version of the {figure*} environment to enable the figure occupy the two columns. Besides, you also need to load the dblfloatfix package (download from here), which is necessary for placing the figure in the bottom of the page. It allows you the use either of the options [tbp]. Here is a MWE:

\documentclass[conference,hidelinks]{IEEEtran}
\usepackage{dblfloatfix}    % To enable figures at the bottom of page
\usepackage[demo]{graphicx} % [demo] option for empty figure
\usepackage{kantlipsum}     % for random text

\begin{document}
\section{Introduction}
\kant[1-5]
\begin{figure*}[!b]
    \centering
    \includegraphics{MyFigure}
    \caption{My Figure in Two Columns}
\end{figure*}
\kant[6-11]
\end{document}

Which outputs the following:

enter image description here

-1

Here is a solution

\documentclass{article}
\usepackage[pdftex]{graphicx}
\usepackage{multicol}
\begin{document}
\begin{multicols}{2}
test
\end{multicols}
\begin{figure}[htp]
  \centering
  \includegraphics{Figures/Fig1.pdf}\\
  \caption{hi}\label{hi}
\end{figure}
\end{document}

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.