# custom luatex format file

I have to process a big number of files with the same preamble. Therefore I try to build a custom format file. The biggest »time eater« is font loading in lualatex, so I try to load the fonts in the format file.

I copied lualatex.ini and modified it slightly, so that it loads my preamble just before dumping:

mylualatex.ini:

``````% [...]
% the next line is added by me
\input mypreamble.tex

% restore \dump for derived formats (mylatex, etc) that might use it
\let\dump\DUMP
\let\DUMP\undefined
\dump
``````

mypreamble.tex:

``````\documentclass[11pt]{scrartcl}
\usepackage[libertine={Ligatures=TeX,Numbers=OldStyle}]{libertineotf}
``````

When I try to use the generated format file, I get an segfault:

``````> luatex \&mylualatex.fmt
This is LuaTeX, Version beta-0.70.1-2011061416 (rev 4277)
restricted \write18 enabled.
[3]    4569 segmentation fault  luatex \&mylualatex.fmt
``````

TIA, Marcus

-
I think this has been mentioned on the luatex mailing list before, but lacks an entry on the bug tracker. I doubt that the font information will be stored in the format file. –  topskip Mar 3 '12 at 22:06
Thanks Patrick, sad to hear. I think I'll go with pdftex, which is fast enough for my purpose. –  mhobel Mar 3 '12 at 22:27
@PatrickGundlach: I think your comment is an answer. –  Marco Daniel Mar 4 '12 at 13:43
@PatrickGundlach: tracker.luatex.org/view.php?id=746 –  Martin Schröder Mar 4 '12 at 19:59

The issue with `luatex` crashing has been fixed in LuaTeX SVN. See http://tracker.luatex.org/view.php?id=787

It still won't help with font loading though.

-
Welcome to TeX.SX! –  Papiro Jun 5 '13 at 9:02