[Tex/LaTex] How to add two pictures in a single column? How to add four pictures in a single row

graphicstwo-column

I am doing a paper for an ACM conference and I want to add some graphics pictures. I want to add two pictures in a single column and four pictures in single row. How is it possible?

Best Answer

There should be nothing tricky about this. You could just string them next to one another in a figure environment. Scaling to fit within the column is done using a fraction of \columnwidth:

enter image description here

\documentclass[twocolumn]{article}
\usepackage{graphicx,lipsum}% http://ctan.org/pkg/{graphicx,lipsum}
\begin{document}
\section{A section}
\lipsum[1]

\begin{figure}
  \centering%
    \includegraphics[width=.45\linewidth]{example-image-a}\hfill%
    \includegraphics[width=.45\linewidth]{example-image-b}%
    \caption{A figure caption}
\end{figure}

\lipsum[2-3]

\begin{figure}
  \centering%
    \includegraphics[width=.23\linewidth]{example-image-a}\hfill%
    \includegraphics[width=.23\linewidth]{example-image-b}\hfill%
    \includegraphics[width=.23\linewidth]{example-image-c}\hfill%
    \includegraphics[width=.23\linewidth]{example-image-a}\hfill%
    \caption{A figure caption}
\end{figure}

\lipsum[4-5]
\end{document}

If you wish to have the (sub)figures numbered, then a little more work is required. If you wish to have the images span multiple columns, then you could use multicol which, again, would require a little more work.