Skip to main content
skill CX Codex

latex-tables · meleantonio — Claude Code skill: generate publication-ready regression tables

Creates clean LaTeX tables for regression results and summary statistics using academic formatting standards. Use it when you need to format statistical output for journal submission.

CC0-1.0 128 installs ★ 675 updated 2026-09-26

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add meleantonio/awesome-econ-ai-stuff --skill latex-tables -a claude-code
Open on GitHub

What latex-tables does

latex-tables converts output from Stata, R, or Python into properly formatted LaTeX tables with booktabs rules, labels, captions, and significance stars. The skill asks what table type you need (regression, summary stats, or balance table), which software produced the data, and what journal style applies—then generates LaTeX code with aligned numeric columns and standard notes.

Requires a LaTeX distribution (TeX Live or MikTeX) and the booktabs package; threeparttable is optional for notes. The skill follows a three-step process: first clarify the task context, then generate properly formatted LaTeX code, then explain compilation steps and highlight any formatting assumptions made.

What it helps with

  • convert Stata or R regression output to LaTeX format
  • format summary statistics to match journal guidelines
  • add significance stars and standard error notes
  • align numeric columns for readability

Example prompts for the agent

  • Create a regression table with three models in LaTeX
  • Format summary statistics with mean and standard deviation columns
  • Add significance stars and standard error notes below each coefficient

How to install latex-tables

1Skills CLI (Vercel)

npx skills add meleantonio/awesome-econ-ai-stuff --skill latex-tables -a claude-code

2Manually: put the files in place

~/.claude/skills/latex-tables/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/latex-tables/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about latex-tables

How do I install latex-tables in Claude Code?

Run npx skills add meleantonio/awesome-econ-ai-stuff --skill latex-tables -a claude-code, then open ~/.claude/skills/latex-tables/SKILL.md. For other platforms: use -a cursor for Cursor, -a codex for Codex, or gh skill install meleantonio/awesome-econ-ai-stuff latex-tables for GitHub Copilot.

What does latex-tables do?

Converts statistical analysis output into publication-ready LaTeX tables. The skill asks about table type, data source, and journal format, then generates LaTeX code with booktabs, labels, notes, and properly aligned columns.

What LaTeX packages are required?

The booktabs package is required for clean horizontal rules, along with a LaTeX distribution (TeX Live or MikTeX). The threeparttable package is optional if you need notes below the table.

Source text

SKILL.md · CC0-1.0
---
name: latex-tables
description: Generate publication-ready regression tables in LaTeX.
workflow_stage: writing
compatibility:
  - claude-code
  - cursor
  - codex
  - gemini-cli
author: Awesome Econ AI Community
version: 1.0.0
tags:
  - latex
  - tables
  - regression
  - booktabs
---

# LaTeX Tables

## Purpose

This skill creates clean, publication-ready tables in LaTeX for regression results and summary statistics, using standard academic formatting.

## When to Use

- Converting model output into LaTeX tables
- Standardizing table style across a paper
- Adding notes, significance stars, and labels

## Instructions

Follow these steps to complete the task:

### Step 1: Understand the Context

Before generating any code, ask the user:

- What type of table is needed (regression, summary stats, balance)?
- What software produced the results (Stata, R, Python)?
- Which formatting style is required (journal-specific, AEA, etc.)?

### Step 2: Generate the Output

Based on the context, generate LaTeX code that:

1. **Uses `booktabs`** for clean horizontal rules
2. **Includes labels and captions** for referencing in the paper
3. **Adds notes** for standard errors and significance
4. **Aligns numeric columns** for readability

### Step 3: Verify and Explain

After generating output:

- Explain how to compile the table
- Highlight any assumptions in the formatting
- Suggest refinements for journal submission

## Example Prompts

- "Create a regression table with three models in LaTeX"
- "Format summary statistics with mean and sd columns"
- "Add significance stars and standard error notes"

## Example Output

