Windows – The very bare minimum of latex to compile documents

latexwindows xp

I'm creating a relatively small console program which will be used by some other people as well. As part of its output it will be creating a tex file which will contain some two tables, a few rows of text and one plot.

Not, my program is pretty small – under a Mb. The problem is I can't count on my users to have latex installed, so I'd like to include the very bare minimum required files to create it (pdf). What would be a good place to start searching on that topic, or even better, does anyone know what I would need to include with it to accomplish that ?

I remember my last latex install being pretty … well, gigantic.

Kind regards !

Best Answer

You could try one of the obsolete MSDOS distributions. Some of them are pretty small, like the base emtex (plus its fonts). From 1998.

Installation is documented in Norm Walsh's Making TeX Work, which is even more obsolete, from 1994, but it should be enough to tell you which bits of that you can throw away, conveniently summarised in the Making emTeX smaller section. He estimates that you can slim the distribution down to 5.5Mb.

But be warned: such a tiny distribution won't have staples such as pdftex, Metapost or TikZ, although there was already graphicx and Pstricks back in those days...

Cutting more means cutting fonts: maybe if you used Xetex's ability to support OS fonts, that would help? But I don't think emtex has Xetex...

Related Question