1

I use many macro defintions in my latex documents and many packages, which I want to be appended to the latex.fmt file. Is it possible to create a new format file with appended macros? And if it's possible how do I achieve that with MikTeX?

Where is the document included if I compile it with the new format file? Is there any way to specify the inclusion-point?

To clearify what I mean:

Is it possible to include a file like this if I compile a file document.texwith mypdflatex document.tex:

% position of the latex.fmt and mylatex.fmt macros (e.g. the commenly used packages)
\documentclass{scrarticl}
\begin{document}
% position of the file which should be compiled
\end{document}
% some other definitions maybe
Sebi2020
  • 111
  • You can create your own format see e.g. http://www.ctan.org/pkg/mylatex, but you will probably have to put the class in the format too as many packages should be loaded after the class. – Ulrike Fischer Sep 17 '15 at 16:41
  • Somewhat related: http://tex.stackexchange.com/questions/51972/how-to-use-tex-ini-tex-fmt-initex-and-fmtutil –  Sep 17 '15 at 16:48
  • @UlrikeFischer Why do I need this package for creating my own format files? – Sebi2020 Sep 17 '15 at 18:43
  • I could add an answer how it works for TeXLive on Linux, but this would not be a real answer then –  Sep 17 '15 at 19:54
  • For the same reason that you are using other packages: so that you don't have to write all the necessary code yourself. "Dwarfs standing on the shoulders of giants" @davidcarlisle – Ulrike Fischer Sep 17 '15 at 19:55
  • @UlrikeFischer I thought of fmt-files being only binary memory dumps of regular tex /dtx/sty/cls files, so why is additional code required to make things working? there any literature explaining the creation of format files in detail? – Sebi2020 Sep 18 '15 at 12:49
  • @ChristianHupfer that wouldn't be the real answer, but I think the tex-part doesn't differ between the distributions. I thought only the tools used to compile the tex-files and the way how they are included at startup differs. – Sebi2020 Sep 18 '15 at 12:52
  • 1
    @Sebi2020: Check the code. There is also a newer package mylatexformat. – Ulrike Fischer Sep 18 '15 at 13:06

0 Answers0