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?
[Tex/LaTex] How to add two pictures in a single column? How to add four pictures in a single row
graphicstwo-column
Related Solutions
Since you mentioned IEEE, in these documentclass(es) the starred versions of table
and figure
span the whole page.
To have a highlighted (colored) line, just add rowcolor{your_favorite_color}
before the line in question. To make this available, you need to load the colortbl
and the (xcolor
or color
) packages in the preamble.
In my example the lipsum
package is just necessary to generate some random text.
Here's a MWE you can try (I kept the title and author info from the downloadable template):
\documentclass[conference]{IEEEtran}
\usepackage{xcolor}% you could also use the color package
\usepackage{colortbl}
\usepackage{lipsum}
\begin{document}
\title{Bare Demo of IEEEtran.cls for Conferences}
\author{\authorblockN{Michael Shell}
\authorblockA{School of Electrical and\\Computer Engineering\\
Georgia Institute of Technology\\
Atlanta, Georgia 30332--0250\\
Email: mshell@ece.gatech.edu}
\and
\authorblockN{Homer Simpson}
\authorblockA{Twentieth Century Fox\\
Springfield, USA\\
Email: homer@thesimpsons.com}
\and
\authorblockN{James Kirk\\ and Montgomery Scott}
\authorblockA{Starfleet Academy\\
San Francisco, California 96678-2391\\
Telephone: (800) 555--1212\\
Fax: (888) 555--1212}}
\maketitle
\begin{abstract}
The abstract goes here.
\end{abstract}
\section{Table Example}
\lipsum[1]
\begin{table*}
\centering
\begin{tabular}{|c|c|c|}
\hline
\rowcolor{gray}
A & B & C\\
\hline
1 & 2 & 3\\
\hline
\end{tabular}
\end{table*}
\lipsum[2-15]
\end{document}
Adapting my answer to Is it possible to have a two-column figure caption in revtex?
\documentclass{aastex}
%\usepackage{spr-astr-addons} % I haven't it
\usepackage{url}\urlstyle{rm}
\usepackage{graphicx}
\usepackage{color}
\usepackage[caption=false]{subfig}
\usepackage{lipsum}
\captionsetup[subfigure]{position=top}
\makeatletter
\newcommand{\twocolumncaption}{\@dblarg\@twocolumncaption}
\def\@twocolumncaption[#1]#2{%
\renewcommand{\@makecaption}[2]{%
\par\vskip\abovecaptionskip\begingroup\small\rmfamily
\splittopskip=0pt
\setbox\@tempboxa=\vbox{
\@arrayparboxrestore \let \\\@normalcr
\hsize=.5\hsize \advance\hsize-1em
\let\\\heading@cr
\noindent ##1\ ##2\par% this line for aastex
}%
\vbadness=10000
\setbox\z@=\vsplit\@tempboxa to .55\ht\@tempboxa
\setbox\z@=\vtop{\hrule height 0pt \unvbox\z@}
\setbox\tw@=\vtop{\hrule height 0pt \unvbox\@tempboxa}
\noindent\box\z@\hfill\box\tw@\par
\endgroup\vskip \belowcaptionskip
}%
\setlength{\abovecaptionskip}{4ex}%
\caption[#1]{#2}%
}
\makeatother
\begin{document}
\title{Title}
\author{A. Uthor}
\affil{Somewhere}
\begin{abstract}
\lipsum[2]
\begin{description}
\item[PACS numbers] 04.50.Kd, 04.20.-q, 04.25.Nx
\end{description}
\end{abstract}
\keywords{Keywords}
\maketitle
\section{Intro}
\lipsum[1-3]
\begin{figure*}
\centering
\subfloat[]{\includegraphics[width=0.25\textwidth]{example-image}}\
\subfloat[]{\includegraphics[width=0.25\textwidth]{example-image}}\
\subfloat[]{\includegraphics[width=0.25\textwidth]{example-image}}\
\subfloat[]{\includegraphics[width=0.25\textwidth]{example-image}}\
\subfloat[]{\includegraphics[width=0.25\textwidth]{example-image}}\
\subfloat[]{\includegraphics[width=0.25\textwidth]{example-image}}\
\subfloat[]{\includegraphics[width=0.25\textwidth]{example-image}}\
\subfloat[]{\includegraphics[width=0.25\textwidth]{example-image}}\
\subfloat[]{\includegraphics[width=0.25\textwidth]{example-image}}
\twocolumncaption{%
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut,
placerat ac, adipiscing vitae, felis. Curabitur dictum gravida mauris. Nam arcu libero,
nonummy eget, consectetuer id, vulputate a, magna. Donec vehicula augue eu neque.
Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis
egestas. Mauris ut leo. Cras viverra metus rhoncus sem. Nulla et lectus vestibulum
urna fringilla.}
\end{figure*}
\lipsum
\section{Conclusion}
\lipsum
\end{document}
If the Springer style already makes the two column caption, remove the code from \makeatletter
to \makeatother
(included) and just use \caption
.
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
: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.