# In LaTeX distribution, which files are the mandatory files to compile a minimal LaTeX input file?

Assume I want to create an application working together with LaTeX compiler behind the scene. For the sake of simplicity, assume I also use minimal document class and no package imported.

At the final stage, I want to deploy this application to a computer with no LaTeX system installed. This scenario forces me to make the installer get shipped with the LaTeX compiler.

Shortly speaking, which files (in LaTeX distribution) are needed as minimal as possible?

-
@xport: I suppose that you have to use the full path to mkjobtexmf. Don't know how the files in Windows are found. You can also try perl mkjobtexmf ... –  Herbert Jan 4 '11 at 15:34
@xport: in Linux it is a link to the perl file ../texmf/scripts/mkjobtexmf/mkjobtexmf.pl Do you have that file? –  Herbert Jan 4 '11 at 15:44
@xport: in TeXLive2010 for windows it is present. I cannot say more here for other distributions. Maybe that you have to install it. –  Herbert Jan 4 '11 at 15:52
@xport: just tried it with TeXLive under Windows and in diffrence to Linux it creates a file <file>????.fls with a list of all used files. –  Herbert Jan 4 '11 at 15:59
@Igor: There is no Microsoft WORLD. :D –  LaTeX Mar 7 '11 at 1:47

make a testfile and run it with:

mkjobtexmf --jobname <file> --cmd-tex <latex>


<file> is your source file <latex> is your LaTeX command, e.g. pdflatex or simply latex. The Perl program mkjobtexmf creates a directory <file>.mjt which is a compatible texmf directory with all loaded files of your example.

If you are running windows then you'll need an installed Perl, e.g. from http://www.activestate.com/perl/

However, I never used it under Windows, with Linux it is very useful.

-
it seems mkjobtexmf does not include the .fmt file? –  Taco Hoekwater Jan 4 '11 at 15:21
@Taco: from a run: lrwxrwxrwx 1 voss users 56 4. Jan 16:10 latex.fmt -> /home/voss/.texlive2010/texmf-var/web2c/pdftex/latex.fmt –  Herbert Jan 4 '11 at 15:25
Ah ok, it seems to only work if the .fmt is inside a pre-conceived directory. I get a Failed line because the .fmt is not where mkjobtexmf expects it to be. –  Taco Hoekwater Jan 4 '11 at 15:31
@Taco: drop Heiko a line, if you feel that it is a missing feature. –  Herbert Jan 4 '11 at 15:46
One time that I have been created the folder.mjt how can I execute pdflatex on my .tex document from that folder? –  FormlessCloud Oct 28 '12 at 12:45