I would like to pre-compile the preamble to speed up the compilation of my LuaLatex documents.

I have seen several questions regarding this (eg: Question 1, Question 2, Question 3), but all are either pretty old or do not work for me even with the very simple MWE that follows:


prova \quad $\alpha + \sum_i \beta_i $

Could you provide the most updated and reliable way to precompile the preamble with LuaLatex? I specifically work on Windows, distribution TexLive 2019, editor TexStudio, but I think a general guide to the "preamble precompilation" operation would be greatly appreciated!

EDIT 1: the solutions in questions 1, 2 and 3 produce the following error when trying to compile the file (after having precompiled the preamble):

! error:  (pdf backend): referenced object has wrong type others; should be obj
!  ==> Fatal error occurred, no output PDF file produced!
  • 1
    Could you tell why the approaches in the related questions do not work for you? Do you get errors, or are the formats not applied, or something else? – Marijn Mar 18 at 14:51
  • 1
    @Marijn, sure. They produce errors, which I have specified in the question. I can also post the whole log if you think it is appropriate and useful. – oibaFox Mar 18 at 22:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.