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..
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
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
I attach also pgflibrarypgfplots.surfshading.pgfsys-luatex.def converted the same way. No idea how to test, though.
Hello,
I also have the same problem. Without including your "pgfsys-luatex.def" file I too fail with the:
error message. When I include your file I get further but then fail with:
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
Found a work around!!
You must use both the
pgfsys-luatex.def
file, and add the following to the preamble:\RequirePackage{luatex85}
Diff:
Thank you for reporting. This was already fixed a while ago in commit https://sourceforge.net/p/pgf/git/ci/109841e1261307e564246b6a97f599a372789d70/. (This was the last commit regarding this issue.)