```latex
% ============================================
% Regression Table
% ============================================
\begin{table}[htbp]\centering
\caption{Effect of Treatment on Outcome}
\label{tab:main_results}
\begin{tabular}{lccc}
\toprule
 & (1) & (2) & (3) \\
\midrule
Treatment & 0.125*** & 0.118*** & 0.102** \\
 & (0.041) & (0.039) & (0.046) \\
Controls & No & Yes & Yes \\
Fixed Effects & No & Yes & Yes \\
\midrule
Observations & 2,145 & 2,145 & 2,145 \\
R-squared & 0.18 & 0.24 & 0.31 \\
\bottomrule
\end{tabular}
\begin{tablenotes}
\small
\item Notes: Standard errors in parentheses. * p<0.10, ** p<0.05, *** p<0.01.
\end{tablenotes}
\end{table}
```

## Requirements

### Software

- LaTeX distribution (TeX Live or MikTeX)

### Packages

- `booktabs`
- `threeparttable` (optional for notes)

## Best Practices

1. **Keep tables compact** and readable
2. **Use consistent notation** for standard errors and stars
3. **Provide clear captions and labels**

## Common Pitfalls

- Overly wide tables that do not fit the page
- Missing notes for standard errors
- Inconsistent labeling across tables

## References

- [LaTeX booktabs documentation](https://ctan.org/pkg/booktabs)
- [AEA Author Guidelines](https://www.aeaweb.org/journals/policies/author-instructions)

## Changelog

### v1.0.0

- Initial release

© Awesome Econ AI Community · CC0-1.0 · meleantonio/awesome-econ-ai-stuff

Similar skills

All skills for Writing and docs →

latex-tables by other authors comes first.

latex-tables terrylica Teaches the agent to build LaTeX tables with tabularray: fixed column widths, alignment, rule lines. Useful when a tblr has to be written from scratch or an old table rewritten. CX Codex +1 242installs table-generation lingzhi227 table-generation — a skill for Claude Code, Codex, Cursor and other platforms that converts JSON and CSV into publication-ready LaTeX tables with best-result highlighting, multirow layouts and captions. CX Codex +1 1,700installs latex-paper-en bahayonghang latex-paper-en — a skill for an existing English .tex paper: repairs the build, checks venue formatting, bibliography and language. Useful when the draft exists and the deadline is close. CX Codex +1 6,200installs latex-posters K-Dense-AI latex-posters creates research posters with three LaTeX packages, compiles PDF, and checks fonts before print. CX Codex +1 2,300installs latex-formatting lingzhi227 latex-formatting sets up conference LaTeX templates, fixes formatting, and runs a pre-submission check. Handy when the deadline is close. CX Codex +1 2,300installs latex-document-skill ndpvt-web Generates, compiles, and converts LaTeX documents into PDF files with PNG previews, handling technical reports, resumes, posters, and Beamer slides. CX Codex +1 608installs latex-conference-template-organizer Galaxy-Dawn latex-conference-template-organizer turns cluttered conference LaTeX zip archives into a clean, Overleaf-ready project structure. It helps prepare a fresh paper draft by stripping out sample text and messy comments. CX Codex +1 403installs

From the same set12

The whole set →
r-econometrics r-econometrics generates R code for causal inference and panel data using fixest, complete with diagnostics and publication tables. Useful for IV, DiD, and RDD research designs. CX Codex +1 340installs beamer-presentation beamer-presentation is a Claude Code skill that builds academic Beamer decks from a paper or project, with timed structure, themes, charts, and tables. CX Codex +1 285installs lit-review-assistant lit-review-assistant structures economics literature reviews, crafts database queries, and tracks research gaps. Helps synthesize empirical papers into standardized markdown templates. CX Codex +1 241installs api-data-fetcher The api-data-fetcher skill helps an agent pull economic indicators from FRED, World Bank, and other APIs. Use it for datasets, recurring updates, or cross-country panels. CX Codex +1 208installs econ-visualization econ-visualization generates publication-ready figures and charts for economics research in R or Python. CX Codex +1 202installs research-ideation research-ideation guides economists from raw observations or datasets to testable research questions. Useful when starting dissertation projects or designing policy evaluations. CX Codex +1 196installs python-panel-data python-panel-data is a Claude Code skill that generates Python code for panel-data analysis, including fixed- and random-effects models, difference-in-differences, and regression tables. CX Codex +1 163installs latex-econ-model latex-econ-model typesets economic theory models in LaTeX using standard academic notation, from utility optimization to dynamic programming setups. CX Codex +1 147installs

Project sponsors

Companies that keep this analytics open