Logo: Latex Tables

Latex Tables

Communautéit
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.

Iwwersiicht

EditeurJonasWeinert
RepositoryEconAgentSkills
Skill-Nummlatex-tables
Stären
30
Forks
4
Matgeliwwert Dateien
7
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 7 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    JonasWeinert huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Latex Tables an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/JonasWeinert/EconAgentSkills/tree/main/_skills/writing/latex-tables
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

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
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Latex Tables an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Latex Tables automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Latex Tables net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill 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_...

Firwat Latex Tables op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Latex Tables besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Latex Tables an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/JonasWeinert/EconAgentSkills/tree/main/_skills/writing/latex-tables an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Latex Tables benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Latex Tables benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Latex Tables domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Latex Tables gratis?

JonasWeinert huet de Skill op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