I was looking through some old files recently, and it occurred to me that they might be obsolete in the future. Are there any steps that I should take for "archiving" my documents so that they will compile properly on later versions of LaTeX? I once went to a seminar where it was indicated that the .dvi file can be converted back into a plain TeX file, so would it be the best "archival" document?
5 Answers
The bundledoc package gives you a way to zip up all the classes, packages and files that are needed to process your document. If you save this archive then this should be sufficient information to process your document in the future.
- 45,462
-
Would old classes and packages be compatible with new versions of LaTeX? I would hope so, but I think that it becomes quite cumbersome to maintain compatibility over such a long span. – Johnson-Leung Oct 26 '10 at 04:23
-
1Even if latex3 ever comes out, I can't see latex2e going away for a very long time. It has hardly changed since 1994 and too many people depend on its stability. – Lev Bishop Oct 26 '10 at 04:58
-
In particular, academic journals and publishers will not be keen on investing the resources needed to convert their class files over to make use of Latex3's strengths. – Charles Stewart Oct 26 '10 at 13:01
-
4Has anyone got any experience with bundledoc and ArXiv.org? Can I somehow submit a bundledoc archive to ArXiv.org and this way ensure that my document compiles correctly in the future? – Jukka Suomela Aug 02 '14 at 16:10
If you can save old TeX trees/installations, then you can do that. They tend do take less and less space over time (as disk size increases). Then you can be sure of 100% compatibility.
- 37,020
Plain Tex source files that use only Computer Modern fonts, per Sharpie's comment, is the most change-resistant Tex format there is.
I once went to a seminar where it was indicated that the .dvi file can be converted back into a plain TeX file
It can be true, if specials are inserted into the DVI, but by default it is not true, and the meaning of inserted specials is left wide open to interpretation: are they meta-data or Postscript? Special-less DVI is a well-documented, equally change-resistant format, but a problem here is that the DVI file stores information about fonts in a way that is open to interpretation. If you only use Computer Modern fonts, this won't be a problem.
Generally speaking, Patrick's answer is right: archive your Tex installation.
- 21,014
- 5
- 65
- 121
I restored .tex documents from 20 years past, without problems. But i wasn't that adventurous then, so it isn't an issue. But it may be an issue in future. I used to do the stuff using an ancient version of The Semware Editor under OS/2's Emtex environment. I now use WinEdt 6.0 /LiveTex under Windows 2000.
TeX and LaTeX already do deal with multiple encodings, so if you migrate from one environment to another (eg OS/2 to Linux), then Latex will still recognise that the files are written in a different coding and handle these accordingly.
My approach is to do things to make it easier to back up. Specifically, packages to install are kept in a running archive, and documents and files are kept in a tight bundle. The idea is that one might back up the bundle and running archive, and join this to an installation of ghostscript / TexLive etc.
- 955
tex? There is supposedly a reason the version number is converging to Pi... :p – Sharpie Oct 26 '10 at 00:04