| name | latex-tables |
| description | Generate publication-ready LaTeX tables for regression results, summary statistics, balance tables, and similar empirical outputs using standard academic formatting. |
LaTeX Tables
Overview
Produce clean, publication-ready LaTeX tables for empirical research. Optimize for compact layout, consistent notation, journal-friendly formatting, and output that can be pasted directly into a paper or appendix with minimal cleanup.
This skill is especially useful for regression tables, summary-statistics tables, balance tables, and other economics-style result tables.
Workflow
- Gather the table context before drafting code: table type, source software, number of columns or models, desired statistics, significance convention, notes, and any journal or style constraints.
- Match the LaTeX structure to the task. Use
table plus tabular for standard tables, threeparttable when notes need clearer structure, and a compact column layout that fits the page.
- Prefer academic table conventions:
booktabs rules, explicit captions and labels, aligned numeric columns, and concise row labels that mirror the paper text.
- Include the metadata readers expect: observations, fit statistics, fixed-effects indicators, summary-stat columns, sample notes, and significance or standard-error notes when relevant.
- After generating the table, explain any formatting assumptions, mention required packages, and point out likely refinements for submission-quality output.
- When tables risk becoming too wide or dense, proactively suggest alternatives such as abbreviating labels, splitting panels, moving columns to an appendix, or using landscape formatting.
Output Expectations
- Return valid LaTeX that can be pasted into a manuscript with minimal edits.
- Use
booktabs by default for horizontal rules.
- Include
\caption{} and \label{} unless the user explicitly wants only the tabular body.
- Add table notes for standard errors, significance stars, samples, or other conventions when needed.
- Keep notation and styling consistent across columns and tables.
- Explain compile requirements briefly when extra packages such as
threeparttable are used.
Best Practices
- Keep tables compact and readable rather than maximizing the number of reported statistics.
- Use consistent notation for stars, parentheses, brackets, and sample descriptions.
- Make captions informative and labels stable so they can be referenced cleanly in the text.
- Prefer clearly aligned numeric columns and avoid visual clutter from excessive vertical rules.
- Flag journal-style mismatches early when the requested format conflicts with common economics conventions.
Common Pitfalls
- Tables that are too wide for the page because of long variable labels or too many model columns.
- Missing notes about standard errors, clustering, weights, or significance thresholds.
- Inconsistent labels, decimal precision, or panel structure across multiple tables in the same paper.
- Raw software exports that compile but do not match publication norms.
References
Read references/latex-table-recipes.md when you need ready-to-adapt templates, package guidance, or quick formatting patterns for common econ tables.
Source inspiration: Awesome Econ AI Stuff - LaTeX Tables, plus linked references to booktabs and the AEA author guidelines.