Compiling my documents with lualatex takes quite long. I have a complex preamble, and I noticed that it takes long to process this part of the file.
Today, I came across this website, which proposes a trick I haven't seen on this site before. By pre-compiling the preamble, it claims to speed up compilation approximately three-fold: Faster LaTeX part IV: Use a precompiled preamble (Wayback Machine snapshot).
However, I have not been able to follow this tutorial with LuaLaTeX. How can I pre-compile my preamble with it?
Best Answer
I might be missing the point of the question, or fail to see why what my computer does is not what the OP is looking for. Further this is is certainly not the most elegant solution, since I'm at work so I only had Windows & TeXnicCenter+MikTEX2.9 at my disposal. But I think it does what it should.
Here's what I do:
LuaTeX⇨PDF(pre)
(see below)LuaTeX_post⇨PDF(post)
The profiles:
LuaTeX⇨PDF(pre)
isor in TeXnicCenter:
LuaTeX_post⇨PDF(post)
isor in TeXnicCenter:
lua_nopream.tex contans not much really
lua_pream.tex contains the preamble