Paper template (2 col)
Author
Jenna Iori
Last Updated
3 years ago
License
Creative Commons CC BY 4.0
Abstract
This is a template for writing a paper or a report with text over 2 columns.
\documentclass[twocolumn, fontsize=10pt]{article}
\usepackage[margin=0.70in]{geometry}
\usepackage{lipsum,mwe,abstract}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{fancyhdr} % Custom headers and footers
\pagestyle{fancyplain} % Makes all pages in the document conform to the custom headers and footers
\fancyhead{}
\fancyfoot[C]{\thepage} % Page numbering for right footer
\usepackage{lipsum}
\setlength\parindent{0pt}
\usepackage{amsmath,amsfonts,amsthm} % Math packages
\usepackage{wrapfig}
\usepackage{graphicx}
\usepackage{float}
\usepackage{subcaption}
\usepackage{comment}
\usepackage{enumitem}
\usepackage{cuted}
\usepackage{sectsty} % Allows customizing section commands
\allsectionsfont{\normalfont \normalsize \scshape} % Section names in small caps and normal fonts
\renewenvironment{abstract} % Change how the abstract look to remove margins
{\small
\begin{center}
\bfseries \abstractname\vspace{-.5em}\vspace{0pt}
\end{center}
\list{}{%
\setlength{\leftmargin}{0mm}
\setlength{\rightmargin}{\leftmargin}%
}
\item\relax}
{\endlist}
\makeatletter
\renewcommand{\maketitle}{\bgroup\setlength{\parindent}{0pt} % Change how the title looks like
\begin{flushleft}
\textbf{\@title}
\@author \\
\@date
\end{flushleft}\egroup
}
\makeatother
%% -------------------------------------------------------------------
\title{
\Large Title of the document \\
[10pt]
}
\date{\today}
\author{Name - Student number}
\begin{document}
\twocolumn[ \maketitle ]
% --------------- ABSTRACT
\begin{abstract}
\lipsum[1]
\end{abstract}
\rule{\linewidth}{0.5pt}
% --------------- MAIN CONTENT
% If you want to put a big figure over two columns, you can use \begin{figure*}
% The figure will be sent on top of the next page
\begin{figure*}
\centering
\includegraphics[width=0.9\textwidth]{Dummy_fig.png}
\caption{Caption}
\end{figure*}
% You can also use the following command, but it can be more tricky to place the figure exactly where you want
% \begin{strip}
% \centering\noindent
% \includegraphics[width=0.9\textwidth]{Dummy_fig.png}
% \captionof{figure}{Caption}
% \end{strip}
\section{Introduction}
\lipsum[2]
\begin{equation} % Example of optimization equation
\begin{tabular}{c c c}
minimize & $f(x)$ & $x \in \mathbb{R} $\\
subject to & $g(x)\leq 0 $& \\
& $h(x) = 0$& \\
\end{tabular}
\end{equation}
\lipsum[1]
\section{Section title}
\lipsum[1-2]
\begin{figure}[H]
\centering
\includegraphics[height=4cm]{Dummy_fig.png}
\caption{Caption}
\end{figure}
\lipsum[1]
\section{Section title}
\lipsum[1-2]
\section{Conclusion}
\lipsum [4-5]
\begin{thebibliography}{}
\bibitem{Ref1}{First reference}
\bibitem{Ref2}{Second reference}
\bibitem{Ref3}{Third reference}
\end{thebibliography}
\end{document}