Last active
March 8, 2021 17:05
-
-
Save kylebutts/03c8282300bd3cb7eaad8f18b26eddbc to your computer and use it in GitHub Desktop.
Latex Table to png
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| \documentclass[convert={density=300,outext=.png}]{standalone} | |
| % font | |
| \usepackage{utopia} | |
| \usepackage[utopia, smallerops, varg]{newtxmath} | |
| % booktabs | |
| \usepackage{booktabs} | |
| % three part table | |
| \usepackage[flushleft]{threeparttable} | |
| \setlength\labelsep{0pt} | |
| % Slighty more spacing between rows | |
| \usepackage{array} | |
| \renewcommand\arraystretch{1.1} | |
| \begin{document} | |
| % Example Table | |
| \begin{threeparttable} | |
| \begin{tabular}{@{} l rrrrrr @{}} | |
| % Head | |
| \toprule | |
| & \multicolumn{6}{c}{Data-Generating Process} \\ | |
| \cmidrule{2-7} | |
| & \multicolumn{1}{c}{\textbf{Within 40mi}} & \multicolumn{1}{c}{\textbf{Within 80mi}} & \multicolumn{1}{c}{\textbf{Within 40mi.}} & \multicolumn{1}{c}{\textbf{Within 80mi.}} & \multicolumn{1}{c}{\textbf{Decay}} & \multicolumn{1}{c}{\textbf{Decay}} \\ | |
| Specification & & & \multicolumn{1}{c}{\textbf{(Additive)}} & \multicolumn{1}{c}{\textbf{(Additive)}} & & \multicolumn{1}{c}{\textbf{(Additive)}} \\ | |
| % Body | |
| \midrule | |
| TWFE (No Spillovers) & $0.258$ & $0.258$ & $0.258$ & $0.258$ & $0.258$ & $0.258$ \\ | |
| Within 40mi. & $-0.005$ & $0.213$ & $-0.005$ & $0.176$ & $0.159$ & $0.143$ \\ | |
| Within 80mi. & $-0.009$ & $-0.009$ & $-0.009$ & $-0.009$ & $-0.009$ & $-0.009$ \\ | |
| Within 100mi. & $-0.006$ & $-0.006$ & $-0.006$ & $-0.006$ & $-0.006$ & $-0.006$ \\ | |
| Within 40mi. (Additive) & $0.043$ & $0.221$ & $-0.006$ & $0.177$ & $0.174$ & $0.143$ \\ | |
| Within 80mi. (Additive) & $0.034$ & $0.134$ & $-0.012$ & $-0.009$ & $0.099$ & $-0.010$ \\ | |
| Decay & $-0.159$ & $0.070$ & $-0.174$ & $0.014$ & $-0.009$ & $-0.033$ \\ | |
| Decay (Additive) & $-0.023$ & $0.148$ & $-0.084$ & $0.019$ & $0.088$ & $-0.008$ \\ | |
| Rings (0-20, 20-30, 30-40) & $-0.005$ & $0.213$ & $-0.005$ & $0.176$ & $0.159$ & $0.143$ \\ | |
| Rings (0-20, 20-30, 30-40, 40-60, 60-80) & $-0.009$ & $-0.009$ & $-0.009$ & $-0.009$ & $-0.009$ & $-0.009$ \\ | |
| Rings (0-20, 20-30, 30-40, 40-60, 60-80) (Additive) & $0.036$ & $0.134$ & $-0.008$ & $-0.008$ & $0.100$ & $-0.009$ \\ | |
| \bottomrule | |
| \end{tabular} | |
| % Notes | |
| \begin{tablenotes}\footnotesize | |
| \item \textit{Notes.} Each cell corresponds to the mean bias from 1000 simulations of the data generating process specified by the column header and under the specification given by Equation (4) by the row label. | |
| \end{tablenotes} | |
| \end{threeparttable} | |
| \end{document} |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example output: