Table Generation

作者 lingzhi2279e6c085d65e3无许可证386 个星标收录于 2026年10月8日更新于 2026年10月8日仓库7个月前更新

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.

包含脚本Documents & Office
AI 生成的概览

将 JSON 或 CSV 中的实验结果转换为适合发表的 LaTeX 表格,采用 booktabs 样式并加粗最优结果。

功能
该技能把实验结果数据转换为论文用的 LaTeX 表格源码。它支持 comparison、ablation、descriptive、multi-dataset 和 custom 等表格类型,可加粗每列最优结果、用下划线标出次优结果、添加显著性星号,并用 multirow 布局呈现方法类别。输出为带标题、标签和可选表注的 booktabs 风格表格。
适用场景
适用于为论文制作结果表、对比表或消融表。当实验数据已存在于 JSON、CSV 或内联形式中,需要转成 LaTeX 表格代码时使用。
运行要求
需要 Python 运行随附脚本 scripts/results_to_table.py,并需要具备 booktabs、multirow、multicol 和 threeparttable 宏包的 LaTeX 环境来编译输出。技能附带可执行脚本和表格模板参考文件。

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

bash
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

latex
\usepackage{booktabs}    % \toprule, \midrule, \bottomrule\usepackage{multirow}    % \multirow\usepackage{multicol}    % multi-column layouts\usepackage{threeparttable}  % table notes

Output Format

Always generate tables with:

  1. booktabs rules (\toprule, \midrule, \bottomrule)
  2. \caption{} and \label{tab:...}
  3. Bold best results using \textbf{}
  4. Table notes via threeparttable when needed
  5. 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

  • Upstream: data-analysis, experiment-code
  • Downstream: paper-writing-section, paper-compilation
  • See also: figure-generation

来源与署名

来源:lingzhi227/agent-research-skills位于skills/table-generation提交9e6c085

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架