%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% A template for CUP Elements article submissions.
% Developed by Overleaf.
%
% Please note that whilst this template provides a
% preview of the typeset manuscript for submission, it
% will not necessarily be the final publication layout.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass{cup-elements}
\usepackage{blindtext}
\usepackage{multirow}
\usepackage{graphicx}
%% Use APA style for author-year citation scheme for submission
\usepackage[natbibapa]{apacite}
\bibliographystyle{apacite}
%% Use these lines if you're using the IEEE numerical style
% \bibliographystyle{IEEEtran}
% \let\citep\cite
% \let\citet\cite
%% If you wish to load hyperref, please ensure it's loaded after all other packages except cleveref
% \usepackage{hyperref}
\CUPseries{Series Name}
\CUPelements{Elements Name}
\title{CUP Elements Sample \LaTeX{} Template and Brief Instructions}
\subtitle{This is a subtitle just for testing purposes}
\author{Writing Author One}
\affil{University Affiliation One}
\author{Writing Author Two}
\affil{University Affiliation Two}
\author{Writing Author Three}
\affil{University Affiliation Three}
\author{Writing Author Four}
\affil{University Affiliation Four}
\begin{document}
%%%%-----------------------
\frontmatter %% DO NOT DELETE
%%%%-----------------------
\maketitle
\begin{abstract}
% \blindtext
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
\end{abstract}
\keywords{Foo, bar, baz; foo; bar; baz; foo; bar; baz; foo; bar; baz; foo; bar; baz; foo; bar; baz; foo; bar; baz}
\JEL{A12, B34, C56, D78, E90}
\copyrightauthor{Author One, Author Two, Author Three, 2018}
%%%%-----------------------
\mainmatter %% DO NOT DELETE
%%%%-----------------------
\blinddocument
This is a quote or an extract.
\begin{quote}
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
\end{quote}
\begin{table}
\caption{An example table. The use of \texttt{tabularx} to set tables to text width is recommended. Wrapped lines are indented 1em. Use \texttt{\textbackslash addnote} and \texttt{\textbackslash addsource} for adding short notes and sources; \texttt{\textbackslash topdblline} and \texttt{\textbackslash bottomdblline} for the top and bottom double lines.}
\begin{tabularx}{\textwidth}{llXX}
\topdblline
& \multicolumn{3}{c}{\textbf{Comparison of two categories}}\\
\cline{2-4}
%
& & \textbf{High} & \textbf{Low} \\
\cline{2-4}
\multirow{4}{*}{Ratione dolorum} &
High & Quod aut molestiae dolor laborum & Maiores possimus sunt expedita \\
& & Quod aut molestiae dolor laborum & Maiores possimus sunt expedita \\
\cline{2-4}
& Low & Ratione dolorum illum deleniti & Itaque sed nihil odio dolorem accusantium odi \\
& & Ratione dolorum illum deleniti & Itaque sed nihil odio dolorem accusantium odi \\
\bottomdblline
\end{tabularx}
\addnote{These are the table notes. These are the table notes. These are the table notes. These are the table notes. These are the table notes. These are the table notes.}
\addsource{\citep{urmson2008autonomous,lees2010theoretical}}
\end{table}
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor \citet{geiger2012we}, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse \citet{leesother} cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor \citet{geiger2012we}, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse \citet{leesother} cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
\begin{boxedtext}{The Title e.g. Technical Discussion}
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
\end{boxedtext}
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor \citet{geiger2012we}, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse \citet{leesother} cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
\paragraph{A Fourth Level Heading}
\blindtext
\begin{equation}
\bar x = \frac{1}{n}\sum_{i=1}^{i=n} x_i = \frac{x_1 + x_2 + \dots{} + x_n}{n}
\end{equation}
\begin{figure}
\centering
\includegraphics[width=.8\textwidth]{example-image}
\caption{An example figure}
\addnote{These are the figure notes. These are the figure notes. These are the figure notes.}
\addsource{These are the figure sources.}
\end{figure}
\blindtext
\begin{equation}
\int_0^\infty e^{-\alpha x^2} \mathrm{d}x =
\frac12\sqrt{\int_{-\infty}^\infty e^{-\alpha x^2}}
\mathrm{d}x\int_{-\infty}^\infty e^{-\alpha y^2}\mathrm{d}y =
\frac12\sqrt{\frac{\pi}{\alpha}}
\end{equation}
\section{This is a very long title to see how it behaves in the table of contents}
\blindtext\blindtext
%%%%-----------------------
\appendix %% DO NOT DELETE
%%%%-----------------------
Even if you do not have any appendices, you \emph{must} still add \verb|\appendix| before your Acknowledgements section and reference list.
\section{Heading on Level 1}
\blindtext
\begin{equation}
\sum_{k=0}^\infty a_0q^k = \lim_{n\to\infty}\sum_{k=0}^n a_0q^k =
\lim_{n\to\infty} a_0\frac{1-q^{n+1}}{1-q} = \frac{a_0}{1-q}
\end{equation}
\blindtext\blindtext
\subsection{Heading on Level 2}
\blindtext
\begin{align}
& x_{1,2}=\frac{-b \pm \sqrt{b^2-4ac}}{2a} = \frac{-p \pm \sqrt{p^2-4q}}{2}\\
& \frac{\partial^2 \Phi}{\partial x^2} + \frac{\partial^2 \Phi}{\partial y^2} +
\frac{\partial^2 \Phi}{\partial z^2} =
\frac{1}{c^2}\frac{\partial^2\Phi}{\partial t^2}
\end{align}
\Blindtext
\bibliography{refs}
\section*{Acknowledgements}
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
\end{document}