I'm using the acm latex template for journals available here: http://www.acm.org/publications/authors/submissions
This follows a one-column format. Now I have 8 images, which I want to be displayed with captions in the following pattern:
I don't know how to get this format using subfigure or any other way.
\documentclass[format=acmsmall, review=false, screen=true]{acmart}
\usepackage{subcaption}
\usepackage{array}
\usepackage{varwidth}
\usepackage{lipsum}
\begin{document}
\title[This is a Title]{This is a title}
\maketitle
\section{Introduction}
\lipsum[2-4]
\begin{center}
\begin{minipage}{0.5\columnwidth}
\includegraphics[width=\linewidth]{pam}
\captionof{figure}{}
\end{minipage}
\end{center}
\begin{center}
\begin{minipage}{0.5\columnwidth}
\includegraphics[width=\linewidth]{jam}
\captionof{figure}{}
\end{minipage}
\end{center}
.
.
.
.
\end{document}
Best Answer
With the
subcaption
package, asubfigure
environment is aminipage
environment, with the added capability of processing\caption
and\label
statements.