LaTeX Academic Paper Skill
Description
Write publication-quality LaTeX for an economics research paper. Use when creating or editing any .tex file, building tables, or formatting the paper.
Document Setup (main.tex template)
latex
\documentclass[12pt]{article}
\usepackage[margin=1in]{geometry}
\usepackage{amsmath,amssymb}
\usepackage{booktabs} % Professional tables
\usepackage{graphicx} % Figures
\usepackage{float} % Better float control
\usepackage[hidelinks]{hyperref}
\usepackage{natbib} % Author-year citations
\usepackage{setspace} % Line spacing
\usepackage{caption} % Caption formatting
\usepackage{subcaption} % Subfigures
\usepackage{appendix}
\usepackage{pdflscape} % Landscape pages for wide tables
\usepackage{threeparttable} % Table notes
\bibliographystyle{aer} % AER style (or use chicago, ecta)
\doublespacing % Standard for submissions
\title{...}
\author{...}
\date{\today}
Table Formatting Rules
DO:
latex
\begin{table}[htbp]
\centering
\caption{Effect of GenAI on GDP PPP per capita (log)}
\label{tab:main_results}
\begin{threeparttable}
\begin{tabular}{lccc}
\toprule
& (1) & (2) & (3) \\
& Baseline & Controls & Full \\
\midrule
High RoL $\times$ Post-2022 & 0.052*** & 0.048** & 0.041** \\
& (0.018) & (0.020) & (0.019) \\
\midrule
Country FE & Yes & Yes & Yes \\
Year FE & Yes & Yes & Yes \\
Controls & No & Basic & Full \\
\midrule
Observations & 3,200 & 3,100 & 2,900 \\
R$^2$ (within) & 0.85 & 0.86 & 0.87 \\
Clusters & 160 & 155 & 145 \\
\bottomrule
\end{tabular}
\begin{tablenotes}[flushleft]
\small
\item \textit{Notes}: Standard errors clustered at the country level in parentheses.
*** p<0.01, ** p<0.05, * p<0.10.
\end{tablenotes}
\end{threeparttable}
\end{table}
DON'T:
- •Never use
\hline— always use\toprule,\midrule,\bottomrule - •Never use
[h]alone for float placement — use[htbp] - •Never hardcode table numbers — always use
\label{}and\ref{}
Figure Formatting
latex
\begin{figure}[htbp]
\centering
\includegraphics[width=0.85\textwidth]{figures/event_study_plot.pdf}
\caption{Event study: Dynamic treatment effects on log GDP PPP per capita}
\label{fig:event_study}
\floatfoot{\textit{Notes}: Point estimates and 95\% confidence intervals from ...}
\end{figure}
Citation Patterns
- •Narrative:
\citet{acemoglu2012}→ "Acemoglu and Robinson (2012) argue that..." - •Parenthetical:
\citep{acemoglu2012}→ "...(Acemoglu and Robinson, 2012)" - •Multiple:
\citep{acemoglu2012, callaway2021}→ "...(Acemoglu and Robinson, 2012; Callaway and Sant'Anna, 2021)"
Section Writing Patterns
Introduction Structure
- •Opening hook: Why critical junctures matter now (2-3 sentences)
- •The puzzle/gap: No empirical test of whether GenAI is a critical juncture (2-3 sentences)
- •What we do: "In this paper, we test whether..." (1-2 sentences)
- •Preview of results: "We find that..." (2-3 sentences)
- •Contribution: How this adds to the literature (2-3 sentences)
- •Roadmap: "The remainder of the paper is organized as follows..." (1 sentence)
Mathematics Formatting
- •Inline:
$\beta$,$\log(\text{GDP}_{it})$ - •Display equations: use
equationenvironment with\label - •Subscripts:
_{it}for country-year,_{i}for country,_{t}for year - •Always define notation after introducing a model equation