Is there a way to save the "current state" of my TeX installation, the various packages etc. that allow a document to be compiled into a pdf at this moment? In a year or two, I'll probably have a lot of package updates, etc. and it's questionable whether all of my documents will re-compile in the same way. Is there some way to save a format that will allow an identical recompile, or to save a snapshot of my installation in some way, or some other method?
2 Answers
One solution you might want to consider is compiling your own format that includes all the packages you are using and keeping this special compiled format with your latex file. In this case, when packages get updated, you will still maintain the same state that you have now.
You can read about compiling styles here:
- Using mylatexformat with this how to, probably the easiest and least disruptive to your actual document file.
- This post, which requires to split your document into a static preamble and dynamic contents.
The good news is that, once you start compiling your preamble this way, you will tremendously save on compilation time of the document. This is the glorious of this technique. (I personalize use that, with externalization for tikz graphics and I can compile very complicated journal papers in less than 10s).
If you really feel paranoid about it, you might want to keep a snapshot of your tex and latex binaries along with their fonts.
- 729
- 1,369
-
The first howto link bitrotted, but here's a Wayback Machine archive version: https://web.archive.org/web/20160704053028/http://www.howtotex.com/tips-tricks/faster-latex-part-iv-use-a-precompiled-preamble Alternative step-by-step howto: https://tex.stackexchange.com/a/266279/1340 2nd howto: http://web.archive.org/web/20150406152732/http://magic.aladdin.cs.cmu.edu/2007/11/02/precompiled-preamble-for-latex/ (I've submitted an edit to inline the updated links). – Blaisorblade Jul 18 '17 at 16:14
You could try compiling within a virtual machine - popular "emulators" support open image formats, which could easily mean 10-15 years of support
- 143
.sty) to a different location in your computer or external HD. – Alenanno May 17 '15 at 10:11pgfplotsfor example). – Alenanno May 17 '15 at 10:13