Skip to content
Skillv1.0.0

latex-tables

Generate publication-ready regression tables in LaTeX.

by meleantonio(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from meleantonio/awesome-econ-ai-stuff (_skills/writing/latex-tables/SKILL.md). Install upstream with npx skills add meleantonio/awesome-econ-ai-stuff --skill latex-tables. Copyright stays with the author.

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

% ============================================
% 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

Changelog

v1.0.0

  • Initial release

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/meleantonio-awesome-econ-ai-stuff-latex-tables/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

meleantonio-awesome-econ-ai-stuff-latex-tables.ocm.jsonjson
{
  "ocm": "1",
  "id": "meleantonio-awesome-econ-ai-stuff-latex-tables",
  "kind": "skill",
  "name": "latex-tables",
  "description": "Generate publication-ready regression tables in LaTeX.",
  "publisher": "meleantonio",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "general"
    ],
    "tags": [
      "skill-md",
      "latex",
      "tables",
      "regression",
      "booktabs",
      "skills-sh"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Generate publication-ready regression tables in LaTeX."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "skills.sh",
      "repository": "https://github.com/meleantonio/awesome-econ-ai-stuff",
      "path": "_skills/writing/latex-tables/SKILL.md",
      "ref": "HEAD",
      "url": "https://github.com/meleantonio/awesome-econ-ai-stuff/blob/HEAD/_skills/writing/latex-tables/SKILL.md",
      "key": "meleantonio/awesome-econ-ai-stuff/_skills/writing/latex-tables/SKILL.md"
    },
    "compatibility": "['claude-code', 'cursor', 'codex', 'gemini-cli']"
  },
  "instructions": "# LaTeX Tables\n\n## Purpose\n\nThis skill creates clean, publication-ready tables in LaTeX for regression results and summary statistics, using standard academic formatting.\n\n## When to Use\n\n- Converting model output into LaTeX tables\n- Standardizing table style across a paper\n- Adding notes, significance stars, and labels\n\n## Instructions\n\nFollow these steps to complete the task:\n\n### Step 1: Understand the Context\n\nBefore generating any code, ask the user:\n\n- What type of table is needed (regression, summary stats, balance)?\n- What software produced the results (Stata, R, Python)?\n- Which forma",
  "cost": {
    "context_tokens": 667
  }
}

Fetch it by URL: GET /api/v1/registry/meleantonio-awesome-econ-ai-stuff-latex-tables/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.