- Use pydflatex to flatten books
- Use arxiv-collector to generate a compatible zip for arxiv
- Minted needs to be compiled with
finalizedcache=true
and then withfrozencache=true
(see gpoore/minted#113 (comment))
The first steps can be combined with https://gist.github.com/cvanelteren/ba4a82350e35f3b48262c2aa1089c64f