4

I'm learning latex now in college, and I've tried everything I found on the internet but it is not working. I'm making a conference paper, that has two columns. I want to insert image that will occupy the space of the columns. So far this is what it looks like: http://prntscr.com/4xgnzm

I have this code about the images:

 \usepackage{graphicx}
 \graphicspath{ {images/} }

and inside the document is this:

\begin{figure}[h]
\includegraphics{latexPic}
\caption{\bf {\large Overview of the integrity discovery system using secure introspection}}
\end{figure}

Can someone tell me how to format the image so the text is around it and the image is inside the two column space? PS. This is the first time I am posting here, and I apologize if something isn't according to the rules. EDIT: I cut as much of the text as I could, but now the problem can't be seen(the image appearing below the text).Anyway here is the code:

\documentclass[10pt, conference]{IEEEtran}
\usepackage{graphicx}
\graphicspath{ {images/} }

\begin{document}
\IEEEoverridecommandlockouts
\IEEEpubid{\makebox[\columnwidth]{ \copyright 2009 ACM 978-1-60558-784-4/09/11...\$10.00 \hfill}
\hspace{\columnsep}\makebox[\columnwidth]{ }}

\maketitle
\begin{abstract}
\section*{\raggedright{\bf{ABSTRACT}}}
Cloud infrastructure commonly relies on virtualization. Customers

\end{abstract}

\section*{\raggedright{\bf{\Large{1. INTRODUCTION}}}}
Cloud computing holds significant promise to improve the deployment
and management of services by allowing the efficient 
\IEEEpubidadjcol
sharing of hardware resources. In a typical cloud scenario, a user
\section*{\raggedright{\bf{\Large{3. OVERVIEW OF OUR ARCHITECTURE}}}}
Ensuring integrity in a running operating system is a daunting
\begin{figure}[h]
\includegraphics{latexPic}
\caption{\bf {\large Overview of the integrity discovery system using secure     introspection}}
\end{figure}
challenge, and one that has been explored for a long time in the
research community. In a system running on real hardware, all integrity
checks need to be done from within the system being monitored,
which inevitably raises the question of how to verify the
\end{document}
10
  • 1
    Welcome to TeX.SE. Please help us to help you and add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}.
    – skpblack
    Oct 18 '14 at 21:14
  • The cuted package might help: it has a strip environment,that temporarily interrupts a two-column setting to place objects full width.
    – Bernard
    Oct 18 '14 at 21:18
  • It isn't clear exact;y what you want or where your problem is, but you may want \includegraphics[width=\columnwidth]{latexPic} so the image scales to the column, don't use [h] unless you want the figure to float to the end (it mainly acts to prevent t op b ottom or p (float) position so makes it hard for latex to position the figure. don't put formatting such as bf` and \large in the caption argument (messes up the list of figures), if you want the figure full width use \begin{figure*} Oct 18 '14 at 21:32
  • don't use bf in latex2e and don't put formatting in section arguments (unrelated to your figure placement) Oct 18 '14 at 21:33
  • 2
    The formatting of section headings is a choice of the document class, you can change it (eg with titlesec package) but normally if you are using a conference proceedings style you should not do that, the whole point of the class is to enforce the house style on all the articles Oct 18 '14 at 21:44
6

Perhaps something like this, I include teh figure both as a single column figure and as a double column figure spreading across the next page.

I also removed all formatting commands from inside section heads, and removed the "manual" section numbering.

\documentclass[10pt, conference]{IEEEtran}
\usepackage[demo]{graphicx}% so it makes black blobs
\graphicspath{ {images/} }

\title{something}
\author{you}
\begin{document}
\IEEEoverridecommandlockouts
\IEEEpubid{\makebox[\columnwidth]{ \copyright 2009 ACM 978-1-60558-784-4/09/11...\$10.00 \hfill}
\hspace{\columnsep}\makebox[\columnwidth]{ }}

\maketitle
\begin{abstract}
Cloud infrastructure commonly relies on virtualization. Customers
\end{abstract}

\section{INTRODUCTION}
Cloud computing holds significant promise to improve the deployment
and management of services by allowing the efficient 
\IEEEpubidadjcol
sharing of hardware resources. In a typical cloud scenario, a user
\section{OVERVIEW OF OUR ARCHITECTURE}

Ensuring integrity in a running operating system is a daunting
\begin{figure}[bhp]
\includegraphics[width=\columnwidth]{latexPic}
\caption{Overview of the integrity discovery system using secure     introspection}
\end{figure}
challenge, and one that has been explored for a long time in the
research community. In a system running on real hardware, all integrity
checks need to be done from within the system being monitored,
which inevitably raises the question of how to verify the

Ensuring integrity in a running operating system is a daunting
\begin{figure*}[tp]
\includegraphics[width=\textwidth]{latexPic}
\caption{Overview of the integrity discovery system using secure     introspection}
\end{figure*}
challenge, and one that has been explored for a long time in the
research community. In a system running on real hardware, all integrity
checks need to be done from within the system being monitored,
which inevitably raises the question of how to verify the

\end{document}
1
  • Thank you so much. I used the second \begin{figure*} and it worked perfectly.
    – Scarlet
    Oct 18 '14 at 21:50
0

Other way is following the @Bernard's indication. In addition i added the caption package for fine tuning the captions moreover of the command \captionof{...}{...} to put captions outside of tables or figures. I think you should put something like

\usepackage{cuted}
\usepackage{caption}
\captionsetup[figure]{textfont={bf,large}}

in the preamble, and insert the figure like

\begin{strip}
\includegraphics[width=\linewidth]{latexPic}
\captionof{figure}{Overview of the integrity discovery system using secure introspection}
\end{strip}
0

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.