\documentclass{article}

% Language setting
% Replace `english' with e.g. `spanish' to change the document language
\usepackage[english]{babel}

% Set page size and margins
% Replace `letterpaper' with`a4paper' for UK/EU standard size
\usepackage[a4paper,top=2cm,bottom=2cm,left=3cm,right=3cm,marginparwidth=1.75cm]{geometry}
\usepackage[doublespacing]{setspace}

% Useful packages
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage[colorlinks=true, linkcolor=blue, citecolor=blue, urlcolor=blue]{hyperref}
\usepackage{booktabs}


% Citations using biblatex
\usepackage[backend=bibtex,natbib=true,style=authoryear]{biblatex} % Use biblatex packagge
% Use the bibtex as engin (vs. biber)
% Use natbib compatible mode
% Use authoryear style
% Add bib source
\addbibresource{bibliography.bib}


% Newcommand
\newcommand\numberthis{\addtocounter{equation}{1}\tag{\theequation}} % new command for labeling multiple equations
% See: https://tex.stackexchange.com/questions/42726/align-but-show-one-equation-number-at-the-end





\title{Your Paper}
\author{You}

\begin{document}
%\maketitle
%
%\begin{abstract}
%Your abstract.
%\end{abstract}

% Add title page

\pagenumbering{roman}   % roman numbers for page numbering

\begin{titlepage} % environment for title page, freely configurable
	\thispagestyle{empty} % no numbering for title page
	
	\begin{center}
		\includegraphics[width=10cm]{Uni-Hohenheim-Logo-Blau-EN.eps} % add a logo
	\end{center}
	
%	\vfill % vertical spacing
	\vspace*{1cm}
	
	\begin{center}
%		\vspace*{2.5cm} % creates space betweeen two paragraphs
		{\bf \Large The title of your paper \\may be more than one line} \\
		\vspace*{3cm} 
		Term paper for the \\ 
		Seminar Title \\
		of Prof. Dr. Name and Prof. Dr. Name  \\
		\vspace*{0.5cm} 
		Summer/Winter Term yyyy\\
	\end{center}
	\vfill % vertical spacing
	
%	\begin{center}
%		\includegraphics[width=10cm]{Uni-Hohenheim-Logo-Blau-EN.eps} % add a logo
%	\end{center}
%
%	\vfill
%	\vfill
	
	\begin{flushright}
		\emph{Your name} \\
		\emph{Street name and number}\\
		\emph{Postcode and place}\\
		\emph{Student Number}\\
		\emph{ Field of study}\\
	\end{flushright}
\end{titlepage}

\newpage

\tableofcontents % generates table of contents

\newpage

\listoftables % generates list of tables

\listoffigures % generates list of figures

\newpage

\pagenumbering{arabic} % numbering pages in arabic
\setcounter{page}{1} % reset the page number counter to 1

\section{Introduction}

Your introduction goes here! Simply start writing your document and use the Recompile button to view the updated PDF preview. Examples of commonly used commands and features are listed below, to help you get started.

Once you're familiar with the editor, you can find various project setting in the Overleaf menu, accessed via the button in the very top left of the editor. To view tutorials, user guides, and further documentation, please visit our \href{https://www.overleaf.com/learn}{help library}, or head to our plans page to \href{https://www.overleaf.com/user/subscription/plans}{choose your plan}.

\section{Some examples to get started}\label{Sec_01}

\subsection{How to create Sections and Subsections}\label{Sec_0101}

Simply use the section and subsection commands, as in this example document! With Overleaf, all the formatting and numbering is handled automatically according to the template you've chosen. If you're using Rich Text mode, you can also create new section and subsections via the buttons in the editor toolbar.

You can also add a label to a section, i.e., Section \ref{Sec_01} and \ref{Sec_0101}.

\subsection{How to include Figures}

First you have to upload the image file from your computer using the upload link in the file-tree menu. Then use the includegraphics command to include it in your document. Use the figure environment and the caption command to add a number and a caption to your figure. See the code for Figure \ref{Fig_01} in this section for an example.

