Logo di Latex Tables

Latex Tables

Community
JonasWeinert
latex-tables

Generates publication-ready LaTeX tables produced by code (Stata `esttab`/`outreg2`, R `modelsummary`/`fixest::etable`, Python `stargazer`/`pyfixest.etable`) and writes them directly to the paper's `tabs/` folder. Defaults to DIME's "full replicability" standard (no copy-paste from any console), `booktabs` styling, three-line tables, threeparttable notes, sensible significance stars, and `\Cref{}`-friendly labels. Aligned with DIME Analytics' [Exporting Analysis](https://dimewiki.worldbank.org/Exporting_Analysis) and [Submit Table checklist](https://dimewiki.worldbank.org/Checklist:_Submit_Table). Use when the user asks for regression tables, summary statistics, balance tables, descriptive statistics, mean-comparison tables, multi-spec tables, or any code-to-LaTeX-table workflow.

Panoramica

Pubblicato daJonasWeinert
RepositoryEconAgentSkills
Nome della skilllatex-tables
Stelle
30
Fork
4
File inclusi
7
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • File inclusi: 7

    Script, template e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da JonasWeinert su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Latex Tables in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/JonasWeinert/EconAgentSkills/tree/main/_skills/writing/latex-tables
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/JonasWeinert/EconAgentSkills.git /tmp/EconAgentSkills
mkdir -p .claude/skills
cp -r /tmp/EconAgentSkills/_skills/writing/latex-tables .claude/skills/latex-tables
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Latex Tables in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Latex Tables non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Latex Tables non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

LaTeX Tables

Generate publication-ready LaTeX tables that come out of code (esttab, modelsummary, pyfixest.etable, stargazer) and \input{} cleanly into the paper. The default style follows DIME's "full replicability" tier: no manual editing between code and PDF.

Operating Principles

  1. Tables are produced, never typed. DIME identifies four levels of replicability: full, good, basic, and none. "None" (copy-paste from a console window) is unacceptable for any output that leaves the analyst. Default to full: code writes a .tex file that the paper \input{}s directly.
  2. One source of truth per table. Every numeric cell, star, sample size, and footnote comes from the same script that ran the regression. Never edit the .tex file by hand — re-run the script and rebuild the paper.
  3. booktabs styling. Three horizontal rules (\toprule, \midrule, \bottomrule), no vertical lines, consistent decimal alignment via siunitx S columns when precision matters.
  4. Notes via threeparttable. Significance levels, standard-error type, sample restrictions, and clustering belong in a single notes block at the bottom — not in the caption.
  5. Cross-reference with \Cref{}. \label{tab:main} + \Cref{tab:main} reads "Table 2" in body text and behaves correctly at sentence start.

Decision Policy

This skill follows the repo-wide Agent Policy.

ASK before proceeding (blocking):

  1. Source language of the regression (Stata / R / Python) — determines the canonical table package.
  2. Table type (regression / summary stats / balance / multi-panel / DiD-estimator comparison).
  3. Standard-error type and cluster level (these belong in the table notes).
  4. Output target (LaTeX .tex, Word .rtf, Excel .xlsx).

DEFAULT + flag (use this default; tell the user how to override):

  • esttab (Stata), modelsummary or fixest::etable (R), pyfixest.etable or stargazer (Python).
  • booktabs styling: \toprule, \midrule, \bottomrule; no vertical lines.
  • Three-star convention * 0.10 ** 0.05 *** 0.01; pin once per paper.
  • threeparttable for the notes block.
  • Output path paper/tabs/<name>.tex; the paper \input{}s it.
  • Within-R² (r2_within) reported instead of overall R² for FE models.

DOCUMENT and proceed (write into the decisions log of the table-generating script):

  • The estimating equation, sample, cluster level, and FE included for each column.
  • Variable label mapping (coef_map / coeflabels).
  • Any subsample restriction shown in a column.

PROCEED items: tables produced by code (never copy-paste); generated .tex never hand-edited; rebuild path runs the table script before LaTeX.

Pre-flight Checklist

Before generating code, confirm with the user — and write the answers in the script header:

  • Source language. Stata, R, or Python? (Each has its own canonical table package.)
  • Table type. Regression (multi-spec), summary statistics, balance / difference-in-means, descriptive cross-tabs, or model-comparison panel?
  • Sample. Single or stratified? If panel, which fixed effects are on/off across columns?
  • Standard errors. Cluster-robust at which level? Wild-bootstrap p-values?
  • Stars and notes. Conventional *** ** * cutoffs (1/5/10), or journal-specific (some require none)?
  • Output path. Almost always paper/tabs/{name}.tex; the paper \input{}s that file.
  • Compile target. \begin{table} floating environment in body, or naked tabular snippet to be included from a parent macro?

