Install any skill in seconds. Free to start, no credit card required.
Get Started Free →brycewang-stanford/tables-and-figures
Use when generating a LaTeX results table, creating a figure for a paper, formatting descriptive statistics, preparing regression output for publication, or producing vector-quality graphics. Enforces booktabs, threeparttable, vector PDFs, and script-generated output.
Passed 20 of 21 test cases with the skill, and 10 of 21 without it.
and 13 more in the full report
11 fixed10 passed either way1 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 11 test cases the skill fixed. Same model, same prompt, with and without the skill.
What exact naming conventions should be used for table TeX files and figure graphic files generated by project scripts?
| Checked | Without skill | With skill |
|---|---|---|
| Requires table filenames to start with tab_ and end with .tex. | Passed | Passed |
| Requires figure filenames to start with fig_ and end with .pdf. | Missed | Passed |
The instructions your model reads when the skill loads.
This skill produces publication-quality tables and figures that are regenerated by scripts, not hand-edited. Tables use booktabs for professional rules and threeparttable for integrated notes. Figures are vector PDFs — PNG and JPG are forbidden in the final paper. Every table and figure comes from a script under code/ and is included in the paper via \input{} or \includegraphics{}.
Generate every table and figure from a script in code/ that reads from data/processed/ and writes to output/tables/ or output/figures/. Never hand-edit the output file.
Use booktabs rules in tables. \toprule, \midrule, \bottomrule. Never \hline. Never vertical bars.
Wrap every table in threeparttable with a notes block documenting: standard error type, significance convention, sample, data source.
Save figures as vector PDF. Use ggplot2 with ggsave(..., device = cairo_pdf) in R, or matplotlib.pyplot.savefig(..., format='pdf') in Python. Raster formats (PNG, JPG) are forbidden in the final paper.
Include in the paper with \input{} or \includegraphics{}. Never paste numbers or copy images.
Use the naming convention:
tab_<purpose>.tex — tab_descriptives.tex, tab_main_results.tex, tab_robustness.texfig_<purpose>.pdf — fig_event_study.pdf, fig_trends.pdfTable notes and figure captions follow the user's paper language. The file names and script comments stay in English; the user-facing text in the notes and captions follows the paper's language setting.
No table may overflow the text width. After generating a table, verify it fits within \linewidth. If it overflows:
@{} column separators or \setlength{\tabcolsep}{3pt}.\resizebox{\linewidth}{!}{...} — but only if font remains readable.pdflscape package (\begin{landscape}...\end{landscape}). Add \usepackage{pdflscape} to the preamble.
Never let a table bleed into the margin. After compilation, check for Overfull \hbox warnings on table lines and fix them.test cases passed, vs 10 / 21 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.