0

I have several long documents (500-1000+ pages), where the pre-amble is itself rather lengthy (say, 15-25 packages being loaded, with multiple option tweaks, lots of custom functions, etc, etc). When compiling (I normally use MikTeX, but observe the same with TeXlive), a fair chunk of time comes from reading in the pre-amble, before getting to contents of the document itself.

In browsing around it seems there are methods for pre-compling the preamble (e.g., Ultrafast PDFLaTeX with precompiling), but everything I've found applies to PDFTex or LuaTex, but I haven't found anything that might work with my normal build sequence: .tex -> .dvi -> .ps -> .pdf.

Perhaps it isn't possible, but it would be a major time saver if I could pre-compile the preamble for these big docs, since the preamble isn't changing (typically) between compiles.

Any options?

  • 1
    any preamble saving format technique that works with pdflatex will work with latex (but for 99% of documents pdflatex is the normal build sequence these days, is there a particular reason you still use dvi?) – David Carlisle Jan 01 '20 at 22:18
  • 1
    see for example latexformat or mylatexformat which can make custom latex formats with a preloaded preamble (there are examples in the post that you reference) – David Carlisle Jan 01 '20 at 22:20
  • Thanks very much. As for why I use .dvi ->, simple. I do a lot with PostScript (images, PSTricks, etc). – Johnny Canuck Jan 02 '20 at 00:44

0 Answers0