3

My document takes 5sec to compile (draft mode), and most of the time is spent on the preamble. This is due to all the packages that I use. Is there a way to precompile the preamble to speedup compilation?

schtandard
  • 14,892
Zohar Levi
  • 1,237

1 Answers1

3
  • Based on Ulrike's comment.
  • The package mylatex from David Carlisle addresses this problem.
  • But according to Ultrafast PDFLaTeX with precompiling (2012), David recommends the mylatexformat package from a different author: "My truly ancient mylatex files on ctan do this or there is a newer version of that with additional features and better maintained: mylatexformat".

The file mylatex.ltx permits you to create a format that pre-loads a set of package files (and/or other macros) that you regularly use. In some circumstances, this can be a great advantage (though on an ordinarily fast modern computer on the desktop, gains will be limited)