latex-pdf

Installation
SKILL.md

LaTeX PDF Generator

Generate professional PDF documents by writing a Python script that constructs LaTeX source strings and compiles them to PDF using Tectonic. No TeX distribution installation required — Tectonic auto-downloads packages on first use.

Approach

  1. Python script builds LaTeX content as a string using f-strings/concatenation
  2. Write the string to a .tex file
  3. Compile with tectonic <file>.tex → produces .pdf in the same directory

This approach is preferred over HTML-to-PDF or JS-based PDF libraries because LaTeX produces typographically superior output with precise control over layout, tables, math, headers/footers, and page breaks.

When NOT to use LaTeX:

  • Presentations / slide decks — LaTeX produces ugly, hard-to-brand slides. Use the image-from-html skill instead (HTML/CSS slides → Chrome headless → PNG → PDF). HTML gives pixel-perfect brand control that LaTeX can't match.
  • Branded marketing materials — posters, social graphics, flyers. Use image-from-html for exact brand guideline matching.

When to use LaTeX:

  • Reports, invoices, CVs, academic papers, data-heavy documents with tables and statistics — anything that benefits from precise typographic control over text-heavy content.
Installs
1
Repository
razbakov/skills
GitHub Stars
3
First Seen
9 days ago
latex-pdf — razbakov/skills