Pdf2tex
Reconstruct editable LaTeX from PDF content using page-aware extraction and visual comparison. Preserve source evidence, flag uncertain math/tables/citations, and distinguish text extraction, OCR, reconstruction, and verified compilation.
Install
npx skills add Calix-L/awesome-latex-skills --skill pdf2texgit clone --depth 1 https://github.com/Calix-L/awesome-latex-skills.git /tmp/awesome-latex-skills
mkdir -p ~/.claude/skills
cp -r /tmp/awesome-latex-skills/pdf2tex ~/.claude/skills/pdf2texPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
## Establish the reconstruction target Inspect the PDF, requested pages, available tools, and desired output. Determine whether the user wants content recovery or close visual reconstruction. Preserve the original PDF and write new artifacts to a separate destination. A PDF may expose text, font names, coordinates, images, and metadata. It does not reliably encode its original document class, packages, macros, bibliography database, comments, or source-file boundaries. Font/creator metadata is evidence for a candidate setup, not proof of the original engine or class. ## Extract evidence When PyMuPDF is available, use the bundled helper from this skill's own directory. The following paths are relative to the repository root; for an installed skill, substitute its actual location. Dependency installation is separate from extraction. ```sh python -m pip install -r pdf2tex/requirements.txt python pdf2tex/scripts/extract_pdf.py paper.pdf --output extraction --pages 1-3,5 --images --render ``` The helper creates a new directory with `report.html`, `text.txt`, `layout.json`, and optional embedded images and whole-page PNG previews when requested. It records page numbers, raw text spans/font/position data, metadata, selected-page coverage, and warnings. It refuses existing output directories and refuses publication if the input fingerprint changes during extraction. Open `report.html` for offline page/text review; keep the entire
Details
- Skill name
pdf2tex- Repository
- Calix-L/awesome-latex-skills
- Path
pdf2tex/SKILL.md- License
- MIT
- Repo updated
- 7 October 2026
FAQ
What does the Pdf2tex skill do?
Reconstruct editable LaTeX from PDF content using page-aware extraction and visual comparison. Preserve source evidence, flag uncertain math/tables/citations, and distinguish text extraction, OCR, reconstruction, and verified compilation.
How do I install the Pdf2tex skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add Calix-L/awesome-latex-skills --skill pdf2tex. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Pdf2tex popular?
It lives in Calix-L/awesome-latex-skills, which has 190 GitHub stars and 4 forks.
Related skills
Latex Fmt
190Calix-L/awesome-latex-skills
Reformat LaTeX papers for a specified venue, year, track, and submission stage. Apply official templates and check layout, bibliography, page limits, and anonymization while preserving scientific content.
Latex Polish
190Calix-L/awesome-latex-skills
Edit academic prose in LaTeX manuscripts or supplied text at light, moderate, or strict intensity. Improve grammar and clarity while preserving scientific claims, uncertainty, numbers, citations, and LaTeX structure.
Latex Rescue
190Calix-L/awesome-latex-skills
Diagnose and repair LaTeX build failures in local projects or supplied logs. Make minimal source fixes, preserve scientific content and reference keys, and report actual build evidence and unresolved errors.
Space Slide Deck
189SpaceZephyr/design-buddy
Generates professional slide deck images from content. Creates outlines with style instructions, generates individual slide images, and exports PPTX/PDF. Includes a brand design system mode using 60+ getdesign.md brand styles: auto-matches content to brand-inspired slide styles, recommends 5 matched styles plus 1 smart match, or uses an explicitly requested brand style. Use when user asks to "create slides", "make a presentation", "generate deck", "slide deck", "PPT", "design slide", "brand style PPT", or wants content turned into a designed presentation.
Container Presentational
259PatternsDev/skills
Teaches the container/presentational pattern for Vue components. Use when you want to separate data fetching and business logic from presentation for better testability and reuse.
Presentational Container Pattern
259PatternsDev/skills
Teaches the presentational/container pattern for separating view and logic. Use when you want to isolate data fetching and business logic from UI rendering for better testability and reuse.
Browse the most popular Claude skills, all documents & office files skills, or write your own with the skills generator.