Decision Tree (which table package to use)

Source = Stata
└── esttab (from estout) is canonical.
    eststo store; esttab using "tabs/x.tex", booktabs label se ...

Source = R
├── fixest models (most common in 2024-26): use fixest::etable
└── Mixed model classes: use modelsummary (works across lm, glm,
    PanelOLS, fixest, brms, ...). modelsummary writes .tex via
    `output = "tabs/x.tex"`.

Source = Python
├── pyfixest models: use pyfixest.etable
├── linearmodels models: use compare(...) + manual to_latex(), or
    pass models through stargazer
└── statsmodels OLS / GLM: use stargazer (Python port).

Output for Word
└── Same packages with .rtf or .docx output (esttab supports rtf;
    modelsummary supports docx via flextable).

Output Path Convention

paper/
├── paper.tex
├── tabs/                       # all .tex tables; never hand-edited
│   ├── table_main.tex
│   ├── table_balance.tex
│   ├── table_summary.tex
│   └── table_robustness.tex
├── figs/
└── code/
    ├── stata/
    │   └── make_tables.do
    └── r/
        └── make_tables.R

Body text:

latex
\Cref{tab:main} reports our preferred specification.
\input{tabs/table_main.tex}

The .tex file should produce the entire \begin{table} ... \end{table} environment so you only have one \input{} per table in the paper.

Common Pitfalls

  • Hand-editing the .tex file after generation. The next run will overwrite or diverge from the published numbers.
  • Mixing significance-star conventions across tables (* at 0.05 in one, at 0.10 in another).
  • Using \hline everywhere; readers expect three-line booktabs tables.
  • Vertical lines in regression tables — never necessary, always ugly.
  • Putting key information in the caption (e.g. "Standard errors clustered by firm") instead of in the notes block, where it can be longer and less awkward.
  • Using _ in variable labels without \_ escaping; LaTeX silently interprets them as subscripts.
  • Including raw column names like treat_post instead of human-readable labels.
  • Numbers with inconsistent decimal precision across columns.
  • Missing N row at the bottom of regression tables; reviewers will ask.
  • Not exporting at all — running the regression in interactive mode and screenshotting the result. (This is "no replicability" in DIME's framework.)

Additional Resources

  • reference.md — extended patterns: balance tables, summary stats, panel tables, threeparttable notes, siunitx S-column alignment, multi-panel tables, journal-specific deviations.
  • examples/ — runnable scripts that produce real .tex files:
    • examples/make_tables_esttab.do — Stata regression + summary + balance via esttab
    • examples/make_tables_modelsummary.R — R via modelsummary + fixest::etable
    • examples/make_tables_pyfixest.py — Python via pyfixest.etable
    • examples/make_tables_stargazer.py — Python statsmodels via stargazer
    • examples/table_main_template.tex — minimal copy-paste-able tabular for "good replicability" cases
    • examples/table_balance_template.tex — DIME-style balance table layout

Requirements

  • LaTeX: TeX Live 2022+ or MacTeX 2022+; packages booktabs, threeparttable, siunitx, caption, cleveref.
  • Stata: ssc install estout (provides esttab, eststo, estadd, estpost).
  • R: install.packages(c("modelsummary", "fixest", "kableExtra")).
  • Python: pip install stargazer pyfixest pandas.

References

DIME

Style

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA Latex Tables?

Generates publication-ready LaTeX tables produced by code (Stata `esttab`/`outreg2`, R `modelsummary`/`fixest::etable`, Python `stargazer`/`pyfixest.etable`) and writes them directly to the paper's `tabs/` folder. Defaults to DIME's "full replicability" standard (no copy-paste from any console), `booktabs` styling, three-line tables, threeparttable notes, sensible significance stars, and `\Cref{}`-friendly labels. Aligned with DIME Analytics' [Exporting Analysis](https://dimewiki.worldbank.org/Exporting_Analysis) and [Submit Table checklist](https://dimewiki.worldbank.org/Checklist:_Submit_...

Perché usare Latex Tables su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Latex Tables è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Latex Tables in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/JonasWeinert/EconAgentSkills/tree/main/_skills/writing/latex-tables. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Latex Tables?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Latex Tables?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Latex Tables: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Latex Tables è gratuita?

È pubblicata su GitHub da JonasWeinert. Consulta il repository per i termini di licenza. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