Repository navigation
Live preview with realtime-tex? #4505
Steve-Li-1998
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hey, not sure if this is on your radar, but I recently came across
https://github.com/HenryXiaoYang/realtime-tex and thought it could be a nice fit
for TeXiFy.
Basically it keeps a LuaLaTeX process running with the preamble loaded and only
re-typesets the paragraph you're editing, so the preview updates pretty much as
you type. Page breaks, refs etc. get handled by a full compile in the background.
It's plain LuaTeX from TeX Live, no patched engine. There's already a VS Code
extension built on it (haven't tried it myself yet, just read through the repo).
It can run as a subprocess and talk JSON over stdin/stdout (
rtex serve), so Iguess hooking it up from Kotlin wouldn't need any native bindings. The harder
part is probably the preview window itself, since you get positioned glyphs back
rather than a PDF.
To be fair it's still very early (v0.0.4) and LuaLaTeX only, so maybe it's more of
a "keep an eye on it" thing for now. Just curious if you'd be interested at some
point.
All reactions