Karthik Chikmagalur <karthikchikmaga...@gmail.com> writes:

> For org-latex-preview, one of the other things we tried was to keep all
> utf-8 font-related settings out of the header that is precompiled.  If
> we manage this precompilation can work (somewhat unreliably) with
> lualatex, and previews are a bit faster.  But doing this via string
> matching is difficult and fragile.  And even with precompilation,
> lualatex has a slow startup time, and we are some distance away from < 1
> sec preview updates.

I am wondering if the current design with many previews generated using
the same latex process can be extended. May we somehow add a Lua code to
preview.sty that will not exit at all and watch for new .tex fragments
to appear and preview them. The idea is to avoid stopping lualatex
process most of the time (unless preamble has to be changed) and make it
work like a server. That may bring the preview speed to acceptable levels.

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

Reply via email to