Table Generation
Convert experimental results into publication-ready LaTeX tables.
Input
$0 — Table type: comparison, ablation, descriptive, custom
$1 — Data source: JSON file, CSV file, or inline data
Scripts
Generate LaTeX table from JSON/CSV
python ~/.claude/skills/table-generation/scripts/results_to_table.py \
--input results.json --type comparison \
--bold-best max --caption "Performance comparison" \
--label tab:main_results
Supports: comparison, ablation, descriptive, multi-dataset table types.
Additional flags: --type multi-dataset for methods x datasets x metrics layout, --significance for p-value stars, --underline-second for second-best results.
References
- LaTeX table templates and examples:
~/.claude/skills/table-generation/references/table-templates.md
Table Types
comparison — Main results table
- Rows = methods (baselines + ours), Columns = metrics/datasets
- Bold the best result in each column
- Include mean +/- std when available
- Use
\multirow for method categories (Supervised, Self-supervised, etc.)
ablation — Ablation study table
- Rows = variants (full model, minus component A, minus component B, ...)
- Columns = metrics
- Bold the full model result
- Use checkmarks for component presence
descriptive — Dataset/statistics table
- Dataset characteristics, hyperparameters, or summary statistics
- Clean formatting with proper units
custom — Free-form table
- User specifies layout and content
Required Packages
\usepackage{booktabs} % \toprule, \midrule, \bottomrule
\usepackage{multirow} % \multirow
\usepackage{multicol} % multi-column layouts
\usepackage{threeparttable} % table notes
Output Format
Always generate tables with:
booktabs rules (\toprule, \midrule, \bottomrule)
\caption{} and \label{tab:...}
- Bold best results using
\textbf{}
- Table notes via
threeparttable when needed
- Proper alignment (
l for text, c or r for numbers)
Rules
- Only include numbers from actual experimental logs — never hallucinate results
- All numbers must match the data source exactly
- Use
$\pm$ for standard deviations
- Use
\underline{} for second-best results when appropriate
- Keep tables compact — avoid unnecessary columns
- Use
table* for wide tables spanning two columns
- Add glossary/notes for abbreviated column headers
Related Skills
1---2name: table-generation3description: Generate publication-quality LaTeX tables from experimental results. Convert JSON/CSV data to booktabs-styled tables with bold best results, multi-row layouts, and proper captions. Use when creating result tables, comparison tables, or ablation tables for papers.4argument-hint: [data-source]5metadata:6 source: https://skillmd.com/skills/om-scogo/table-generation7---89# Table Generation1011Convert experimental results into publication-ready LaTeX tables.1213## Input1415- `$0` — Table type: `comparison`, `ablation`, `descriptive`, `custom`16- `$1` — Data source: JSON file, CSV file, or inline data1718## Scripts1920### Generate LaTeX table from JSON/CSV21```bash22python ~/.claude/skills/table-generation/scripts/results_to_table.py \23 --input results.json --type comparison \24 --bold-best max --caption "Performance comparison" \25 --label tab:main_results26```2728Supports: `comparison`, `ablation`, `descriptive`, `multi-dataset` table types.29Additional flags: `--type multi-dataset` for methods x datasets x metrics layout, `--significance` for p-value stars, `--underline-second` for second-best results.3031## References3233- LaTeX table templates and examples: `~/.claude/skills/table-generation/references/table-templates.md`3435## Table Types3637### `comparison` — Main results table38- Rows = methods (baselines + ours), Columns = metrics/datasets39- Bold the best result in each column40- Include mean +/- std when available41- Use `\multirow` for method categories (Supervised, Self-supervised, etc.)4243### `ablation` — Ablation study table44- Rows = variants (full model, minus component A, minus component B, ...)45- Columns = metrics46- Bold the full model result47- Use checkmarks for component presence4849### `descriptive` — Dataset/statistics table50- Dataset characteristics, hyperparameters, or summary statistics51- Clean formatting with proper units5253### `custom` — Free-form table54- User specifies layout and content5556## Required Packages57```latex58\usepackage{booktabs} % \toprule, \midrule, \bottomrule59\usepackage{multirow} % \multirow60\usepackage{multicol} % multi-column layouts61\usepackage{threeparttable} % table notes62```6364## Output Format6566Always generate tables with:671. `booktabs` rules (`\toprule`, `\midrule`, `\bottomrule`)682. `\caption{}` and `\label{tab:...}`693. Bold best results using `\textbf{}`704. Table notes via `threeparttable` when needed715. Proper alignment (`l` for text, `c` or `r` for numbers)7273## Rules7475- Only include numbers from actual experimental logs — never hallucinate results76- All numbers must match the data source exactly77- Use `$\pm$` for standard deviations78- Use `\underline{}` for second-best results when appropriate79- Keep tables compact — avoid unnecessary columns80- Use `table*` for wide tables spanning two columns81- Add glossary/notes for abbreviated column headers8283## Related Skills84- Upstream: [data-analysis](../data-analysis/), [experiment-code](../experiment-code/)85- Downstream: [paper-writing-section](../paper-writing-section/), [paper-compilation](../paper-compilation/)86- See also: [figure-generation](../figure-generation/)