Note that your figure will automatically be placed in the most appropriate place for it, given the surrounding text and taking into account other figures or tables that may be close by. You can find out more about adding images to your documents in this help article on \href{https://www.overleaf.com/learn/how-to/Including_images_on_Overleaf}{including images on Overleaf}.

\begin{figure}[htp]
	\centering
	\includegraphics[width=0.3\textwidth]{frog.jpg}
	\caption{A random figure of a frog}
	\label{Fig_01}
\end{figure}

\subsection{How to add Tables}

Use the table and tabular environments for basic tables --- see Table~\ref{Tab_01}, for example. For more information, please see this help article on \href{https://www.overleaf.com/learn/latex/tables}{tables}. 

\begin{table}
	\centering
	\begin{tabular}{lr}
		\toprule
		Item & Quantity \\
		\midrule
		Widgets & 42 \\
		Gadgets & 13 \\
		\bottomrule
	\end{tabular}
	\caption{First random table}
	\label{Tab_01}
\end{table}

\subsection{How to add Comments and Track Changes}

Comments can be added to your project by highlighting some text and clicking ``Add comment'' in the top right of the editor pane. To view existing comments, click on the Review menu in the toolbar above. To reply to a comment, click on the Reply button in the lower right corner of the comment. You can close the Review pane by clicking its name on the toolbar when you're done reviewing for the time being.

Track changes are available on all our \href{https://www.overleaf.com/user/subscription/plans}{premium plans}, and can be toggled on or off using the option at the top of the Review pane. Track changes allow you to keep track of every change made to the document, along with the person making the change. 

\subsection{How to add Lists}

You can make lists with automatic numbering \dots

\begin{enumerate}
\item Like this,
\item and like this.
\end{enumerate}
\dots or bullet points \dots
\begin{itemize}
\item Like this,
\item and like this.
\end{itemize}

\subsection{How to write Mathematics}

\LaTeX{} is great at typesetting mathematics. Let $X_1, X_2, \ldots, X_n$ be a sequence of independent and identically distributed random variables with $\text{E}[X_i] = \mu$ and $\text{Var}[X_i] = \sigma^2 < \infty$, and let 
%
\[S_n = \frac{X_1 + X_2 + \cdots + X_n}{n}
= \frac{1}{n}\sum_{i}^{n} X_i\] 
%
% % compare to align  
%\begin{align*}
%	S_n &= \frac{X_1 + X_2 + \cdots + X_n}{n} \\
%	    &= \frac{1}{n}\sum_{i}^{n} X_i
%\end{align*}      
%      
denote their mean. Then as $n$ approaches infinity, the random variables $\sqrt{n}(S_n - \mu)$ converge in distribution to a normal $\mathcal{N}(0, \sigma^2)$.

\subsection{How to change the margins and paper size}

Usually the template you're using will have the page margins and paper size set correctly for that use-case. For example, if you're using a journal article template provided by the journal publisher, that template will be formatted according to their requirements. In these cases, it's best not to alter the margins directly.

If however you're using a more general template, such as this one, and would like to alter the margins, a common way to do so is via the geometry package. You can find the geometry package loaded in the preamble at the top of this example file, and if you'd like to learn more about how to adjust the settings, please visit this help article on \href{https://www.overleaf.com/learn/latex/page_size_and_margins}{page size and margins}.

\subsection{How to change the document language and spell check settings}

Overleaf supports many different languages, including multiple different languages within one document. 

To configure the document language, simply edit the option provided to the babel package in the preamble at the top of this example project. To learn more about the different options, please visit this help article on \href{https://www.overleaf.com/learn/latex/International_language_support}{international language support}.

To change the spell check language, simply open the Overleaf menu at the top left of the editor window, scroll down to the spell check setting, and adjust accordingly.

\subsection{How to add Citations and a References List}

You can simply upload a \verb|.bib| file containing your BibTeX entries, created with a tool such as JabRef. You can then cite entries from it, like this: \citet{Greenwade1993}. Just remember to specify a bibliography style, as well as the filename of the \verb|.bib|. You can find a \href{https://www.overleaf.com/help/97-how-to-include-a-bibliography-using-bibtex}{video tutorial here} to learn more about BibTeX.

If you have an \href{https://www.overleaf.com/user/subscription/plans}{upgraded account}, you can also import your Mendeley or Zotero library directly as a \verb|.bib| file, via the upload menu in the file-tree.

\subsection{Good luck!}

We hope you find Overleaf useful, and do take a look at our \href{https://www.overleaf.com/learn}{help library} for more tutorials and user guides! Please also let us know if you have any feedback using the Contact Us link at the bottom of the Overleaf menu --- or use the contact form at \url{https://www.overleaf.com/contact}.

\section{Some content related to econometrics}

\subsection{Table}

Table \ref{Tab_02} shows some random table.

\begin{table}[htp]
	\centering
	\begin{tabular}{lcccc}
		\toprule
		1st column & 2nd column & 3rd column & 4th column & \\
		\midrule
		1st row & value $1$ & value $2$ & value $3$ \\
		2nd row & value $4$ & value $5$ & value $6$ \\
		$\vdots$ & $\vdots$ & $\vdots$ & $\vdots$ \\
		\bottomrule
	\end{tabular}
	\caption{Second random table}
	\label{Tab_02}
\end{table}

\subsection{Figure}

Figure \ref{Fig_02} shows the real USD GDP from 1990 to 2021.

\begin{figure}[htp]
	\centering
	\includegraphics[scale=0.5]{gdp_01.pdf}
	\caption{Quarterly seasonally adjusted real US GDP from 1990 to 2021}
	\label{Fig_02}
\end{figure}

\subsection{Math Expressions}

This is an inline mathematical notation: $Y_{t}$

This is an equation without label using the \texttt{equation} environment:

\begin{equation*}
Y_{t} = \phi Y_{t-1} + w_{t} 
\end{equation*}

This is an equation with a label using the \texttt{equation} environment:

\begin{equation}\label{Equ_01}
Y_{t} = \phi Y_{t-1} + w_{t} 
\end{equation}

Equation \ref{Equ_01} shows a first-order stochastic difference equation.

These are multiple equations alinged without a label using the \texttt{align} environment:

\begin{align*}
Y_{t} &= \phi^{Y} Y_{t-1} + w^{Y}_{t} \\
X_{t} &= \phi^{X} X_{t-1} + w^{x}_{t}
\end{align*}

These are multiple equations alinged with a label using the new command \texttt{numberthis} defined in the preamble and the \texttt{align} environment:

\begin{align*}
Y_{t} &= \phi^{Y} Y_{t-1} + w^{Y}_{t} \numberthis \label{Equ_02} \\
X_{t} &= \phi^{X} X_{t-1} + w^{x}_{t} \numberthis \label{Equ_03}
\end{align*}

Equation \ref{Equ_02} and \ref{Equ_03} show two first-order stochastic difference equations.

\subsection{Citations}

% If author appear in ongoing text
\citet{Wooldridge2019} and \citet{StockWatson2020} is the textbook for the lecture in "Introductory Econometrics" and "Econometric Methods in Business and Economics", respectively. 
% If author appears not in ongoing text (2n citation)
\citet{NeweyWest1986} showed that under fairly general assumptions the HAC estimator is a consistent estimator of the variance of $\widehat{\beta}_{1}$. \citep[see,][p. 623]{StockWatson2020}


\newpage

% Add biblography list
\addcontentsline{toc}{section}{References} % add references to table of content

\printbibliography


\newpage 

% Add appendix
\appendix

\section{Appendix}

% Insert a another Figure
\begin{figure}[htp]
	\centering
	\includegraphics[scale=0.5]{gdp_02.pdf}
	\caption{Quarterly seasonally adjusted real US GDP growth from 1990 to 2021}
	\label{Fig_03}
\end{figure}

% Inserting another table
\begin{table}[htp]
	\centering
	\begin{tabular}{lcr}
		\toprule
		A & small & table \\
		\midrule
		text left & centered & or right \\
		\multicolumn{2}{c}{over two columns} & third column \\
		\bottomrule
	\end{tabular}
	\caption{Third random table}
	\label{Tab_03}   
\end{table}


\end{document}