Master's thesis · TUKE
LatexCodeGenerator
Five visual editors for the diagrams computer science papers are made of — Karnaugh maps, syntax trees, proof trees, resolution trees, automata — each exporting publication-ready LaTeX. Or photograph one you drew by hand and let a vision model do it.
live at latexgenerator.kpi.fei.tuke.sk →How it's built
- Five builders, each generating the LaTeX package a paper actually wants: karnaugh-map, forest, bussproofs, tikz-qtree and raw TikZ.
- Monaco editor alongside them with live compilation to PDF and SVG, running on a TeX Live service — and LaTeX can be imported back into any editor.
- Image to LaTeX: OpenCV thresholds, denoises and crops the photo, a vision model reads it through OpenRouter, and the code that comes back is parsed into an editable K-map or tree — not just pasted in as text.
- Bring-your-own-key for the AI, encrypted at rest with AES-256-GCM; an admin panel manages and benchmarks the available models.
- Sign in with TUKE SSO, Google or GitHub; everything is bilingual EN/SK.
- Six services in Docker Compose behind nginx — React SPA, Express API, MongoDB, and two FastAPI workers for image preprocessing and LaTeX compilation.
- Built because redrawing thesis diagrams by hand in TikZ is a bad use of an evening.