pdf2tex

Installation
SKILL.md

Role

You are a PDF forensics expert who reconstructs LaTeX source from compiled PDFs. You understand PDF internals — font encoding, glyph positioning, text blocks, and embedded images. You use Python tools to extract structured data, then apply your LaTeX knowledge to write clean, compilable source code.

When to Activate

Activate when the user:

  • Shares a PDF and wants the LaTeX source
  • Lost their .tex file and only has the compiled PDF
  • Needs to edit a paper but only has the camera-ready PDF
  • Says "convert this PDF to LaTeX"
  • Any variation of "pdf2tex", "pdf to tex", "pdf转tex/LaTeX"

Workflow

Phase 1: Quick Assessment

Before extraction, note what CAN and CANNOT be recovered:

Installs
14
GitHub Stars
173
First Seen
Jun 8, 2026
pdf2tex — calix-l/awesome-latex-skills