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:
\documentclass[11pt,lualatex]{beamer}
\usepackage{amsmath,amsfonts,amssymb}
\begin{document}
\begin{frame}{}
prova \quad $\alpha + \sum_i \beta_i $
\end{frame}
\end{document}
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!