\documentclass[12pt]{article}

\newcommand{\blind}{0}

\usepackage[sort]{natbib}
\usepackage{multirow}
\usepackage{graphics}
\usepackage{pdflscape} 
\usepackage[clean]{svg}
\usepackage[shortlabels]{enumitem}
\usepackage[autostyle]{csquotes}  
\usepackage[latin1]{inputenc}
\usepackage{arydshln}
\usepackage{times}
\usepackage{mathtools}
\usepackage[section]{placeins}
\usepackage{multirow}
\usepackage{xr}
\usepackage{tabulary}
\usepackage{tabularx}
\usepackage{epstopdf}
\usepackage{tikz}
\usepackage{siunitx}
\usepackage{multirow,tabulary,tabularx,booktabs,caption,fixltx2e, rotating,siunitx,threeparttable,dcolumn,setspace,bm,url,abstract,titlesec,float}
\usepackage{booktabs,caption,fixltx2e, rotating}
\usepackage{threeparttable}
\usepackage{dcolumn}
\usepackage{setspace}
\usepackage{lmodern}
\usepackage{amsthm,amsmath,amssymb,mathtools}
\usepackage{graphicx,hyperref,amsfonts}
\usepackage{bm,url,abstract,setspace,titlesec,float}
\usepackage{amsmath}
\usepackage{indentfirst, microtype, rotating, enumitem}
\usepackage[left=1in, right=1in, top=1.5in, bottom=1.5in]{geometry}%
\usepackage[bottom]{footmisc}
\usepackage[USenglish]{babel}
\usepackage{comment}

\usepackage[useregional]{datetime2}
\DTMlangsetup[en-US]{showdayofmonth=false}

\usepackage[style=apa, sortcites=true,sorting=nyt,backend=bibtex,
doi=false,isbn=false,url=false,eprint=false, maxcitenames=3]{biblatex}
\addbibresource{bib.bib}    


%This package makes sure the PDF opens at 100% zoom
\hypersetup{pdfstartview={XYZ null null 1.00}}
%This package left aligns the captions of tables and figures, and makes their numbers bold
\usepackage[singlelinecheck=false, format=plain, justification=centerfirst,  labelfont=bf,  textfont={small}]{caption}
%This package lets me fiddle around with table and figure counters
\usepackage{chngcntr}
%No more pesky spaces between some list items
\setlist[1]{nolistsep}
\usepackage{adjustbox}
\usepackage{xcolor}
%This package should take references to the top of the table
\usepackage{caption}
\hypersetup{
	colorlinks,
	linkcolor={red!50!black},
	citecolor={blue!90!blue},
	urlcolor={blue!80!black}
}

% Some code to allow for multiple footnote references in a row with hyperlinks
\let\oldFootnote\footnote
\newcommand\nextToken\relax

