Debian Codegraph @

texmf-dist/doc/latex/mylatexformat/README

raw
1 Use mylatexformat.ltx to make a format based on the preamble
2 of any LaTeX file.
3
4 The use of formats helps to speed up compilations: packages which have been
5 dumped in the format are loaded at very high speed. This is useful when a
6 document load many packages (pgf-TikZ among other...)
7
8 For the creation of the format use a command line like:
9
10 etex -initialize [opts] "&pdflatex" mylatexformat.ltx """abc.tex"""
11
12 mylatexformat.ltx has been primarily written from mylatex.ltx
13 (available on CTAN under the contrib/Carlisle/ directory) but
14 gets rid of many limitations or problems of mylatex.ltx.
15
16 More precisely:
17
18 - The format is created from the beginning of the file (usually
19 \documentclass[...]{...}
20 until either:
21 ~ \begin{document}
22 ~ \endofdump
23 if \endofdump is encountered in the preamble
24 ~ \csname endofdump\endcsname
25 for convenience: to avoid `undefined control sequence'
26 in case the document is compiled without the format.
27
28 - \begin{document} \endofdump or \csname endofdump\endcsname
29 can be precedeed or followed by other macros or commentaries.
30
31 - Commentaries in the preamble are ignored (braces are not required
32 to be equilibrated).
33
34 - packages that modify the \document macro (like auxhook.sty or
35 etoolbox.sty) can be included in the format.
36
37 - A report is available in the .log file.
38
39 I have been using mylatexformat.ltx with MikTeX under:
40 - pdfTeX in dvi mode
41 - pdfTeX in pdf mode
42 - XeTeX
43
44 Comments about its use on other system are welcome !