Menu
CTAN
Comprehensive TeX Archive Network
Cover Upload Browse Search

Direc­tory tex-archive/macros/latex/contrib/mylatexformat

Use mylatexformat.ltx to make a format based on the preamble
of any LaTeX file.

The use of formats helps to speed up compilations: packages which have been
dumped in the format are loaded at very high speed. This is useful when a
document load many packages (pgf-TikZ among other...)

For the creation of the format use a command line like:

etex -initialize [opts] "&pdflatex" mylatexformat.ltx """abc.tex"""

mylatexformat.ltx has been primarily written from mylatex.ltx
(available on CTAN under the contrib/Carlisle/ directory) but
gets rid of many limitations or problems of mylatex.ltx.

More precisely:

- The format is created from the beginning of the file (usually
  \documentclass[...]{...}
  until either:
         ~ \begin{document}
         ~ \endofdump
                if \endofdump is encountered in the preamble
         ~ \csname endofdump\endcsname
                for convenience: to avoid `undefined control sequence'
                in case the document is compiled without the format.

- \begin{document} \endofdump or \csname endofdump\endcsname
  can be precedeed or followed by other macros or commentaries.

- Commentaries in the preamble are ignored (braces are not required
  to be equilibrated).

- packages that modify the \document macro (like auxhook.sty or
  etoolbox.sty) can be included in the format.

- A report is available in the .log file.

I have been using mylatexformat.ltx with MikTeX under:
    - pdfTeX in dvi mode
    - pdfTeX in pdf mode
    - XeTeX

Comments about its use on other system are welcome !

Files

Name Size Date Notes
README 1552 2010-08-27 20:29
mylatexformat.dtx 41276 2011-02-13 00:10
mylatexformat.pdf 201411 2011-02-13 00:10

Down­load the con­tents of this pack­age in one zip archive (157.0k).

my­la­tex­for­mat – Build a for­mat based on the pream­ble of a LaTeX file

The use of for­mats helps to speed up com­pi­la­tions: pack­ages which have been dumped in the for­mat are loaded at very high speed. This is use­ful when a doc­u­ment loads many pack­ages (in­clud­ing large pack­ages such as pgf-TikZ).

The pack­age was de­vel­oped from the work in my­la­tex, and elim­i­nates many of the lim­i­ta­tions and prob­lems of that pack­age.

Pack­age De­tailsmy­la­tex­for­mat
Ver­sion3.4
Li­censeThe LaTeX Project Public Li­cense 1.3
Copy­right2010-2011 Florent Chervet
Main­tainerFlorent Chervet
Con­tained inTeXlive as my­la­tex­for­mat
MikTeX as my­la­tex­for­mat
Topics macros to build a for­mat
Guest Book Sitemap Contact