% !TEX TS-program = pdflatex
% !TEX encoding = UTF-8 Unicode
% for TeXworks 

\documentclass[12pt]{article}
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{graphicx,psfrag,epsf}
\usepackage{enumerate}
\usepackage{booktabs}
\usepackage{natbib}
\usepackage{url} 
\usepackage[title]{appendix}

% DON'T change margins - should be 1 inch all around.
\addtolength{\oddsidemargin}{-.5in}%
\addtolength{\evensidemargin}{-.5in}%
\addtolength{\textwidth}{1in}%
\addtolength{\textheight}{1.3in}%
\addtolength{\topmargin}{-.8in}%


\begin{document}

% Create new command to set spacing 
\def\spacingset#1{\renewcommand{\baselinestretch}%
{#1}\small\normalsize} 
\spacingset{1} % set spacing 


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

  \title{\bf Using \LaTeX{} for Articles}
  \author{Daniela Irgendwer\thanks{
    The authors gratefully acknowledge \ldots}\hspace{.2cm}\\
    {\normalsize Department of Statistics,University of XXX} \\[1.5ex]
    and \\[1.5ex]
    Gustav Anybody\thanks{Corresponding author, \texttt{gustav.anybody@gmail.com}} \\
    {\normalsize Department of Economics, University of WWW} }
  \maketitle


\bigskip
\begin{abstract}
LoLorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. 
\end{abstract}

\noindent%
{\it Keywords:}  3 to 6 keywords, that do not appear in the title 
\vfill

\newpage
\spacingset{1.45} % DON'T change the spacing!


\section{Introduction}
\label{sec:intro}

Body of paper.  Margins in this document are roughly 0.75 inches all
around, letter size paper.

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. 

\begin{itemize}
\item Please refer to the instructions for authors
at \url{http://amstat.tandfonline.com/action/authorSubmission?journalCode=ubes20&page=instructions#}
\item For more about ASA\ style, please see \url{http://journals.taylorandfrancis.com/amstat/asa-style-guide/}
\item If you have supplementary material (e.g., software, data, technical
proofs), identify them in the section below.  In early stages of the
submission process, you may be unsure what to include as supplementary
material.  Don't worry---this is something that can be worked out at later stages.
\item At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. 
\item At vero eos et accusam et justo duo dolores et ea rebum. 
\end{itemize}


\section{Methods}
\label{sec:meth}
Don't take any of these section titles seriously.  They're just for
illustration.

\begin{figure}
\begin{center}
\includegraphics[width=0.3\linewidth]{DonaldKnuth}
\end{center}
\caption{A hero \ldots. \label{fig:first}}
\end{figure}

\begin{table}
\caption{D-optimality values for design $X$ under five different scenarios.  \label{tab:tabone}}
\begin{center}
\begin{tabular}{rrrrr} \toprule
one & two & three & four & five\\\midrule
1.23 & 3.45 & 5.00 & 1.21 & 3.41 \\
1.23 & 3.45 & 5.00 & 1.21 & 3.42 \\
1.23 & 3.45 & 5.00 & 1.21 & 3.43 \\ \bottomrule
\end{tabular}
\end{center}
\end{table}

Note that figures and tables (such as Figure~\ref{fig:first} and
Table~\ref{tab:tabone}) should appear in the paper, not at the end or
in separate files. 
\section{Results}
\label{sec:verify}

This section will be just long enough to illustrate what a full page of
text looks like, for margins and spacing \citep{Lamport1994}.


\cite{MRW1992} and \citet{Heckman_2008} dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus $a^2 + b^2 = c^2$ est Lorem ipsum dolor sit amet.   

\begin{equation}
a^2 + b^2 = c^2
\end{equation}

Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.   

Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.   

Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facerdiam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.   

\section{Conclusion}
\label{sec:conc}

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.


\spacingset{1} % set spacing 

\bibliographystyle{chicago}
\bibliography{LaTeX_literaturDB}

\clearpage
\begin{appendices}

\section{Data and Tables}

Here some Text \ldots with reference to Table \ref{tab:tabtwo}.

\begin{table}[h]
\caption{Some data  \label{tab:tabtwo}}
\begin{center}
\begin{tabular}{rrrrr} \toprule
one & two & three & four & five\\\midrule
1.23 & 3.45 & 5.00 & 1.21 & 3.41 \\
1.23 & 3.45 & 5.00 & 1.21 & 3.42 \\
1.23 & 3.45 & 5.00 & 1.21 & 3.43 \\ \bottomrule
\end{tabular}
\end{center}
\end{table}
Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. 

\section{Proofs}
At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. 

\section{Programcode}
Here comes the code \ldots
\begin{verbatim}
# R-package for downloading data from WDI databank (World Bank)
# install.packages(WDI)
library(WDI)
WDIsearch('life expect')

# Life expectancy and GNI per capita
LE1 <- WDI(country="all", indicator=c("SP.DYN.LE00.IN","NY.GNP.PCAP.KD"), 
    start=2015, end=2015, extra=TRUE)

LE1 <- subset(LE1, select = c("iso3c", "SP.DYN.LE00.IN","NY.GNP.PCAP.KD", 
    "region", "income"))

names(LE1)
names(LE1) <- c("iso3", "LE", "GNIpC", "region", "income")
\end{verbatim}
\end{appendices}

\end{document}
