{"id":"e4db0549-8670-40d2-a95c-082a18dc2036","shortId":"h67bcn","kind":"skill","title":"latex-document","tagline":"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, ex","description":"<!--\n  ╔══════════════════════════════════════════════════════════════╗\n  ║  本文件为开源 Skill 原始文档，收录仅供学习与研究参考        ║\n  ║  CoPaper.AI 收集整理 | https://copaper.ai                  ║\n  ╚══════════════════════════════════════════════════════════════╝\n\n  来源仓库: https://github.com/ndpvt-web/latex-document-skill\n  项目名称: latex-document-skill\n  开源协议: MIT License\n  收录日期: 2026-04-02\n\n  声明: 本文件版权归原作者所有。此处收录旨在为社会科学实证研究者\n  提供 AI Agent Skills 的集中参考。如有侵权，请联系删除。\n-->\n\n# LaTeX Document Skill\n\nCreate any LaTeX document, compile to PDF, and generate PNG previews. Convert PDFs of any type to LaTeX.\n\n## Workflow: Create Documents\n\n1. Determine document type (resume, report, letter, invoice, article, thesis, academic CV, presentation, poster, exam, book, cheat sheet)\n2. **If poster:** Run the poster sub-workflow (see [Poster Sub-Workflow](#poster-sub-workflow) below), then skip to step 5.\n3. **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.\n4. **Ask the user which enrichment elements they want** (use AskUserQuestion tool with multiSelect). Offer relevant options based on document type:\n   - **AI-generated images** -- custom illustrations, diagrams, photos (uses generate-image skill)\n   - **Charts/graphs** -- bar, line, pie, scatter, heatmap (pgfplots or matplotlib)\n   - **Flowcharts/diagrams** -- process flows, architecture, decision trees (TikZ or Mermaid)\n   - **Citations/bibliography** -- academic references, footnotes, works cited (BibTeX/biblatex)\n   - **Tables with data** -- comparison matrices, financial data, statistics (booktabs)\n   - **Watermarks** -- DRAFT, CONFIDENTIAL, or company logo background\n   - Skip this step for simple documents (cover letters, invoices) or when the user has already specified exactly what they want.\n5. Copy the appropriate template from `assets/templates/` or write from scratch\n6. Customize content based on user requirements\n7. Generate external assets based on user's element choices:\n   - AI images: `python3 <skill_path>/../generate-image/scripts/generate_image.py \"prompt\" --output ./outputs/figure.png`\n   - matplotlib charts: `python3 <skill_path>/scripts/generate_chart.py <type> --data '<json>' --output chart.png`\n   - Mermaid diagrams: `bash <skill_path>/scripts/mermaid_to_image.sh diagram.mmd output.png`\n8. **For documents 5+ pages:** Review the [Long-Form Document Anti-Patterns](#long-form-document-anti-patterns-must-read-for-reports-theses-books) section and run the Content Generation Checklist before compiling. Key rules: prefer prose over bullets, include global list compaction, escape `<`/`>` in text mode, vary section formats, limit `\newpage`, size images at 0.75-0.85 textwidth.\n9. Compile with `scripts/compile_latex.sh` (auto-detects XeLaTeX for CJK/RTL, glossaries, bibliography)\n10. Show PNG preview to user, deliver PDF\n\n### Poster Sub-Workflow\n\nWhen the user requests a poster: read [references/poster-design-guide.md](references/poster-design-guide.md) for the complete workflow including conference size presets (NeurIPS/ICML/CVPR/ICLR dimensions), layout archetypes (Traditional/BetterPoster/Visual-Heavy), color schemes, and typography standards. Use `poster.tex` (portrait) or `poster-landscape.tex` (landscape). Ask the user for conference/orientation, layout style, and color scheme using AskUserQuestion, then proceed to step 5.\n\n### Cheat Sheet / Reference Card Sub-Workflow\n\nWhen the user requests a cheat sheet, reference card, or formula sheet:\n\n1. Read [references/cheatsheet-guide.md](references/cheatsheet-guide.md) for the complete workflow including template selection, content budgets, typography rules, and the PDF-to-cheatsheet pipeline.\n2. Select template: `cheatsheet.tex` (general, 3-col landscape), `cheatsheet-exam.tex` (exam formula, 2-col portrait), or `cheatsheet-code.tex` (programming, 4-col landscape).\n3. Follow the guide's workflow steps, then return to main workflow step 5.\n\n## Workflow: Mail Merge (Batch Personalized Documents)\n\nGenerate N personalized documents from a LaTeX template + CSV/JSON data source using `scripts/mail_merge.py`. Template syntax: `{{variable}}` for simple substitution, Jinja2 (`<< >>`, `<% %>`) for conditionals/loops. See `assets/templates/mail-merge-letter.tex` for an example. Full guide: [references/interactive-features.md](references/interactive-features.md).\n\n## Workflow: Version Diffing (latexdiff)\n\nGenerate highlighted change-tracked PDFs using `scripts/latex_diff.sh`. Supports file-to-file diff, git revision diff, multi-file flatten, and custom markup styles. Full guide: [references/interactive-features.md](references/interactive-features.md).\n\n## Workflow: Convert Document Formats\n\nConvert between Markdown, DOCX, HTML, and LaTeX using `scripts/convert_document.sh`. Full guide: [references/format-conversion.md](references/format-conversion.md).\n\n## Workflow: Convert PDF to LaTeX\n\nConvert existing PDFs (handwritten notes, printed reports, legal docs) to LaTeX. Full pipeline: [references/pdf-conversion.md](references/pdf-conversion.md).\n\n**Quick steps**: Split PDF into page images (`scripts/pdf_to_images.sh`), select a conversion profile, create shared preamble, apply scaling strategy, validate with `scripts/validate_latex.py`, concatenate, compile.\n\n**Scaling strategy**: 1-10 pages = single agent; 11-20 pages = split in half (2 agents); 21+ pages = batch-7 pipeline (ceil(N/7) agents with `run_in_background: true`).\n\n**Conversion profiles** (in `references/profiles/`): `math-notes.md` (equations, theorems -- has beautiful mode), `business-document.md` (reports, memos), `legal-document.md` (contracts, statutes), `general-notes.md` (handwritten, mixed content).\n\n## Workflow: Fill PDF Forms\n\nFill existing PDF forms -- both fillable (with form fields) and non-fillable (image-based). Full guide: [references/pdf-operations.md](references/pdf-operations.md).\n\n**Step 1: Check form type:**\n```bash\npython3 <skill_path>/scripts/pdf_check_form.py form.pdf\n```\n\n**If fillable** (has form fields):\n```bash\n# Extract field metadata\npython3 <skill_path>/scripts/pdf_extract_fields.py form.pdf field_info.json\n# Create field_values.json with values for each field, then fill\npython3 <skill_path>/scripts/pdf_fill_form.py form.pdf field_values.json output.pdf\n```\n\n**If non-fillable** (no form fields):\n```bash\n# Convert to images for visual analysis\nbash <skill_path>/scripts/pdf_to_images.sh form.pdf ./tmp/pages\n# Visually identify fields, create fields.json with bounding boxes\n# Validate bounding boxes (+ optional validation image)\npython3 <skill_path>/scripts/pdf_validate_boxes.py fields.json --image page_1.png --output validation.png --page 1\n# Fill with text annotations\npython3 <skill_path>/scripts/pdf_fill_annotations.py form.pdf fields.json output.pdf\n```\n\n## Workflow: Advanced PDF Operations\n\nFor text/table extraction (pdfplumber), OCR (pytesseract), programmatic PDF creation (reportlab), watermarking, page rotation/cropping, metadata extraction, JavaScript libraries (pdf-lib, pdfjs-dist), and batch processing, see [references/pdf-operations.md](references/pdf-operations.md).\n\n## Compile Script\n\n```bash\n# Basic compile (auto-detects engine)\nbash <skill_path>/scripts/compile_latex.sh document.tex\n\n# Compile + generate PNG previews\nbash <skill_path>/scripts/compile_latex.sh document.tex --preview\n\n# Compile + PNG in specific directory\nbash <skill_path>/scripts/compile_latex.sh document.tex --preview --preview-dir ./outputs\n\n# Force a specific engine\nbash <skill_path>/scripts/compile_latex.sh document.tex --engine xelatex\nbash <skill_path>/scripts/compile_latex.sh document.tex --engine lualatex\n\n# Use latexmk for automatic multi-pass (recommended for complex documents)\nbash <skill_path>/scripts/compile_latex.sh document.tex --use-latexmk --preview\n\n# PDF/A output for thesis submissions and archival compliance\nbash <skill_path>/scripts/compile_latex.sh document.tex --pdfa\n\n# Verbose output for debugging compilation issues\nbash <skill_path>/scripts/compile_latex.sh document.tex --verbose\n\n# Quiet mode for batch/CI jobs (only errors shown)\nbash <skill_path>/scripts/compile_latex.sh document.tex --quiet\n\n# Clean auxiliary files only (no compilation)\nbash <skill_path>/scripts/compile_latex.sh document.tex --clean\n```\n\n### Compilation Flags\n\n| Flag | Description |\n|---|---|\n| `--preview` | Generate PNG previews of each page after compilation |\n| `--preview-dir DIR` | Directory for PNG output (default: same as .tex file) |\n| `--engine ENGINE` | Force engine: `pdflatex`, `xelatex`, or `lualatex` |\n| `--use-latexmk` | Use `latexmk` as compilation backend (auto multi-pass, bibliography, index) |\n| `--verbose` | Show full compilation output (all engine logs) |\n| `--quiet` | Suppress all non-error output |\n| `--clean` | Remove auxiliary files (.aux, .log, .bbl, .fdb_latexmk, etc.) and exit |\n| `--pdfa` | Produce PDF/A-2b compliant output (auto-injects `pdfx` package) |\n| `--auto-fix` | Auto-fix common compilation errors (float placement, encoding) |\n\n### Compilation Backends\n\n**Manual multi-pass (default):** Runs the engine multiple times with bibliography/index/glossary passes as needed. This is the traditional approach and works without `latexmk` installed.\n\n**latexmk (`--use-latexmk`):** Uses `latexmk` for automatic dependency-driven compilation. Recommended for complex documents with bibliographies, indexes, glossaries, or cross-references -- latexmk determines the correct number of passes automatically. Requires `latexmk` (included with TeX Live).\n\n### Log Filtering (texfot)\n\nWhen `texfot` is installed (included with TeX Live), compilation output is automatically filtered to show only relevant warnings and errors, suppressing noisy package loading messages. This applies in the default verbosity mode. Use `--verbose` to see unfiltered output, or `--quiet` to suppress all non-error output.\n\n**Engine auto-detection**: If the .tex file uses `fontspec`, `xeCJK`, or `polyglossia`, the script automatically uses `xelatex`. If it uses `luacode` or `luatextra`, it uses `lualatex`. Otherwise defaults to `pdflatex`. Override with `--engine`.\n\nThe script auto-installs `texlive` (including `texlive-science`, `texlive-xetex`, `texlive-luatex`, `biber`) and `poppler-utils` if missing. It auto-detects `\bibliography{}` (runs bibtex), `\u0007ddbibresource{}` (runs biber), `\\makeindex` (runs makeindex), `\\makeglossaries` (runs makeglossaries), runs the correct number of passes, generates PNG previews with `pdftoppm`, and cleans auxiliary files.\n\n## Script & Tool Reference\n\nFor PDF utilities (encrypt, merge, optimize, extract pages, pdf-to-images), LaTeX quality tools (lint, word count, analysis, package check, citations), compilation auto-fix, bibliography fetching, and diagram scripts (Mermaid, Graphviz, PlantUML), see [references/script-tools.md](references/script-tools.md).\n\n## Templates\n\nCopy from `assets/templates/` and customize.\n\n### Resume Templates (5 ATS-Compatible Options)\n\nSelect based on experience level, industry, and ATS requirements. See [references/resume-ats-guide.md](references/resume-ats-guide.md) for full ATS guidance.\n\n| Template | Best For | Key Feature | ATS Score |\n|---|---|---|---|\n| **`resume-classic-ats.tex`** | Finance, law, government, any ATS portal | Zero graphics, plain text only, maximum parse safety | 10/10 |\n| **`resume-modern-professional.tex`** | Tech, corporate, general professional | Subtle color accents, clean design, good ATS + human appeal | 9/10 |\n| **`resume-executive.tex`** | VP, Director, C-suite (5-15+ years) | Two-page, executive summary, board roles, P&L focus | 9/10 |\n| **`resume-technical.tex`** | Software, data, engineering roles | Skills-first hybrid, projects section, tech stack emphasis | 9/10 |\n| **`resume-entry-level.tex`** | New graduates, career starters | Education-first, one page, coursework, activities | 9/10 |\n\nAll 5 templates follow ATS rules: single-column, no graphics/images, no tables for layout, standard section headings, contact info in body (not header/footer).\n\n### STEM Student Templates\n\n- **`homework.tex`** -- Homework/assignment submission template (`article` class, 11pt) with toggle-able solutions (`\\showsolutionstrue`/`\\showsolutionsfalse`), custom problem/solution environments, honor code section, `fancyhdr` headers, `amsmath`+`amssymb`+`amsthm` math, `listings` code highlighting (Python, Java, C++, Matlab styles), `enumitem` for (a), (b), (c) sub-parts, `hyperref`. Customization via `","tags":["ndpvt","web","latex","document","skill","awesome","agent","skills","for","empirical","research","brycewang-stanford"],"capabilities":["skill","source-brycewang-stanford","skill-08-ndpvt-web-latex-document-skill","topic-academic-research","topic-agent-skills","topic-ai-agent","topic-awesome-list","topic-communication","topic-copaper","topic-economics","topic-education","topic-empirical-research","topic-international-relations","topic-political-science","topic-psychology"],"categories":["Awesome-Agent-Skills-for-Empirical-Research"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/brycewang-stanford/Awesome-Agent-Skills-for-Empirical-Research/08-ndpvt-web-latex-document-skill","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add brycewang-stanford/Awesome-Agent-Skills-for-Empirical-Research","source_repo":"https://github.com/brycewang-stanford/Awesome-Agent-Skills-for-Empirical-Research","install_from":"skills.sh"}},"qualityScore":"0.700","qualityRationale":"deterministic score 0.70 from registry signals: · indexed on github topic:agent-skills · 598 github stars · SKILL.md body (12,555 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-05-02T12:52:55.743Z","embedding":null,"createdAt":"2026-04-18T22:12:41.492Z","updatedAt":"2026-05-02T12:52:55.743Z","lastSeenAt":"2026-05-02T12:52:55.743Z","tsv":"'-0.85':340 '-10':624 '-15':1335 '-20':629 '-7':639 '/../generate-image/scripts/generate_image.py':265 '/outputs':844 '/outputs/figure.png':268 '/scripts/compile_latex.sh':822,829,838,850,855,871,886,896,908,918 '/scripts/generate_chart.py':272 '/scripts/mermaid_to_image.sh':279 '/scripts/pdf_check_form.py':700 '/scripts/pdf_extract_fields.py':712 '/scripts/pdf_fill_annotations.py':775 '/scripts/pdf_fill_form.py':725 '/scripts/pdf_to_images.sh':744 '/scripts/pdf_validate_boxes.py':762 '/tmp/pages':746 '0.75':339 '1':62,435,623,694,769 '10':354 '10/10':1312 '11':628 '11pt':1409 '2':80,457,468,634 '21':636 '3':104,462,477 '4':139,474 '5':103,138,234,285,415,490,1269,1334,1377 '6':245 '7':252 '8':282 '9':342 '9/10':1327,1347,1362,1375 'abl':1413 'academ':26,29,72,192 'accent':1320 'activ':1374 'advanc':780 'agent':627,635,643 'ai':161,262 'ai-gener':160 'alreadi':228 'amsmath':1425 'amssymb':1426 'amsthm':1427 'analysi':742,1242 'annot':773 'anti':294,300 'anti-pattern':293 'appeal':1326 'appli':613,1112 'approach':1039 'appropri':237 'archetyp':386 'architectur':185 'archiv':883 'articl':70,1407 'ask':140,399 'askuserquest':149,410 'asset':255 'assets/templates':240,1264 'assets/templates/mail-merge-letter.tex':520 'at':1271,1281,1288,1295,1302,1324,1380 'ats-compat':1270 'auto':347,818,963,1002,1007,1010,1135,1170,1192,1248 'auto-detect':346,817,1134,1191 'auto-fix':1006,1009,1247 'auto-inject':1001 'auto-instal':1169 'automat':862,1052,1076,1097,1148 'aux':988 'auxiliari':912,986,1219 'b':1440 'backend':962,1019 'background':213,647 'bar':174 'base':156,248,256,688,1275 'bash':278,698,707,736,743,814,821,828,837,849,854,870,885,895,907,917 'basic':815 'batch':494,638,807 'batch/ci':902 'bbl':990 'beamer':32 'beauti':657 'best':1291 'biber':1183,1199 'bibliographi':353,967,1062,1250 'bibliography/index/glossary':1031 'bibtex':1196 'bibtex/biblatex':197 'board':1342 'bodi':1397 'book':77,307 'booktab':206 'bound':753,756 'box':754,757 'budget':447 'bullet':322 'business-document.md':659 'c':1332,1434,1441 'c-suit':1331 'card':109,121,130,419,431 'career':1366 'ceil':641 'chang':535 'change-track':534 'chart':270 'chart.png':275 'charts/graphs':173 'cheat':78,106,112,118,126,416,428 'cheat-sheet':125 'cheatsheet':455 'cheatsheet-code.tex':472 'cheatsheet-exam.tex':465 'cheatsheet.tex':460 'check':695,1244 'checklist':314 'choic':261 'citat':1245 'citations/bibliography':191 'cite':196 'cjk/rtl':351 'class':1408 'clean':911,920,984,1218,1321 'code':1421,1430 'col':463,469,475 'color':388,407,1319 'column':1384 'common':1012 'compact':326 'compani':211 'comparison':201 'compat':1272 'compil':9,45,316,343,620,812,816,824,832,893,916,921,933,961,972,1013,1018,1056,1094,1246 'complet':377,441 'complex':868,1059 'complianc':884 'compliant':999 'concaten':619 'conditionals/loops':518 'confer':380 'conference/orientation':403 'confidenti':209 'contact':1394 'content':247,312,446,668 'contract':663 'convers':608,649 'convert':11,52,562,565,579,583,737 'copi':235,1262 'corpor':1315 'correct':1072,1208 'count':1241 'coursework':1373 'cover':23,220 'creat':8,41,60,610,715,750 'creation':791 'cross':1067 'cross-refer':1066 'csv/json':505 'custom':164,246,554,1266,1417,1446 'cv':73 'cvs':30 'data':200,204,273,506,1350 'ddbibresourc':1197 'debug':892 'decis':186 'default':942,1024,1115,1161 'deliv':360 'depend':1054 'dependency-driven':1053 'descript':924 'design':1322 'detect':348,819,1136,1193 'determin':63,1070 'diagram':166,277,1253 'diagram.mmd':280 'dif':530 'diff':545,548 'dimens':384 'dir':843,936,937 'director':1330 'directori':836,938 'dist':805 'doc':591 'document':3,6,13,39,44,61,64,158,219,284,292,299,496,500,563,869,1060 'document.tex':823,830,839,851,856,872,887,897,909,919 'docx':568 'draft':208 'driven':1055 'educ':1369 'education-first':1368 'element':145,260 'emphasi':1361 'encod':1017 'encrypt':1227 'engin':820,848,852,857,947,948,950,975,1027,1133,1166,1351 'enrich':144 'enumitem':1437 'environ':1419 'equat':654 'error':905,982,1014,1105,1131 'escap':327 'etc':993 'ewpag':335 'ex':37 'exact':230 'exam':76,466 'exampl':523 'execut':1340 'exist':584,674 'exit':995 'experi':1277 'extern':254 'extract':708,785,797,1230 'fancyhdr':1423 'fdb':991 'featur':1294 'fetch':1251 'field':681,706,709,721,735,749 'field_info.json':714 'field_values.json':716,727 'fields.json':751,763,777 'file':542,544,551,913,946,987,1140,1220 'file-to-fil':541 'fill':670,673,723,770 'fillabl':678,685,703,732 'filter':1084,1098 'financ':1298 'financi':203 'first':1355,1370 'fix':1008,1011,1249 'flag':922,923 'flatten':552 'float':1015 'flow':184 'flowcharts/diagrams':182 'focus':1346 'follow':478,1379 'fontspec':1142 'footnot':194 'forc':845,949 'form':291,298,672,676,680,696,705,734 'form.pdf':701,713,726,745,776 'formal':35 'format':333,564 'formula':433,467 'full':524,557,574,594,689,971,1287 'general':461,1316 'general-notes.md':665 'generat':49,162,170,253,313,497,532,825,926,1212 'generate-imag':169 'git':546 'global':324 'glossari':352,1064 'good':1323 'govern':1300 'graduat':1365 'graphic':1305 'graphics/images':1386 'graphviz':1256 'guid':480,525,558,575,690 'guidanc':1289 'half':633 'handwritten':586,666 'head':1393 'header':1424 'header/footer':1399 'heatmap':178 'highlight':533,1431 'homework.tex':1403 'homework/assignment':1404 'honor':1420 'html':569 'human':1325 'hybrid':1356 'hyperref':1445 'ibliographi':1194 'identifi':748 'illustr':165 'imag':163,171,263,337,604,687,739,760,764,1235 'image-bas':686 'includ':323,379,443,1079,1090,1173 'index':968,1063 'industri':1279 'info':1395 'inject':1003 'instal':1044,1089,1171 'invoic':25,69,222 'issu':894 'java':1433 'javascript':798 'jinja2':516 'job':903 'key':317,1293 'l':1345 'landscap':398,464,476 'latex':2,5,38,43,58,503,571,582,593,1236 'latex-docu':1 'latexdiff':531 'latexmk':860,875,957,959,992,1043,1045,1048,1050,1069,1078 'law':1299 'layout':385,404,1390 'legal':590 'legal-document.md':662 'letter':24,36,68,221 'level':1278 'lib':802 'librari':799 'limit':334 'line':175 'lint':1239 'list':325,1429 'live':1082,1093 'load':1109 'log':976,989,1083 'logo':212 'long':290,297 'long-form':289 'long-form-document-anti-patterns-must-read-for-reports-theses-book':296 'luacod':1154 'lualatex':858,954,1159 'luatex':1182 'luatextra':1156 'mail':492 'main':487 'makeglossari':1203,1205 'makeindex':1200,1202 'manual':1020 'markdown':567 'markup':555 'math':1428 'math-notes.md':653 'matlab':1435 'matplotlib':181,269 'matric':202 'maximum':1309 'memo':661 'merg':493,1228 'mermaid':190,276,1255 'messag':1110 'metadata':710,796 'miss':1189 'mix':667 'mode':330,658,900,1117 'multi':550,864,965,1022 'multi-fil':549 'multi-pass':863,964,1021 'multipl':1028 'multiselect':152 'must':302 'n':498 'n/7':642 'need':1034 'neurips/icml/cvpr/iclr':383 'new':1364 'noisi':1107 'non':684,731,981,1130 'non-error':980,1129 'non-fil':683,730 'note':587 'number':1073,1209 'ocr':787 'offer':153 'one':1371 'oper':782 'optim':1229 'option':155,758,1273 'otherwis':1160 'output':267,274,766,878,890,941,973,983,1000,1095,1123,1132 'output.pdf':728,778 'output.png':281 'overrid':1164 'p':1344 'packag':1005,1108,1243 'page':286,603,625,630,637,768,794,931,1231,1339,1372 'page_1.png':765 'paper':27 'pars':1310 'part':1444 'pass':865,966,1023,1032,1075,1211 'pattern':295,301 'pdf':16,47,361,453,580,601,671,675,781,790,801,1225,1233 'pdf-lib':800 'pdf-to-cheatsheet':452 'pdf-to-imag':1232 'pdf/a':877 'pdf/a-2b':998 'pdfa':888,996 'pdfjs':804 'pdfjs-dist':803 'pdflatex':951,1163 'pdfplumber':786 'pdfs':53,537,585 'pdftoppm':1216 'pdfx':1004 'person':495,499 'pgfplot':179 'photo':167 'pie':176 'pipelin':456,595,640 'placement':1016 'plain':1306 'plantuml':1257 'png':18,50,356,826,833,927,940,1213 'polyglossia':1145 'poppler':1186 'poppler-util':1185 'portal':1303 'portrait':395,470 'poster':34,75,82,85,90,95,362,371 'poster-landscape.tex':397 'poster-sub-workflow':94 'poster.tex':394 'preambl':612 'prefer':319 'present':31,74 'preset':382 'preview':19,51,357,827,831,840,842,876,925,928,935,1214 'preview-dir':841,934 'print':588 'problem/solution':1418 'proceed':412 'process':183,808 'produc':997 'profession':15,1317 'profil':609,650 'program':473 'programmat':789 'project':1357 'prompt':266 'prose':320 'pytesseract':788 'python':1432 'python3':264,271,699,711,724,761,774 'qualiti':1237 'quick':598 'quiet':899,910,977,1125 'read':303,372,436 'recommend':866,1057 'refer':108,120,129,193,418,430,1068,1223 'reference-card-sub-workflow':128 'references/cheatsheet-guide.md':437,438 'references/format-conversion.md':576,577 'references/interactive-features.md':526,527,559,560 'references/pdf-conversion.md':596,597 'references/pdf-operations.md':691,692,810,811 'references/poster-design-guide.md':373,374 'references/profiles':652 'references/resume-ats-guide.md':1284,1285 'references/script-tools.md':1259,1260 'relev':154,1102 'remov':985 'report':22,67,305,589,660 'reportlab':792 'request':369,426 'requir':251,1077,1282 'resum':21,66,1267 'resume-classic-ats.tex':1297 'resume-entry-level.tex':1363 'resume-executive.tex':1328 'resume-modern-professional.tex':1313 'resume-technical.tex':1348 'return':485 'review':287 'revis':547 'role':1343,1352 'rotation/cropping':795 'rule':318,449,1381 'run':83,110,310,645,1025,1195,1198,1201,1204,1206 'safeti':1311 'scale':614,621 'scatter':177 'scheme':389,408 'scienc':1176 'scientif':33 'score':1296 'scratch':244 'script':813,1147,1168,1221,1254 'scripts/compile_latex.sh':345 'scripts/convert_document.sh':573 'scripts/latex_diff.sh':539 'scripts/mail_merge.py':509 'scripts/pdf_to_images.sh':605 'scripts/validate_latex.py':618 'section':308,332,1358,1392,1422 'see':89,117,519,809,1121,1258,1283 'select':445,458,606,1274 'share':611 'sheet':79,107,113,119,127,417,429,434 'show':355,970,1100 'shown':906 'showsolutionsfals':1416 'showsolutionstru':1415 'simpl':218,514 'singl':626,1383 'single-column':1382 'size':336,381 'skill':7,40,172,1354 'skill-08-ndpvt-web-latex-document-skill' 'skills-first':1353 'skip':100,135,214 'softwar':1349 'solut':1414 'sourc':507 'source-brycewang-stanford' 'specif':835,847 'specifi':229 'split':600,631 'stack':1360 'standard':392,1391 'starter':1367 'statist':205 'statut':664 'stem':1400 'step':102,137,216,414,483,489,599,693 'strategi':615,622 'student':1401 'style':405,556,1436 'sub':87,92,96,115,123,131,364,421,1443 'sub-part':1442 'sub-workflow':86,91,114,122,363,420 'submiss':881,1405 'substitut':515 'subtl':1318 'suit':1333 'summari':1341 'support':20,540 'suppress':978,1106,1127 'syntax':511 'tabl':198,1388 'tech':1314,1359 'templat':238,444,459,504,510,1261,1268,1290,1378,1402,1406 'tex':945,1081,1092,1139 'texfot':1085,1087 'texliv':1172,1175,1178,1181 'texlive-luatex':1180 'texlive-sci':1174 'texlive-xetex':1177 'text':329,772,1307 'text/table':784 'textwidth':341 'theorem':655 'these':306 'theses/dissertations':28 'thesi':71,880 'tikz':188 'time':1029 'toggl':1412 'toggle-':1411 'tool':150,1222,1238 'topic-academic-research' 'topic-agent-skills' 'topic-ai-agent' 'topic-awesome-list' 'topic-communication' 'topic-copaper' 'topic-economics' 'topic-education' 'topic-empirical-research' 'topic-international-relations' 'topic-political-science' 'topic-psychology' 'track':536 'tradit':1038 'traditional/betterposter/visual-heavy':387 'tree':187 'true':648 'two':1338 'two-pag':1337 'type':56,65,159,697 'typographi':391,448 'unfilt':1122 'univers':4 'use':148,168,393,409,508,538,572,859,874,956,958,1047,1049,1118,1141,1149,1153,1158 'use-latexmk':873,955,1046 'user':142,226,250,258,359,368,401,425 'util':1187,1226 'valid':616,755,759 'validation.png':767 'valu':718 'vari':331 'variabl':512 'verbos':889,898,969,1116,1119 'version':529 'via':1447 'visual':741,747 'vp':1329 'want':147,233 'warn':1103 'watermark':207,793 'without':1042 'word':1240 'work':195,1041 'workflow':59,88,93,97,116,124,132,365,378,422,442,482,488,491,528,561,578,669,779 'write':242 'xecjk':1143 'xelatex':349,853,952,1150 'xetex':1179 'year':1336 'zero':1304","prices":[{"id":"c56ea6e7-d6e3-4475-b794-420b0dd7b7a0","listingId":"e4db0549-8670-40d2-a95c-082a18dc2036","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"brycewang-stanford","category":"Awesome-Agent-Skills-for-Empirical-Research","install_from":"skills.sh"},"createdAt":"2026-04-18T22:12:41.492Z"}],"sources":[{"listingId":"e4db0549-8670-40d2-a95c-082a18dc2036","source":"github","sourceId":"brycewang-stanford/Awesome-Agent-Skills-for-Empirical-Research/08-ndpvt-web-latex-document-skill","sourceUrl":"https://github.com/brycewang-stanford/Awesome-Agent-Skills-for-Empirical-Research/tree/main/skills/08-ndpvt-web-latex-document-skill","isPrimary":false,"firstSeenAt":"2026-04-18T22:12:41.492Z","lastSeenAt":"2026-05-02T12:52:55.743Z"}],"details":{"listingId":"e4db0549-8670-40d2-a95c-082a18dc2036","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"brycewang-stanford","slug":"08-ndpvt-web-latex-document-skill","github":{"repo":"brycewang-stanford/Awesome-Agent-Skills-for-Empirical-Research","stars":598,"topics":["academic-research","agent-skills","ai-agent","awesome-list","communication","copaper","economics","education","empirical-research","international-relations","political-science","psychology","public-administration","reproducible-research","skills-library","social-science","sociology"],"license":"other","html_url":"https://github.com/brycewang-stanford/Awesome-Agent-Skills-for-Empirical-Research","pushed_at":"2026-04-30T20:01:12Z","description":"🔬 A curated collection of 23,000+ agent skills for empirical research across 8 social science disciplines. | 精选 23,000+ AI Agent 技能库，覆盖8大社会科学学科的实证研究。CoPaper.AI 20分钟完成一篇可复现的规范实证论文，并支持用户上传 Skills。-- Maintained by CoPaper.AI from Stanford REAP.","skill_md_sha":"34ec12dfc855a01d7eb68bfeadc0fe2de8b27baf","skill_md_path":"skills/08-ndpvt-web-latex-document-skill/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/brycewang-stanford/Awesome-Agent-Skills-for-Empirical-Research/tree/main/skills/08-ndpvt-web-latex-document-skill"},"layout":"multi","source":"github","category":"Awesome-Agent-Skills-for-Empirical-Research","frontmatter":{"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)."},"skills_sh_url":"https://skills.sh/brycewang-stanford/Awesome-Agent-Skills-for-Empirical-Research/08-ndpvt-web-latex-document-skill"},"updatedAt":"2026-05-02T12:52:55.743Z"}}