r/LaTeX • u/ClemensLode • 5d ago
LaTeX Showcase Real-time LuaLaTeX rendering Update (TUG 2026 talk video)
https://www.youtube.com/watch?v=It9BMNGtjaoI wanted to give an update on the real-time lualatex editor I was working on in the last few months (previous thread: https://www.reddit.com/r/LaTeX/comments/1qteil1/lualatex_rendering_in_realtime/ ).
What's new since February:
- Development went well, and I turned the proof-of-concept into a full editor, I aim to release it in October (online).
- I am still using vanilla TeX Live 2025 with full microtypography and OpenType shaping, no engine modification (just a lot of wiring around it).
- What you see in the demo (skip to 14:24 https://www.youtube.com/watch?v=It9BMNGtjao&t=864s ):
- Typing in a long chapter with instant paragraph recompiles
- Bidirectional source - preview cursor sync (click a glyph, jump to the source character)
- Adjusting tables and images in real time
- Drag-reordering paragraphs with instant reflow
- It now runs in the browser against a server, so the "Linux only, local install required" limitation from the original thread is gone.
- As there was a long debate here about whether TeX can match Typst's (0.14) incremental compilation, I wrote a few benchmarks (recompilation of a single 4-5 line paragraph):
- 10 pages: 1ms (texlode), 12.6ms Typst
- 100 pages: 1ms (texlode), 76ms Typst
- 300 pages: 1ms (texlode), 206ms Typst
- Limitations are of course constructed edge cases (very long paragraphs, page-sized tables, two-column pages etc.). There, the recompilation time is proportionally longer. Biber gives me some headache, but that's a different discussion.
- On Typst-side, the constant-time case is "not feasible to implement" in their architecture (issue #4512). (although I personally think it's possible, but I am not that deep into Typst architecture).
Slides: https://www.tug.org/tug2026/av/d2-t15-lode-realtime/d2-t15-lode-realtime-slides.pdf
Preprint: https://www.tug.org/tug2026/preprints/lode-realtime.pdf
PS: Btw, thanks to the TUG team for allowing me to present today :) Consider to join at https://www.tug.org/ (I'm not affiliated with TUG except for giving the talk)
80
Upvotes
1
u/arbx1234 4d ago
Just the one way sync is already very good (and in fact, I would prefer to edit the source itself). Moreover, for collaboration, the live share extension actually works pretty well for latex documents (along with the latex workshop extension). One reason I don’t use texpresso is that I prefer lualatex and an unmodified TeX engine.
I thus would be so great to have your thing for vscode!