Menu

#384 driver not found when using lualatex in TL16

v1.0 (example)
closed-fixed
nobody
None
5
2018-12-23
2016-04-08
U_Fischer
No

I'm pretesting TexLive 2016 and there is problem with the pgfsys-driver setting for lualatex. The graphicx-package now has a dedicted driver for luatex and sets \Gin@driver to luatex-def. As pgf is using

\edef\pgfsysdriver{pgfsys-\Gin@driver}% should be right

but has no pgfsys-luatex.def driver one gets an error.

\documentclass{article}
\usepackage{graphicx}
\makeatletter\show\Gin@driver
\usepackage{tikz}
\begin{document}
\end{document}

gives (shorten to the relevant parts):

This is LuaTeX, Version beta-0.95.0 (TeX Live 2016/W32TeX)  (format=lualatex 2016.4.8)  8 APR 2016 18:34
....

> \Gin@driver=macro:
->luatex.def.
l.5 \makeatletter\show\Gin@driver

...

 (d:/texlive/2016/texmf-dist/tex/generic/pgf/systemlayer/pgf.cfg
File: pgf.cfg 2008/05/14  (rcs-revision 1.7)
)
Driver file for pgf: pgfsys-luatex.def

! Package pgf Error: Driver file ``pgfsys-luatex.def'' not found..

Discussion

  • Norbert Preining

    Copying pgfsys-pdftex.def to pgfsys-luatex.def and adding the following three lines at the top, plus changing some pdfpage(height|width) to page(height|width) produced a working pgfsys-luatex.def for me.

    I attach the file I use

     
  • Norbert Preining

    Here a better file. I have (using perl) replaced all the primitives hat got dropped (as listed in the luatex manual) with there replacement.

    I tested this file with several of my documents using pgf/tikz, without any problem.

    Hope that helps

    Norbert

     
  • Norbert Preining

    I attach also pgflibrarypgfplots.surfshading.pgfsys-luatex.def converted the same way. No idea how to test, though.

     
  • Peter Buxton

    Peter Buxton - 2016-05-27

    Hello,

    I also have the same problem. Without including your "pgfsys-luatex.def" file I too fail with the:

    ! Package pgf Error: Driver file ``pgfsys-luatex.def'' not found..
    

    error message. When I include your file I get further but then fail with:

    ! Undefined control sequence.
    \sa@placebox ->\newpage \global \pdfpagewidth
                                                                                                 =\wd \sa@box \global \pdfpageh...
    1.143 \end{tikzpicture}
                                              %
    ?
    

    I have attached a short test file which you can try to compile (it compiles perfectly well using pdflatex).

    Note, this file was made using matlab2tikz which converts a matlab plot to LaTeX. The reason why I want to use lualatex is so that I am not limited by memory when I have larger plots.

    Thanks,
    Peter

     

    Last edit: Peter Buxton 2016-05-27
  • Peter Buxton

    Peter Buxton - 2016-05-27

    Found a work around!!

    You must use both the pgfsys-luatex.def file, and add the following to the preamble: \RequirePackage{luatex85}

     
  • Stefan Pinnow

    Stefan Pinnow - 2018-12-23
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,8 +1,8 @@
    -I'm pretesting TexLive 2016 and there is problem with the pgfsys-driver setting for lualatex. The graphicx-package now has a dedicted driver for luatex and sets \Gin@driver to luatex-def. As pgf is using 
    +I'm pretesting TexLive 2016 and there is problem with the pgfsys-driver setting for lualatex. The `graphicx`-package now has a dedicted driver for luatex and sets `\Gin@driver` to `luatex-def`. As pgf is using 
    
         \edef\pgfsysdriver{pgfsys-\Gin@driver}% should be right
    
    -but has no pgfsys-luatex.def driver one gets an error. 
    +but has no `pgfsys-luatex.def` driver one gets an error. 
    
     ~~~~
    @@ -15,7 +15,6 @@
     ~~~~
    
     gives (shorten to the relevant parts):
    -
    
     ~~~~
     This is LuaTeX, Version beta-0.95.0 (TeX Live 2016/W32TeX)  (format=lualatex 2016.4.8)  8 APR 2016 18:34
    
    • status: open --> closed-fixed