Create a PDF with Cyrillic letters via Sphinx and pdflatex.
- Оpen project in Github Codespaces or other linux environment
- Run
./start.sh
to install dependencies just latex
creates latex files (includingdemo.tex
)just pdf
createsdemo.pdf
just publish
puts documentation to Github Pages
- Sphinx project managed with mudkip:
[mudkip.override]
inmudkip.toml
used instead ofconf.py
just latex
in an alias formudkit build --preset latex --output-dir docs/_latex
- PDF created in Github Codespaces:
start.sh
installs latex and other dependenciesjust pdf
invokes PDF build, it is an alias forpdflatex demo.tex
- Avoid errors with Cyrillic characters (mostly fixed):
- avoid unnecessary installations in
setup.sh
- Make PDF look sane:
- generate TOC
- glossary is not a numbered chapter
- blank pages
- PDF customisation:
- watermark
- "issued to" footer
- time generated
-
Build PDF in a CI
-
Side effects
- Configure VS Code for TOML viewing - use Even better TOML
- Codespaces container with latex installed
- Switch to MyST index.md
- Add .mp4 to latex
- Link PDF to theme
- lightweight PDF creation (rhinotype and weasyprint)
pdflatex
can fail here after encountering Cyrillic letters:
- это точка отказа;
- очень проблемная буква:
ё
/Ё
.