[Tex/LaTex] include graphics overlapping figures, (sig-alternate.tex) format

floatsgraphicspositioningtwo-column

I have several images that span the entire length of the two-column sig-alternate format I am using. I would like to avoid images on the same page from overlapping. How can I achieve this? I am using \includegraphics command. The graphics are in an appendix page on a page by themselves with no other text or anything else. How do I avoid this overlapping behavior? I would really appreciate a concrete code example as I am really new to LateX and am very unfamiliar with all the nuances that go into spacing and content arrangement on a page.

Thanks in advance!

Well the code I am using is :

\documentclass{sig-alternate}
\usepackage{graphicx}
\usepackage{array}
\usepackage{caption}
\usepackage{csvsimple}
\usepackage[utf8]{inputenc}

\begin{document}

\includegraphics[scale=0.4]{5_day_slidingwindow_binHR}
\includegraphics[scale=0.4]{10_day_slidingwindow_binHR}
\includegraphics[scale=0.4]{15_day_slidingwindow_binHR}
\includegraphics[scale=0.4]{20_day_slidingwindow_binHR}
\includegraphics[scale=0.4]{25_day_slidingwindow_binHR}
\includegraphics[scale=0.4]{30_day_slidingwindow_binHR}
\hspace*{0.2cm}\includegraphics[scale=0.3]{ArticleLifetimeHist}

\end{document}

Best Answer

Without the original images and some output, I guess that just one or more images on the left are bigger that the width of the column because the option [scale=0.4], so that they are covered by the image of the right column.

Try with [width=\linewidth]. In this MWE, the images A is wrongly scaled to the 70% and therefore is covered with the image "1x1". The images "B" and "C" fit well to the column width, so images are not covered by the images on the right:

MWE

\documentclass{sig-alternate}
\usepackage{graphicx}
\begin{document}
\noindent\includegraphics[width=1.2\linewidth]{example-image-a}
\includegraphics[width=\linewidth]{example-image-b}
\includegraphics[width=\linewidth]{example-image-c}
\includegraphics[width=\linewidth]{example-image-1x1}
\includegraphics[width=\linewidth]{example-image-golden-upright}
\end{document}

Edit:

If only a figure must span the entire width of the page, as stated in the comments, one you must keep in mind that the page will be filled with text and raw images in sequential order, with exception of the floats, following the two-column layout, so your options are:

(a) Use wider image-s of [width=\textwidth] in the left column, then a \clearpage (= nothing on the right column).

(b) If the image will be placed in pages without two-column text, switch to a \onecolumn (this mean a new page), place the images with [width=\textwidth] or [width=\columnwidth] or [width=\linewidth] (there are not differences in this case) and use \twocolumn to return to default text pages with two columns (this command mean also a new page).

c) Use the figure* environment. This float take the space of both columns without overlapping text or another images, but note that floats are intended to provide automatic positioning according to several LaTeX rules: This mean that the image may jump one or more pages. In the case of figure* floats, they will never show up on the page where they are encountered.

An example showing all these options:

enter image description here

\documentclass{sig-alternate}
\usepackage{graphicx}
\begin{document}
\onecolumn %switch to one colum mode 

% image width = \columwidth that now = \textwidth
\noindent\includegraphics[width=\columnwidth]{example-image-a}

\twocolumn % return to two-column mode 

% image intrude the right column
\noindent\includegraphics[width=\textwidth]{example-image-a}

\clearpage % right column empty

% image not intrude the right column
\noindent\includegraphics[width=\linewidth]{example-image-a}

\includegraphics[width=\textwidth]{example-image-b}

% image width = \columwidth that now is NOT \textwidth
\includegraphics[width=\columnwidth]{example-image-c}

% a figure float that take two columns but in the next page
\begin{figure*}
\includegraphics[width=\linewidth]{example-image-a}
\caption{This is the figure A}
\end{figure*}

\clearpage 

% a figure float that take one column
\begin{figure}
\includegraphics[width=\linewidth]{example-image-b}
\caption{This is the figure A}
\end{figure}

\end{document}