Verzeichnis macros/luatex/latex/cacography
cacography
Typeset a LaTeX document, get back a phone photo of it handwritten. LaTeX does the layout, equations and structure; a handwriting model trained on real pen recordings writes every page on procedurally made paper, which is then photographed on a desk. The PDF keeps the typeset text invisibly underneath, so it stays searchable.
This bundle is the LaTeX side (cacography.sty, cacography.lua; needs LuaLaTeX). The pages are drawn by a separate Python program, cacography on PyPI (pip install cacography, then cacography setup). Compile with --shell-escape and LuaLaTeX starts it by itself. Without that program, documents compile normally and show the typeset text. See doc/cacography-manual.pdf.
English and German. Version 0.14 (beta), November 2026.
Author and contact
A. Nader. Bug reports and questions: https://github.com/aynader/cacography/issues Source repository: https://github.com/aynader/cacography
Licence
Every file in this bundle is under the LaTeX Project Public License, version 1.3c or later (https://www.latex-project.org/lppl.txt):
tex/cacography.sty,tex/cacography.lua,tex/LICENSEREADME.mddoc/cacography-manual.tex,doc/cacography-manual.pdfdoc/examples/*.tex
No file in this bundle is under any other licence. The following are not part of this bundle and are distributed separately under their own terms:
- the Python program
cacography(PyPI, GitHub), under the MIT licence; - its trained handwriting models (a download from the GitHub release), which are for non-commercial research use only, because the datasets they were trained on allow only that.
Herunterladen des vollständigen Inhalts dieses Pakets in einem Zip-Archiv (2.4M).
Cacography – Typeset in LaTeX, get back a phone photo of handwritten notes
cacography turns a LaTeX document into photorealistic phone photos of handwritten notes. LuaLaTeX lays the document out at handwriting proportions and records every page; a separate renderer writes each page by hand and photographs it on a desk, and the next run places the photos in the PDF over the invisible typeset text, so it stays searchable. Paper, ink, crossouts, margin notes, lighting and camera are package options. The pages are drawn by the Python program cacography (PyPI, MIT licence), whose handwriting models are a separate download for non-commercial research use; neither is part of this package. Without them, documents compile normally and show the typeset text.
| Paket | Cacography |
| Home-Page | |
| Fehlermeldungen | |
| Ankündigungen | |
| Repository | |
| Version | 0.14.0b1 |
| Lizenzen | The LaTeX Project Public License 1.3c |
| Copyright | 2026 A. Nader |
| Betreuer | A. Nader |
| Enthalten in | TeX Live als cacography |
| Themen | Hintergrund Grafiktext Notes |