\documentclass[11pt]{article}
%========================================================================
%SOME PACKAGES TO LOAD IN
%========================================================================
\usepackage[margin=1in]{geometry}
\usepackage{booktabs}
\usepackage{threeparttable}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{float}
\usepackage{setspace}
\usepackage{titling}
\usepackage{amsmath}

%========================================================================
%TITLE PAGE
%========================================================================
\setlength{\droptitle}{-2cm}

\title{\textbf{PhD Tutorial Example}\\[0.5em]
	\large Summary Tables, Regression Tables, and Figures in Stata/R with Overleaf}
\author{Your Name Here}
\date{March 31, 2026}

\begin{document}
	
	\begin{titlepage}
		\centering
		\vspace*{2cm}
		{\LARGE \textbf{PhD Tutorial Example}\par}
		\vspace{0.5cm}
		{\Large Summary Tables, Regression Tables, and Figures in Stata/R with Overleaf\par}
		\vspace{1.5cm}
		{\large Kyle Zimmerschied\par}
		\vspace{0.5cm}
		{\large March 31, 2026\par}
		\vfill
		{\large Minimal Overleaf template for importing Stata tables and figures\par}
	\end{titlepage}
	
	\onehalfspacing
	%========================================================================
	%EXAMPLES OF TABLES
	%========================================================================
	\section{Summary Statistics}
	
	Table \ref{tab:summary} shows a simple summary table created in Stata and imported into Overleaf as a fragment.
	
	\begin{table}[H]
		\centering
		\begin{threeparttable}
			\caption{Bond-Level Summary Statistics}
			\label{tab:summary}
			\begin{tabular}{lcccccccc}
				\toprule
				\input{Tables/TAB_SUMMARY_BOND.tex}
			\end{tabular}
		\end{threeparttable}
	\end{table}
	\clearpage
	
	\begin{table}[!ht]
		\footnotesize
		\centering
		\resizebox{\textwidth}{!}{
			\begin{threeparttable}
				\caption{\textbf{Summary Statistics Table} \\
					\footnotesize
					\textbf{Notes}:
					This table presents the summary statistics at the bond-level}
				\begin{tabular}{l*{8}{D{.}{.}{-1}}}
					\toprule
					\input{Tables/TAB_SUMMARY_BOND.tex}
					\bottomrule
				\end{tabular}
				\phantomsection
				\label{TAB_SUMMARY_UNIVERSITY}
			\end{threeparttable}
		}
	\end{table}
	\clearpage
	
	
	\section{Regression Table}
	
	Table \ref{tab:reg} shows a regression table exported from Stata with multiple specifications.
	
	\begin{table}[H]
		\centering
		\begin{threeparttable}
			\caption{Yield Spread Regressions}
			\label{tab:reg}
			\begin{tabular}{lcccccccc}
				\toprule
				\input{Tables/OLS_YIELD.tex}
				\bottomrule
			\end{tabular}
			\begin{tablenotes}
				\footnotesize
				\item Notes: This is a tutorial example using synthetic data. Standard errors are clustered by state in the Stata code.
			\end{tablenotes}
		\end{threeparttable}
	\end{table}
	%========================================================================
	%EXAMPLES OF FIGURES
	%========================================================================
	\section{Figure}
	
	Figure \ref{fig:scatter} shows a PNG exported from Stata (or, if preferred, from R).
	
	\begin{figure}[H]
		\centering
		\includegraphics[width=0.75\textwidth]{Figures/FIG_YIELD_SCATTER.png}
		\caption{Yield Spreads and Immigration Exposure}
		\label{fig:scatter}
	\end{figure}
	
\end{document}
