Holograph writes out your LaTeX by hand, and only keeps characters a recognizer can read
An open-source pipeline lets TeX do the layout, has a handwriting model draw each glyph fresh, and filters the drafts with a recognizer. Yes, it is pitched at homework.
Holograph, by GitHub user Feynman724, takes a solution written in Markdown or LaTeX and produces it as handwriting: a vector PDF that looks like tablet notes, or a simulated photo or scan of a sheet of paper. The README’s pitch is “Does your handwritten homework for you”, which is at least candid. It is not a handwriting font with noise on top. Every character is drawn as pen strokes, and the fractions and integrals land where TeX would have put them.
The first commit is dated November 28.
How it works
The layout comes from real typesetting. Pandoc parses the document, XeLaTeX sets the formulas, and Holograph reads the result back glyph by glyph, keeping each glyph’s box. Handwriting is then drawn into those boxes.
Chinese characters, Latin letters and digits are generated by SDT, a transformer handwriting model from a CVPR 2023 paper that imitates a writer from 15 reference characters. Math symbols are real human strokes from the MathWriting dataset.
A generator like this sometimes produces a character that looks like handwriting but is not the character asked for. So every draft goes past a recognizer, a ResNet trained on a handwriting database, and is kept only if it reads correctly. About 3,500 common Chinese characters are generated in advance per preset hand, several drafts each, already filtered. Each occurrence on a page gets a different draft, so no two copies of a character match exactly.
Then the tidiness is removed. A style layer varies size, baseline, spacing, the tilt of each row and how far fraction parts sit off centre, to targets the docs say were measured on real handwritten pages. A --messy setting runs from 0, tidy, to 3, hurried.
The project’s own test is a discriminator trained to tell its pages from real ones. The docs report AUC between 0.45 and 0.56, where 0.5 is a coin flip. That is the author’s measurement, and we did not find the procedure described.
Figures, pens and paper
Diagrams written in TikZ, including plots, circuits and chemical structures, are compiled and then redrawn as freehand strokes, with labels in the same hand. Four pen models are offered (gel, ballpoint, fountain, pencil) and 26 paper templates.
Try it yourself
The repo needs Python 3.10 or newer and XeLaTeX. holograph download fetches 15 preset hands, about 210 MB, and the README says those run on a CPU. Building a profile of your own handwriting needs an NVIDIA GPU, the SDT checkpoints, and for Chinese a few hundred of your characters.
The licenses are layered. The code is MIT. The preset hands are CC BY-NC-SA 4.0, and the README says pages made with them carry that license too. The recognizers are marked for non-commercial research. The README also says that whether you may hand in the result is up to each course, and the responsibility is yours.
We have not run it. This is based on the README, two documents in the repo and its commit log; the project page was not reachable from our build machine.