\documentclass[a4paper,
               %boxit,        % check whether paper is inside correct margins
               %titlepage,    % separate title page
               %refpage       % separate references
               %biblatex,     % biblatex is used
               keeplastbox,   % flushend option: not to un-indent last line in References
               %nospread,     % flushend option: do not fill with whitespace to balance columns
               %hyphens,      % allow \url to hyphenate at "-" (hyphens)
               %xetex,        % use XeLaTeX to process the file
               %luatex,       % use LuaLaTeX to process the file
               ]{jacow}

\usepackage{caption, subcaption}
\usepackage{lipsum}

\begin{document}
\title{Usage of \NoCaseChange{\texttt{package subcaption}} and \NoCaseChange{\texttt{subfigure}}
		in \NoCaseChange{JACoW} class}

\author{V. RW Schaa\thanks{v.r.w.schaa@gsi.de}, GSI, Darmstadt, Germany}

\maketitle

\begin{abstract}
	\lipsum[6]
\end{abstract}

\lipsum[6]

\begin{figure}[!bth]
    \captionsetup[subfigure]{labelformat=empty}
	\centering
    \begin{subfigure}[h]{\columnwidth}
    	\includegraphics*[width=\textwidth]{fig1}
        \vspace*{-2\baselineskip}
    	\caption{\label{fig:ScannerHead}}
    \end{subfigure}
    \begin{subfigure}[h]{\columnwidth}
    	\includegraphics*[width=\textwidth]{fig2}
        \vspace*{-2\baselineskip}
    	\caption{\label{fig:CamConnector}}
    \end{subfigure}
	\caption{Special case without separate caption for subfigure (a) and (b) placed vertically, \texttt{\textbackslash caption} just used for label placement. Therefore the negative spacing to move both subfigures together.}
\end{figure}


\lipsum[6]
\begin{figure}[!h]
	\centering
  \begin{subfigure}[h]{0.46\columnwidth}
		\includegraphics*[width=\textwidth]{fig3}
		\caption{Subfigure with caption text.}
		\label{fig:BeamPosBAL}
	\end{subfigure}
	\hspace{0.02\textwidth}
	\begin{subfigure}[h]{0.46\columnwidth}
		\includegraphics*[width=\textwidth]{fig4}
		\caption{Subfigure with caption text.}
		\label{fig:BeamPosUnbal}
	\end{subfigure}
  \caption{Two subfigures with standard caption text placed horizontally.}
  \label{fig:SampleData}
\end{figure}

\lipsum[8]

Morbi luctus, wisi viverra faucibus pretium, nibh est placerat
odio, nec commodo wisi enim eget quam. Quisque
libero justo, consectetuer a, feugiat vitae, porttitor eu, libero.
Suspendisse sed mauris vitae elit sollicitudin malesuada.
Maecenas ultricies eros sit amet ante. Ut venenatis velit.
Maecenas sed mi eget dui varius euismod. Phasellus aliquet
volutpat odio. Vestibulum ante ipsum primis in faucibus
orci luctus et ultrices posuere cubilia Curae; Pellentesque sit
amet pede ac sem eleifend consectetuer. Nullam elementum,
urna vel imperdiet sodales, elit ipsum pharetra ligula, ac
pretium ante justo a nulla. Curabitur tristique arcu eu metus.
Vestibulum lectus. Proin mauris. Proin eu nunc eu urna
hendrerit faucibus. Aliquam auctor, pede consequat laoreet.

\end{document}
