latex-tables
Generate publication-ready regression tables in LaTeX.
它会碰到什么
扫了多少2 个文本文件,6 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0
这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。
技能内容
LaTeX Tables
Purpose
This skill creates clean, publication-ready tables in LaTeX for regression results and summary statistics, using standard academic formatting.
When to Use
- Converting model output into LaTeX tables
- Standardizing table style across a paper
- Adding notes, significance stars, and labels
Instructions
Follow these steps to complete the task:
Step 1: Understand the Context
Before generating any code, ask the user:
- What type of table is needed (regression, summary stats, balance)?
- What software produced the results (Stata, R, Python)?
- Which formatting style is required (journal-specific, AEA, etc.)?
Step 2: Generate the Output
Based on the context, generate LaTeX code that:
- Uses
booktabsfor clean horizontal rules - Includes labels and captions for referencing in the paper
- Adds notes for standard errors and significance
- Aligns numeric columns for readability
Step 3: Verify and Explain
After generating output:
- Explain how to compile the table
- Highlight any assumptions in the formatting
- Suggest refinements for journal submission
Example Prompts
- "Create a regression table with three models in LaTeX"
- "Format summary statistics with mean and sd columns"
- "Add significance stars and standard error notes"
Example Output
% ============================================
% Regression Table
% ============================================
\begin{table}[htbp]\centering
\caption{Effect of Treatment on Outcome}
\label{tab:main_results}
\begin{tabular}{lccc}
\toprule
& (1) & (2) & (3) \\
\midrule
Treatment & 0.125*** & 0.118*** & 0.102** \\
& (0.041) & (0.039) & (0.046) \\
Controls & No & Yes & Yes \\
Fixed Effects & No & Yes & Yes \\
\midrule
Observations & 2,145 & 2,145 & 2,145 \\
R-squared & 0.18 & 0.24 & 0.31 \\
\bottomrule
\end{tabular}
\begin{tablenotes}
\small
\item Notes: Standard errors in parentheses. * p<0.10, ** p<0.05, *** p<0.01.
\end{tablenotes}
\end{table}
Requirements
Software
- LaTeX distribution (TeX Live or MikTeX)
Packages
booktabsthreeparttable(optional for notes)
Best Practices
- Keep tables compact and readable
- Use consistent notation for standard errors and stars
- Provide clear captions and labels
Common Pitfalls
- Overly wide tables that do not fit the page
- Missing notes for standard errors
- Inconsistent labeling across tables
References
Changelog
v1.0.0
- Initial release
想直接用这个技能?
本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。
它属于哪个仓库
星标★ 3,829
本站分层T1
该仓技能数1161
原文件路径
skills/09-meleantonio-awesome-econ-ai-stuff/_skills/writing/latex-tables/SKILL.md同一个仓库里的其他技能
- Full-empirical-analysis-skill
- Full-empirical-analysis-skill-R
- Full-empirical-analysis-skill-Stata
- auto-empirical-research-skills
- StatsPAI_skill
- Full-empirical-analysis-skill
- Full-empirical-analysis-skill-Stata
- Full-empirical-analysis-skill-R
- academic-paper-composer
- academic-paper-strategist
- medical-imaging-review
- paper-slide-deck
同名技能的其他版本
有 2 个不同仓库或目录里都有叫 latex-tables 的技能。它们内容并不相同,别混用:
- brycewang-stanford/Auto-Empirical-Research-Skills — Generate publication-ready regression tables in LaTeX.