\renewcommand\footnote[1]{%
	\oldFootnote{#1}\futurelet\nextToken\isFootnote}

\newcommand\isFootnote{%
	\ifx\footnote\nextToken\textsuperscript{,}\fi}

\usepackage{sectsty}
% \sectionfont{\clearpage} %this will create break between each section
%This adds dashes
\usepackage{extdash}
\usepackage{mdframed}    
\newmdenv[skipabove=8mm]{kotak} 

\newcommand{\red}[1]{{\color{red} #1}}
\newcommand{\blue}[1]{{\color{blue} #1}}
\newcommand{\mc}[3]{\multicolumn{#1}{#2}{#3}}

\newcolumntype{L}[1]{>{\raggedright\let\newline\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{C}[1]{>{\centering\let\newline\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{R}[1]{>{\raggedleft\let\newline\\arraybackslash\hspace{0pt}}m{#1}}

\newcommand\sym[1]{\rlap{$^{#1}$}}

\setlength{\tabcolsep}{5pt}     % General space between columns (6pt standard)
\def\arraystretch{0.90}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%---------------------------CUSTOMIZED TABLES - STATA-------------------------------------------------------%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% *****************************************************************
% Estout related things
% *****************************************************************

\let\estinput=\input% define a new input command so that we can still flatten the document

\newcommand{\estwide}[3]{
	\vspace{.75ex}{
		\begin{tabular*}
			{\textwidth}{@{\hskip\tabcolsep\extracolsep\fill}l*{#2}{#3}}
			\toprule
			\estinput{#1}
			\bottomrule
			\addlinespace[.75ex]
		\end{tabular*}
	}
}	

\newcommand{\estauto}[3]{
	\vspace{1.75ex}{
		\begin{tabular*}{\columnwidth}{ @{\hspace{\tabcolsep}\extracolsep\fill}lccccccccccccccccccc*{#2}{#3}}
			\toprule 
			\estinput{#1}
			\bottomrule 
			\addlinespace[1.75ex]
		\end{tabular*}
	}
}

\newcommand{\estautox}[3]{
	\vspace{.75ex}{
		\begin{tabular*}{\columnwidth}{ @{\hspace{\tabcolsep}\extracolsep\fill}lSSSSSSSSSSSSSSSSSSSSSS*{#2}{#3}}
			\toprule 
			\estinput{#1}
			\bottomrule 
			\addlinespace[.75ex]
		\end{tabular*}
	}
}


% Allow line breaks with \\ in specialcells
\newcommand{\specialcell}[2][c]{%
	\begin{tabular}[#1]{@{}c@{}}#2\end{tabular}}


% *****************************************************************
% Custom subcaptions
% *****************************************************************
% Note/Source/Text after Tables
\newcommand{\figtext}[1]{
	\vspace{-1.9ex}
	\captionsetup{justification=justified,font=footnotesize}
	\caption*{\hspace{6pt}\hangindent=1.5em #1}
}
\newcommand{\fignote}[1]{\figtext{\emph{Note:~}~#1}}

\newcommand{\figsource}[1]{\figtext{\emph{Source:~}~#1}}

% Add significance note with \starnote
\newcommand{\starnote}{\figtext{* p < 0.1, ** p < 0.05, *** p < 0.01. Standard errors in parentheses.}}

% *****************************************************************
% siunitx
% *****************************************************************
\usepackage{siunitx} % centering in tables
\sisetup{
	detect-mode,
	tight-spacing		= true,
	group-digits		= false ,
	input-signs		= ,
	input-symbols		= ( ) [ ] - + *,
	input-open-uncertainty	= ,
	input-close-uncertainty	= ,
	table-align-text-post	= false
}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%---------------------------------------------------MAIN TEXT------------------------------------------------------%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
	\singlespacing
	
	\begin{titlepage}
		
		\if1\blind
		{
			\title{\textbf{\Large Sample Title}}
		} \fi
		\if0\blind
		{
			
			\title{\textbf{\Large Sample Title}}
			
			% I commented this out to submit a blind copy to the EFA
			\author{Kyle E. Zimmerschied \thanks{I thank ... for helpful comments and suggestions.. Zimmerschied  \textsf{\href{mailto:kzbp3@mail.missouri.edu}{(kzimmerschied@mail.missouri.edu}}) are at the University of Missouri, Robert J. Trulaske, Sr. College of Business. All errors are my own. Corresponding author: Kyle Zimmerschied, University of Missouri, Robert J. Trulaske, Sr. College of Business, 336 Cornell Hall, Columbia, Missouri 65211, USA.}}
		} 
		
		\date{\today}
		\maketitle
		\begin{abstract}    
			We study ...\\
			
			\noindent\textbf{Keywords:}  \\
			
			\noindent\textbf{JEL Classification:}   \\
			
		\end{abstract}
		\setcounter{page}{0}
		\thispagestyle{empty}
	\end{titlepage}
	\pagebreak \newpage
	
	\newpage
	
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	%---------------------------------------------------TEXT-------------------------------------------------------------%
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	\newpage 
	
	\small
	\setstretch{1.30}
	
	%I added an introduction just for good formatting - MB's: not common to have Intro section these days if you look at most JF/RFS papers
	% \section{Introduction}\label{sec1}
	% \newpage
	% \begin{center}
		%     \section*{Disclosure Statement}
		% \end{center}
	% \bigskip
	
	% \subsection*{Matteo Binfar\`{e}}
	% I have nothing to disclose.
	
	% \subsection*{Kyle E. Zimmerschied}
	% I have nothing to disclose.
	
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	\newpage
	\setcounter{page}{1}
	%========================================================================
	%START WRITING INTRODCTION HERE
	%========================================================================
	
	
	%========================================================================
	%SECTION INSTITUTIONAL DETAILS
	%========================================================================
	\section{Institutional Details} \label{Institutional Details}
	
	
	
	
	%========================================================================
	%SECTION DATA
	%========================================================================
	\section{Data} \label{Data}
	
	
	
	
	
	%========================================================================
	%SECTION Empirical Strategy
	%========================================================================
	\section{Empirical Strategy} \label{Empirical Strategy}
	
	
	%========================================================================
	%SECTION Main Results
	%========================================================================
	\section{Main Results} \label{Main Results}
	
	
	%========================================================================
	%SECTION Discussion
	%========================================================================
	\section{Discussion} \label{Discussion}
	
	
	%========================================================================
	%SECTION Conclusion
	%========================================================================
	\section{Conclusion} \label{Conclusion}
	
	
	
	
	%========================================================================
	%REFERENCE SECTION
	%========================================================================
	\newpage
	\onehalfspacing
	\printbibliography
	\newpage
	\doublespacing
	
	%========================================================================
	%BEGIN MAIN FIGURES & TABLES
	%========================================================================
	
	%========================================================================
	%BEGIN MAIN FIGURES
	%========================================================================
	\begin{comment}
		%%%FIGURE 1
		\begin{figure}[!ht]
			\centering
			\caption{\textbf{Total Assets, Investment Assets, and Flows by Fiscal Year } \\
				This figure shows total assets and investment assets (left axis), and contributions and distributions (right axis) for private foundations from 1991 to 2016 as reported to the IRS, Form 990-PF. Investment assets includes government debt, corporate bonds, equity, alternative investments, and other investment assets. Figures are in billions of dollars.}
			\includegraphics[width=0.85\textwidth]{fig1.png}
			\phantomsection
			\label{fig1}
		\end{figure}
		\clearpage
	\end{comment}
	
	%========================================================================
	%BEGIN MAIN TABLES
	%========================================================================
	\begin{comment}
		%%%TABLE 1
		\begin{table}[!ht]
			\small
			\centering
			\resizebox{\textwidth}{!}{
				\begin{threeparttable}
					\caption{\textbf{Sample and Flows} \\
						This table reports the total number of private foundations (Total), the number of foundations entering the sample (Entry), the number of foundations exiting the sample (Exit), the total assets in billion of dollars of the reporting foundations (AUM), and the total distributions in billions of dollars of the reporting foundations (Distr.) from 1991 to 2016. The total number of foundations in the current year equals the total number of foundations in the previous year plus the number that entered the sample in the current year minus the number that exited the sample in the current year.}
					\estauto{flows.tex}{6}{D{.}{.}{-1}}
					\phantomsection
					\label{tab1}
				\end{threeparttable}
			}
		\end{table}
		\clearpage
	\end{comment}
	
	%========================================================================
	%BEGIN APPENDIX VARIABLE DEFINITION, FIGURES, AND TABLES
	%========================================================================
	\begin{comment}
		\clearpage
		\newpage
		
		\setcounter{secnumdepth}{0}
		\appendix
		\section{Appendix}
		
		\setcounter{table}{0}
		\setcounter{figure}{0}
		\renewcommand\thetable{A.\arabic{table}}
		\renewcommand\thefigure{A.\arabic{figure}} 
		\onehalfspacing
		
		\subsection{Variable Definition}
		
		\subsubsection{Characteristics of Private Foundations}
		\textbf{Total Assets.} Total fair market value of assets for a foundation at fiscal year end, including investment assets from IRS Form 990-PF, Part II, Line 16c. 
	\end{comment}
	
	
	%=====================================================================
	%BEGIN APPENDIX FIGURES
	%=====================================================================
	\begin{comment}
		%%%APPENDIX FIGURE 1
		\begin{figure}[!ht]
			\centering
			\caption{\textbf{Investment Return, Dividend Yield, and Realized Gains } \\
				This figure shows the total net investment return, dividend yield, and realized gains for private foundations from 1991 to 2016 (displayed as decimals). Data to compute return measures come from the IRS, Form 990-PF.}
			\includegraphics[width=0.85\textwidth]{fig3c.eps}
			\phantomsection
			\label{FIG_RETURN_APP}
		\end{figure}
		\clearpage
	\end{comment}
	
	%=====================================================================
	%BEGIN APPENDIX TABLES
	%=====================================================================
	\begin{comment}
		%%%APPENDIX TABLE 1
		\begin{table}[!ht]
			\small
			\centering
			\begin{threeparttable}
				\caption{\textbf{Audited Statement vs Form 990-PF Returns for Top Foundations} \\
					This table reports the reconciliation process of comparing the investment return performance of private foundations' returns from their audited financial statements and the returns computed using the 990-PF. The list includes 29 of the largest private foundations measured by total fair value of investment assets with publicly released audited financial statements within the last ten years. Investment assets are measured in millions of dollars while the audited and 990-PF columns denote foundations' investment return performance in percentage points.}
				\estauto{audit_vs_990.tex}{10}{D{.}{.}{-1}}
				\phantomsection
				\label{taba1}
			\end{threeparttable}
		\end{table}
	\end{comment}
	
	%========================================================================
	%BEGIN INTERNET APPENDIX, FIGURES, AND TABLES
	%========================================================================
	\begin{comment}
		\clearpage
		\newpage
		\clearpage
		\setcounter{secnumdepth}{0}
		
		\addtocounter{section}{0} 
		\addtocounter{subsection}{0} 
		\setcounter{page}{1} \numberwithin{page}{section} 
		\setcounter{table}{0} 
		\setcounter{figure}{0} 
		\renewcommand\thesection{IA.\arabic{section}}
		\renewcommand\thesubsection{IA.\arabic{subsection}}
		\renewcommand\thetable{IA.\arabic{table}}
		\renewcommand\thefigure{IA.\arabic{figure}} 
		% \renewcommand\thefigure{\thesubsection.\arabic{figure}}
		% \renewcommand\thetable{\thesubsection.\arabic{table}}
		% \renewcommand{\theequation}{\thesubsection.\arabic{equation}}
		
		\setcounter{table}{0} 
		\setcounter{section}{0} 
		\setcounter{subsection}{0} 
		\setcounter{figure}{0}
		\setcounter{equation}{0}
		
		\renewcommand\thepage{Internet appendix - p.\arabic{page}}
		%  \end{flushleft}
	\section{\huge \textbf{Internet
			Appendix}}\label{onlineappendix}
	\newpage
\end{comment}
%========================================================================
%BEGIN INTERNET APPENDIX FIGURES
%========================================================================
\begin{comment}
	%%%INTERNET APPENDIX FIGURE 1
	\begin{figure}[!ht]
		\centering
		\caption{\textbf{Asset Allocation by Foundation Age} \\
			This figure shows the average asset allocation by private foundations from 1991 to 2016 as reported to the IRS, Form 990-PF. Age quartiles are defined within a given calendar-month, calendar year.}
		\includegraphics[width = 1.10\textwidth]{AssetAllocationByAge.png}
		\phantomsection
		\label{FIG_AGE_AA_IA}
	\end{figure}
	\clearpage
\end{comment}
%========================================================================
%BEGIN INTERNET APPENDIX TABLES
%========================================================================
\begin{comment}
	%%%INTERNET APPENDIX TABLE 1
	\begin{table}[!ht]
		\small
		\centering
		\resizebox{\textwidth}{!}{
			\begin{threeparttable}
				\caption{\textbf{Sample and Flows} \\
					This table reports the total number of private foundations (Total), the number of foundations entering the sample (Entry), the number of foundations exiting the sample (Exit), the total assets in billion of dollars of the reporting foundations (AUM), and the total distributions in billions of dollars of the reporting foundations (Distr.) from 1991 to 2012 using data from the IRS, 990 core files stored on the National Center of Charitable Statistics hosted on Urban Institute's website. The total number of foundations in the current year equals the total number of foundations in the previous year plus the number that entered the sample in the current year minus the number that exited the sample in the current year. \textit{BV AUM} denotes the total book value of assets for all reporting foundations while \textit{Distr.} represents the distributions made by all reporting private foundations to charitable causes.}
				\estauto{core_flows.tex}{6}{D{.}{.}{-1}}
				\phantomsection
				\label{TAB_CORE_FLOW_IA}
			\end{threeparttable}
		}
	\end{table}
	\clearpage
\end{comment}
\end{document}