[luatex] format creation with tikz included failed

Christophe Jorssen jorssen.leraincy at free.fr
Wed Aug 31 22:57:01 CEST 2011


Hello all,

I'm trying to create a LaTeX-based format with tikz preloaded.

I run

luatex --ini tikzlualatex.ini

with

% tikzlualatex.ini (adapted from lualatex.ini in texlive 2011)
\input lualatexiniconfig.tex
\input pdftexconfig.tex
\scrollmode
\let\DUMP\dump
\let\dump\relax
\input latex.ltx
\input lualatex-patch-kernel.tex
\input lualatexquotejobname.tex
\input lualatex-reset-codes.tex
\input luatex-unicode-letters.tex
\RequirePackage{tikz}
% The following is required by pdftexcmds, read by graphicx, read by
pgfcore.sty, read by tikz.sty
% Maybe I missed some other lua snippets not included in the format?
\everyjob={%
  \csname pdftexcmds at directlua\endcsname{%
    require("oberdiek.pdftexcmds")}}
\let\dump\DUMP
\let\DUMP\undefined
\dump
\endinput
% end tikzlualatex.ini

It works fine.

Then, when I compile test.tex with

luatex --fmt=tikzlualatex test.tex

I get

PANIC: unprotected error in call to Lua API (object in use)

% test.tex
\documentclass{article}
\begin{document}
Test
\end{document}
%end test.tex

% test.log
This is LuaTeX, Version beta-0.70.1-2011061416 (rev 4277)
(format=tikzlualatex 2011.8.31)  31 AUG 2011 22:38
 restricted \write18 enabled.
**test.tex
(./test.tex (/usr/local/texlive/2011/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/local/texlive/2011/texmf-dist/tex/latex/base/size10.clo
File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
)
\c at part=\count99
\c at section=\count100
\c at subsection=\count101
\c at subsubsection=\count102
\c at paragraph=\count103
\c at subparagraph=\count104
\c at figure=\count105
\c at table=\count106
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen147
) (./test.aux)
LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 2.
LaTeX Font Info:    ... okay on input line 2.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 2.
LaTeX Font Info:    ... okay on input line 2.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 2.
LaTeX Font Info:    ... okay on input line 2.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 2.
LaTeX Font Info:    ... okay on input line 2.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 2.
LaTeX Font Info:    ... okay on input line 2.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 2.
LaTeX Font Info:    ... okay on input line 2.

ABD: EveryShipout initializing macros
(/usr/local/texlive/2011/texmf-dist/tex/context/base/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
\scratchcounter=\count107
\scratchdimen=\dimen148
\scratchbox=\box35
\nofMPsegments=\count108
\nofMParguments=\count109
\everyMPshowfont=\toks25
\MPscratchCnt=\count110
\MPscratchDim=\dimen149
\MPnumerator=\count111
\makeMPintoPDFobject=\count112
\everyMPtoPDFconversion=\toks26
) (/usr/local/texlive/2011/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty
Package: epstopdf-base 2010/02/09 v2.5 Base part for package epstopdf

(/usr/local/texlive/2011/texmf-dist/tex/latex/oberdiek/grfext.sty
Package: grfext 2010/08/19 v1.1 Managing graphics extensions (HO)

(/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/kvdefinekeys.sty
Package: kvdefinekeys 2011/04/07 v1.3 Defining keys (HO)
))
(/usr/local/texlive/2011/texmf-dist/tex/latex/oberdiek/kvoptions.sty
Package: kvoptions 2010/12/23 v3.10 Keyval support for LaTeX options (HO)

(/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty
Package: kvsetkeys 2011/04/07 v1.13 Key value parser (HO)

(/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/etexcmds.sty
Package: etexcmds 2011/02/16 v1.5 Prefix for e-TeX command names (HO)
)))
Package grfext Info: Graphics extension search list:
(grfext)             [.png,.pdf,.jpg,.mps,.jpeg,.jbig2,.jb2,.PNG,.PDF,.JPG,.JPE
G,.JBIG2,.JB2,.eps]
(grfext)             \AppendGraphicsExtensions on input line 452.

(/usr/local/texlive/2011/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg
File: epstopdf-sys.cfg 2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Liv
e
))
[1

{/usr/local/texlive/2011/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
% end test.log

The same kind of error hase been found in April by Paul Isambert, as
reported here

http://tug.org/pipermail/luatex/2010-April/001520.html

but I cannot reproduce what he described then.

Note that when I use the standard LaTeX format, I can load tikz
without any problem. I see that luatex-loader.sty is called during
format creation. Do I have to adapt the \everyjob token list to take
it into account?

I'm using the latest pgf development code not too far from the pgf
that can be found in tlcontrib.

Any ideas would be highly appreciated: I'm just one step from being
able to use luatex for my daily work :-)

Thanks in advance.

-- 
Christophe


More information about the luatex mailing list