latex-document

Automate LaTeX document authoring, compilation, and PDF generation with PNG previews.

203|27|Updated Apr 19, 2026
One-click install
npx skills add https://github.com/franklee16/academic-research-skills --skill latex-document-franklee16
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: latex-document
Source: https://github.com/franklee16/academic-research-skills/tree/main/output-tools/latex-document-skill-main
Command: npx skills add https://github.com/franklee16/academic-research-skills --skill latex-document-franklee16

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires curl, pandoc, python3, matplotlib, numpy, pandas, qpdf, pdftoppm, mogrify, graphviz, plantuml, chktex, latexdiff, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill removes the friction of writing, compiling, and converting LaTeX documents by providing end-to-end templates and automation that produce a professional PDF plus PNG previews.

Core Features & Use Cases

  • Create publication-ready LaTeX documents: resumes/CVs, academic papers, theses/dissertations, posters, presentations (Beamer), exams, reports, invoices, letters, and books.
  • Compile with smart automation: auto-selects the LaTeX engine (pdflatex/xelatex/lualatex), runs BibTeX or Biber as needed, runs index/glossary tooling when present, and outputs PNG page previews for quick visual verification.
  • Convert and reconstruct documents: convert Markdown/DOCX/HTML/PDF to LaTeX via Pandoc and convert handwritten/scanned PDFs into structured LaTeX using OCR conversion profiles.
  • Generate scholarly artifacts: charts/diagrams/tables (matplotlib + pgfplots workflows), Mermaid/Graphviz/PlantUML diagrams, BibTeX fetching from DOIs/arXiv IDs, and citation cross-checking.
  • Quality and maintenance tooling: lint/check LaTeX, analyze document statistics (figures/tables/equations/citations), provide automated compilation error insights, and generate change-tracked diffs with latexdiff.
  • Use cases: generate a 2-page cheat sheet from a PDF textbook, compile a CJK thesis with correct engine selection, merge/compress/encrypt PDFs, or batch mail-merge letters from CSV/JSON into a single compiled PDF.

Quick Start

Use the LaTeX document skill to compile your file by asking it to compile output-tools/latex-document-skill-main/assets/templates/report.tex into a PDF with PNG previews.

Frequently Asked Questions about latex-document

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert a Markdown or DOCX file to a LaTeX PDF?

To convert Markdown or DOCX to a LaTeX PDF, this Skill uses Pandoc to translate the source document into LaTeX syntax and then compiles it into a PDF with PNG page previews.

Can I compile a CJK LaTeX document with automatic engine selection?

Yes, you can compile CJK LaTeX documents through automatic engine detection that selects xelatex or lualatex, ensuring correct rendering of international character sets.

What is the best way to batch mail-merge letters from CSV into a single PDF?

The best way to batch mail-merge letters from CSV or JSON data is using the data-driven mail merge feature, which compiles individual letters into a single unified PDF document.

Does this tool support generating BibTeX citations from arXiv IDs?

Yes, it supports fetching BibTeX citation entries directly from arXiv IDs and DOIs, and it performs citation cross-checking to ensure your bibliography matches the document references.

How do I convert a scanned PDF textbook into a structured LaTeX document?

You can convert scanned PDFs into structured LaTeX using OCR conversion profiles, which reconstruct the document layout and text content into editable LaTeX syntax.

Why does my LaTeX compilation fail and can it be fixed automatically?

LaTeX compilation failures are addressed by robust quality checks that provide automated error insights and apply optional auto-fixes to resolve common formatting or syntax issues.