/08-ndpvt-web-latex-document-skill
Universal LaTeX document skill: create, compile, and convert any document to professional PDF with PNG previews. Supports resumes, reports, cover letters, invoices, academic papers, theses/dissertations, academic CVs, presentations (Beamer), scientific posters, formal letters,
$ npx -y skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill 08-ndpvt-web-latex-document-skill --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/08-ndpvt-web-latex-document-skill
Context preview
The summary Claude sees to decide when to auto-load this skill.
Universal LaTeX document skill: create, compile, and convert any document to professional PDF with PNG previews. Supports resumes, reports, cover letters, invoices, academic papers, theses/dissertations, academic CVs, presentations (Beamer), scientific posters, formal letters,
SKILL.md
08-ndpvt-web-latex-document-skill.SKILL.mdname: latex-document
description: >
Universal LaTeX document skill: create, compile, and convert any document to
professional PDF with PNG previews. Supports resumes, reports, cover letters,
invoices, academic papers, theses/dissertations, academic CVs, presentations
(Beamer), scientific posters, formal letters, exams/quizzes, books,
cheat sheets, reference cards, exam formula sheets,
fillable PDF forms (hyperref form fields), conditional content (etoolbox toggles),
mail merge from CSV/JSON (Jinja2 templates), version diffing (latexdiff),
charts (pgfplots + matplotlib), tables (booktabs + CSV import), images (TikZ),
Mermaid diagrams, AI-generated images, watermarks, landscape pages,
bibliography/citations (BibTeX/biblatex), multi-language/CJK (auto XeLaTeX),
algorithms/pseudocode, colored boxes (tcolorbox), SI units (siunitx),
Pandoc format conversion (Markdown/DOCX/HTML ↔ LaTeX),
and PDF-to-LaTeX conversion of handwritten or printed documents (math, business,
legal, general). Compile script supports pdflatex, xelatex, lualatex with
auto-detection, latexmk backend, texfot log filtering, PDF/A output, and
verbosity control (--verbose/--quiet). Empirically optimized scaling: single agent 1-10 pages, split
11-20, batch-7 pipeline 21+. Use when user asks to: (1) create a resume/CV/cover
letter, (2) write a LaTeX document, (3) create PDF with tables/charts/images,
(4) compile a .tex file, (5) make a report/invoice/presentation, (6) anything
involving LaTeX or pdflatex, (7) convert/OCR a PDF to LaTeX, (8) convert
handwritten notes, (9) create charts/graphs/diagrams, (10) create slides,
(11) write a thesis or dissertation, (12) create an academic CV, (13) create
a poster, (14) create an exam/quiz, (15) create a book, (16) convert between
document formats (Markdown, DOCX, HTML to/from LaTeX), (17) generate Mermaid
diagrams for LaTeX, (18) create a formal business letter, (19) create a cheat
sheet or reference card, (20) create an exam formula sheet or crib sheet,
(21) condense lecture notes/PDFs into a cheat sheet,
(22) create a fillable PDF form with text fields/checkboxes/dropdowns,
(23) create a document with conditional content/toggles (show/hide sections),
(24) generate batch/mail-merge documents from CSV/JSON data,
(25) create a version diff PDF (latexdiff) highlighting changes between documents,
(26) create a homework or assignment submission with problems and solutions,
(27) create a lab report with data tables, graphs, and error analysis,
(28) encrypt or password-protect a PDF,
(29) merge multiple PDFs into one,
(30) optimize/compress a PDF for web or email,
(31) lint or check a LaTeX document for common issues,
(32) count words in a LaTeX document,
(33) analyze document statistics (figures, tables, citations),
(34) fetch BibTeX from a DOI,
(35) convert a Graphviz .dot file to PDF/PNG,
(36) convert a PlantUML .puml file to PDF/PNG,
(37) create a one-pager/fact sheet/executive summary,
(38) create a datasheet or product specification sheet,
(39) extract pages from a PDF (page ranges, odd/even),
(40) check LaTeX package availability before compiling,
(41) analyze citations and cross-reference with .bib files,
(42) debug LaTeX compilation errors,
(43) make a document accessible (PDF/A, tagged PDF),
(44) create lecture notes or course handouts,
(45) fill an existing PDF form (fillable fields or non-fillable with annotations),
(46) extract text or tables from a PDF (pdfplumber, pypdf),
(47) OCR a scanned PDF to text (pytesseract),
(48) create a PDF programmatically with reportlab (Canvas, Platypus),
(49) rotate or crop PDF pages (pypdf),
(50) add a watermark to an existing PDF,
(51) extract metadata from a PDF (title, author, subject).
<!-- ╔══════════════════════════════════════════════════════════════╗ ║ 本文件为开源 Skill 原始文档,收录仅供学习与研究参考 ║ ║ CoPaper.AI 收集整理 | https://copaper.ai ║ ╚══════════════════════════════════════════════════════════════╝
来源仓库: https://github.com/ndpvt-web/latex-document-skill 项目名称: latex-document-skill 开源协议: MIT License 收录日期: 2026-04-02
声明: 本文件版权归原作者所有。此处收录旨在为社会科学实证研究者 提供 AI Agent Skills 的集中参考。如有侵权,请联系删除。 -->
LaTeX Document Skill
Create any LaTeX document, compile to PDF, and generate PNG previews. Convert PDFs of any type to LaTeX.
Workflow: Create Documents
1. Determine document type (resume, report, letter, invoice, article, thesis, academic CV, presentation, poster, exam, book, cheat sheet) 2. **If poster:** Run the poster sub-workflow (see [Poster Sub-Workflow](#poster-sub-workflow) below), then skip to step 5. 3. **If cheat sheet / reference card:** Run the cheat sheet sub-workflow (see [Cheat Sheet / Reference Card Sub-Workflow](#cheat-sheet--reference-card-sub-workflow) below), then skip to step 5. 4. **Ask the user which enrichment elements they want** (use AskUserQuestion tool with multiSelect). Offer relevant options based on document type:
- **AI-generated images** -- custom illustrations, diagrams, photos (uses generate-image skill)
- **Charts/graphs** -- bar, line, pie, scatter, heatmap (pgfplots or matplotlib)
- **Flowcharts/diagrams** -- process flows, architecture, decision trees (TikZ or Mermaid)
- **Citations/bibliography** -- academic references, footnotes, works cited (BibTeX/biblatex)
- **Tables with data** -- comparison matrices, financial data, statistics (booktabs)
- **Watermarks** -- DRAFT, CONFIDENTIAL, or company logo background
- Skip this step for simple documents (cover letters, invoices) or when the user has already specified exactly what they want.
5. Copy the appropriate template from `assets/templates/` or write from scratch 6. Customize content based on user requirements 7. Generate external assets based on user's element choices:
- AI images: `python3 <skill_path>/../generate-image/scripts/generate_image.py "prompt" --output ./outputs
Read more
name: latex-document description: > Universal LaTeX document skill: create, compile, and convert any document to professional PDF with PNG previews. Supports resumes, reports, cover letters, invoices, academic papers, theses/dissertations, academic CVs, presentations (Beamer), scientific posters, formal letters, exams/quizzes, books, cheat sheets, reference cards, exam formula sheets, fillable PDF forms (hyperref form fields), conditional content (etoolbox toggles), mail merge from CSV/JSON (Jinja2 templates), version diffing (latexdiff), charts (pgfplots + matplotlib), tables (booktabs + CSV import), images (TikZ), Mermaid diagrams, AI-generated images, watermarks, landscape pages, bibliography/citations (BibTeX/biblatex), multi-language/CJK (auto XeLaTeX), algorithms/pseudocode, colored boxes (tcolorbox), SI units (siunitx), Pandoc format conversion (Markdown/DOCX/HTML ↔ LaTeX), and PDF-to-LaTeX conversion of handwritten or printed documents (math, business, legal, general). Compile script supports pdflatex, xelatex, lualatex with auto-detection, latexmk backend, texfot log filtering, PDF/A output, and verbosity control (--verbose/--quiet). Empirically optimized scaling: single agent 1-10 pages, split 11-20, batch-7 pipeline 21+. Use when user asks to: (1) create a resume/CV/cover letter, (2) write a LaTeX document, (3) create PDF with tables/charts/images, (4) compile a .tex file, (5) make a report/invoice/presentation, (6) anything involving LaTeX or pdflatex, (7) convert/OCR a PDF to LaTeX, (8) convert handwritten notes, (9) create charts/graphs/diagrams, (10) create slides, (11) write a thesis or dissertation, (12) create an academic CV, (13) create a poster, (14) create an exam/quiz, (15) create a book, (16) convert between document formats (Markdown, DOCX, HTML to/from LaTeX), (17) generate Mermaid diagrams for LaTeX, (18) create a formal business letter, (19) create a cheat sheet or reference card, (20) create an exam formula sheet or crib sheet, (21) condense lecture notes/PDFs into a cheat sheet, (22) create a fillable PDF form with text fields/checkboxes/dropdowns, (23) create a document with conditional content/toggles (show/hide sections), (24) generate batch/mail-merge documents from CSV/JSON data, (25) create a version diff PDF (latexdiff) highlighting changes between documents, (26) create a homework or assignment submission with problems and solutions, (27) create a lab report with data tables, graphs, and error analysis, (28) encrypt or password-protect a PDF, (29) merge multiple PDFs into one, (30) optimize/compress a PDF for web or email, (31) lint or check a LaTeX document for common issues, (32) count words in a LaTeX document, (33) analyze document statistics (figures, tables, citations), (34) fetch BibTeX from a DOI, (35) convert a Graphviz .dot file to PDF/PNG, (36) convert a PlantUML .puml file to PDF/PNG, (37) create a one-pager/fact sheet/executive summary, (38) create a datasheet or product specification sheet, (39) extract pages from a PDF (page ranges, odd/even), (40) check LaTeX package availability before compiling, (41) analyze citations and cross-reference with .bib files, (42) debug LaTeX compilation errors, (43) make a document accessible (PDF/A, tagged PDF), (44) create lecture notes or course handouts, (45) fill an existing PDF form (fillable fields or non-fillable with annotations), (46) extract text or tables from a PDF (pdfplumber, pypdf), (47) OCR a scanned PDF to text (pytesseract), (48) create a PDF programmatically with reportlab (Canvas, Platypus), (49) rotate or crop PDF pages (pypdf), (50) add a watermark to an existing PDF, (51) extract metadata from a PDF (title, author, subject).
<!-- ╔══════════════════════════════════════════════════════════════╗ ║ 本文件为开源 Skill 原始文档,收录仅供学习与研究参考 ║ ║ CoPaper.AI 收集整理 | https://copaper.ai ║ ╚══════════════════════════════════════════════════════════════╝
来源仓库: https://github.com/ndpvt-web/latex-document-skill 项目名称: latex-document-skill 开源协议: MIT License 收录日期: 2026-04-02
声明: 本文件版权归原作者所有。此处收录旨在为社会科学实证研究者 提供 AI Agent Skills 的集中参考。如有侵权,请联系删除。 -->
LaTeX Document Skill
Create any LaTeX document, compile to PDF, and generate PNG previews. Convert PDFs of any type to LaTeX.
Workflow: Create Documents
1. Determine document type (resume, report, letter, invoice, article, thesis, academic CV, presentation, poster, exam, book, cheat sheet) 2. **If poster:** Run the poster sub-workflow (see [Poster Sub-Workflow](#poster-sub-workflow) below), then skip to step 5. 3. **If cheat sheet / reference card:** Run the cheat sheet sub-workflow (see [Cheat Sheet / Reference Card Sub-Workflow](#cheat-sheet--reference-card-sub-workflow) below), then skip to step 5. 4. **Ask the user which enrichment elements they want** (use AskUserQuestion tool with multiSelect). Offer relevant options based on document type:
- **AI-generated images** -- custom illustrations, diagrams, photos (uses generate-image skill)
- **Charts/graphs** -- bar, line, pie, scatter, heatmap (pgfplots or matplotlib)
- **Flowcharts/diagrams** -- process flows, architecture, decision trees (TikZ or Mermaid)
- **Citations/bibliography** -- academic references, footnotes, works cited (BibTeX/biblatex)
- **Tables with data** -- comparison matrices, financial data, statistics (booktabs)
- **Watermarks** -- DRAFT, CONFIDENTIAL, or company logo background
- Skip this step for simple documents (cover letters, invoices) or when the user has already specified exactly what they want.
5. Copy the appropriate template from `assets/templates/` or write from scratch 6. Customize content based on user requirements 7. Generate external assets based on user's element choices:
- AI images: `python3 <skill_path>/../generate-image/scripts/generate_image.py "prompt" --output ./outputs
📌 文档结构(2026-07-22 起): 本文件是中文默认入口 —— banner + badges + 信任面 + 9 阶段流水线速览 + 76 行合集总表。 每个合集的完整描述、按用途分组、精确数字、验证方法在 docs/CONTENT_ZH.md(扩展正文,总表行内的 → 直接跳转到对应锚点)。 English version: README-en.md · 中文扩展正文:docs/CONTENT_ZH.md · README-zh-CN.md 已弃用(重定向占位) 🌐 语言: English |
Other skills on auto-empirical-research-skills.
- /pipeline
Classical end-to-end empirical analysis workflow in the traditional Python econometric stack — pandas + numpy + scipy + statsmodels + linearmodels + pyfixest + rdrobust + econml + causalml + matplotlib/seaborn. **Defaults to economics empirical-paper style** (AER / QJE / AEJ) —
Open skill - /pipeline
Classical end-to-end empirical analysis workflow in the modern tidyverse + econometrics R ecosystem — dplyr + tidyr + haven + fixest + sandwich + lmtest + clubSandwich + AER + ivreg + did + bacondecomp + HonestDiD + eventstudyr + rdrobust + rddensity + Synth + gsynth + synthdid
Open skill - /pipeline
Classical end-to-end empirical analysis workflow in the traditional Stata ecosystem — native Stata + reghdfe + ivreg2 + csdid + did_imputation + eventstudyinteract + sdid + rdrobust + rddensity + synth + synth_runner + psmatch2 + teffects + ebalance + coefplot + esttab + asdoc +
Open skill - /00-Full-empirical-analysis-skill_StatsPAI
Use when the user asks to run a full empirical / causal analysis in Python — by default in the style of an applied economics paper (AER / QJE / JPE / ReStud / AEJ) with DID / RD / IV / SCM / DML / matching, written-out estimating equation + identifying assumption, Table 1 /
Open skill - /00.1-Full-empirical-analysis-skill_Python
Classical end-to-end empirical analysis workflow in the traditional Python econometric stack — pandas + numpy + scipy + statsmodels + linearmodels + pyfixest + rdrobust + econml + causalml + matplotlib/seaborn. **Defaults to economics empirical-paper style** (AER / QJE / AEJ) —
Open skill - /00.2-Full-empirical-analysis-skill_Stata
Classical end-to-end empirical analysis workflow in the traditional Stata ecosystem — native Stata + reghdfe + ivreg2 + csdid + did_imputation + eventstudyinteract + sdid + rdrobust + rddensity + synth + synth_runner + psmatch2 + teffects + ebalance + coefplot + esttab + asdoc +
Open skill

