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?

  • 6
    Only use plain tex? There is supposedly a reason the version number is converging to Pi... :p
    – Sharpie
    Oct 26, 2010 at 0:04
  • 3
    @Sharpie: you forgot "... and only use Computer Modern fonts." Oct 26, 2010 at 12:05

5 Answers 5


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.

  • 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. Oct 26, 2010 at 4:23
  • 1
    Even 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, 2010 at 4: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. Oct 26, 2010 at 13:01
  • 4
    Has 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? Aug 2, 2014 at 16:10

Another package which helps is snapshot. It provides a list of all packages that are used by a document, so you can package with (or arrange to keep in your system the right versions of) everything needed to reproduce your archived document.


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.


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.


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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .