%%% Here is the class with everything we need, if you don't want, you don't have to take a look at it, as it will probably cover your needs by far. These three options are used after the class article, which this template is based in.
% Twoside will act as an special parameter, because if the document is twosided indeed, headers and footers will be adapted in consequence.
% I recently added the language parameter to change it more easily, so the label of all theorems are redefined accordingly, depending on which is used. Disclaimer: only available for Catalan, English and Spanish. If no language is selected, English is enforced.
% \documentclass[a4paper,12pt,oneside,catalan]{all-in-one} %% ONESIDE
\documentclass[a4paper,12pt,twoside,english]{all-in-one} %% TWOSIDE
% Here is the font I usually use, it can be changed of course.
% In that case, these next two lines have to be deleted.
\usepackage{ebgaramond}
% Equations have the same font.
\usepackage[cmintegrals,cmbraces,ebgaramond]{newtxmath}
\doctitle{Subject}
\docsubtitle{Document Title}
\author{Author 1 \\ \texttt{ID} \and Author 2 \\ \texttt{ID} \and Author 3 \\ \texttt{ID} \and Author 4 \\ \texttt{ID}}
% A text that goes into the footer. You can even include a logo. It can be left blank, too.
%% Option 1: \footext{\includegraphics[width=2em]{titlepage.png}}
%% Option 2: \footext{\copyright\ \the\year by Cookie Monster}
% What I usually use:
\footext{}
% Don't comment the command below if it's not of much inconvenience, please!
\greetings
% Licensing on every page? Comment if you don't want it.
% \licensing
% Last things
\input{preamble}
% Dummy text
\usepackage{lipsum}
\begin{document}
% Interlineate, it can be changed.
\setlength{\baselineskip}{.70cm}
\begin{titlepage}
\maketitle\vfill
\centering\includegraphics[width=20em]{titlepage.png}
\doclicenseThis
% Very important, regarding page numbering. Keep in mind differences between oneside and twoside
\thispagestyle{empty}
\end{titlepage}
% Table of contents
\thispagestyle{plain}
\tableofcontents
\newpage
\pagestyle{\defaultsettings}
\section{Introduction}
\lipsum[1-3]
\begin{equation}\label{eq:hello}
\frac{\partial f}{\partial x}(x,y)=\text{hello}
\end{equation}
\subsection{Subsection}
\lipsum[4-8] \eqref{eq:hello}
\section{Other}
\lipsum[10-13]
\section{Another}
\begin{enumerate}
\item \lipsum[14]
\item \lipsum[15]
\end{enumerate}
% Theorem environments
\begin{theorem}
\lipsum[16]
\end{theorem}
\begin{proof}
\end{proof}
\begin{corollary}
\lipsum[16]
\end{corollary}
\begin{definition}
\lipsum[16]
\end{definition}
\begin{remark}
\lipsum[16]
\end{remark}
\begin{exercise}
\lipsum[16]
\end{exercise}
\begin{proof}[Solution]
\lipsum[17]
\end{proof}
\clearpage
% Appendixes
\appendix
\section{Appendix}
\begin{figure}[!ht]
\centering
\includegraphics[width=\textwidth]{image.png}
\caption{Caption of the photo.}
\label{fig:myimage}
\end{figure}
% Bibliography
\clearpage
\pagestyle{\auxsettings}
\printbibliography[heading=bibintoc]
\end{document}