Table Generation

lingzhi227/agent-research-skills/skills/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 從公開儲存庫中收錄這些內容。

檢舉或申請下架

Table Generation · skills/table-generation 代理程式技能 | SourceWeft