[luatex] format creation with tikz included failed

Christophe Jorssen jorssen.leraincy at free.fr
Thu Sep 1 18:09:10 CEST 2011


2011/8/31 Christophe Jorssen <jorssen.leraincy at free.fr>:
> Hello all,
>
> I'm trying to create a LaTeX-based format with tikz preloaded.
>

[snip]

Well, I think I found the culprit... But I don't know what to do...

Consider the following file to create the format

% 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{pgfrcs}
\makeatletter
\input pgfsys-pdftex.def
\let\dump\DUMP
\let\DUMP\undefined
\dump
\endinput
% end tikzlualatex.ini

The faulty part is at the end of pgfsys-pdftex.def at the call of
\pgfutil at setuppdfresources (just put a \endinput before and no PANIC
message).

This macro expands in that context to \pgf at sys@setuppdfresources at plain

\def\pgf at sys@setuppdfresources at plain{%
  % This command will setup pdf resource in plain and in latex
  % mode. ConTeXt has its own handler
  % Page resources (they are kept in objects and only written at the
  % very end)
  \pdfobj reserveobjnum \edef\pgf at sys@pdf at extgs@objnum{\the\pdflastobj}
  \pdfobj reserveobjnum \edef\pgf at sys@pdf at pattern@objnum{\the\pdflastobj}
  \pdfobj reserveobjnum \edef\pgf at sys@pdf at colrospaces@objnum{\the\pdflastobj}
  \def\pgf at sys@pdf at possible@resources{%
    /ColorSpace \pgf at sys@pdf at colrospaces@objnum\space 0 R
    /Pattern    \pgf at sys@pdf at pattern@objnum\space 0 R
    /ExtGState  \pgf at sys@pdf at extgs@objnum\space 0 R
  }
  \let\pgf at sys@pdf at check@resources=\relax%
  \def\pgf at sys@pdf at install@pageresources{
    {
      \edef\temp{
        \pgf at sys@pdf at possible@resources
      }
      \expandafter\global\expandafter\pdfpageresources\expandafter{\temp}
    }
  }
  \pgf at sys@pdf at install@pageresources
  \expandafter\pgfutil at everybye\expandafter{%
    \the\pgfutil at everybye%
    \immediate \pdfobj useobjnum \pgf at sys@pdf at extgs@objnum
{<<\pgf at sys@pgf at resource@list at extgs>>}%<<
    \immediate \pdfobj useobjnum \pgf at sys@pdf at pattern@objnum
{<<\pgf at sys@pgf at resource@list at patterns>>}%<<
    \immediate \pdfobj useobjnum \pgf at sys@pdf at colrospaces@objnum
{<<\pgf at sys@pgf at resource@list at colorspaces>>}%<<
  }
  \let\pgf at sys@pgf at resource@list at extgs=\pgfutil at empty%
  \let\pgf at sys@pgf at resource@list at patterns=\pgfutil at empty%
  \let\pgf at sys@pgf at resource@list at colorspaces=\pgfutil at empty%
  \def\pgf at sys@addpdfresource at extgs@plain##1{\xdef\pgf at sys@pgf at resource@list at extgs{\pgf at sys@pgf at resource@list at extgs\space##1}}
  \def\pgf at sys@addpdfresource at patterns@plain##1{\xdef\pgf at sys@pgf at resource@list at patterns{\pgf at sys@pgf at resource@list at patterns\space##1}}
  \def\pgf at sys@addpdfresource at colorspaces@plain##1{\xdef\pgf at sys@pgf at resource@list at colorspaces{\pgf at sys@pgf at resource@list at colorspaces\space##1}}
}

>From here on, I really don't know... Any ideas?

Thanks in advance.

Best regards

PS: pgf/tikz-dev in tlcontrib is available for tl2011.

-- 
Christophe


More information about the luatex mailing list