Closed kiryph closed 7 years ago
I am not sure about this anymore. It seems to be that lualatex accepts both.
UPDATE The error I got was misleading following example works for me
\RequirePackage{luatex85,shellesc}
\documentclass[]{article}
\usepackage{gnuplottex}
\usepackage{tikz}
\usepackage{gnuplot-lua-tikz}
\usetikzlibrary{external}
\tikzexternalize[prefix=gnuplottex/] %-- Use the gnuplottex-subfolder. Deactivate
%-- the subfolderoption of gnuplottex to use!
\tikzset{external/system call={lualatex \tikzexternalcheckshellescape -halt-on-error -interaction=batchmode -jobname "\image" "\texsource"}}
\tikzexternalize
\begin{document}
\begin{figure}%
\centering%
\tikzsetnextfilename{ThisIsASinus}
\begin{tikzpicture}
\begin{gnuplot}[terminal=tikz, terminaloptions=color dashed nopicenvironment]
set grid xtics mxtics lt 0 ls 0
set grid ytics mytics lt 0 ls 0
set key box top left
plot sin(x) w l t 'Sinus'
\end{gnuplot}
\end{tikzpicture}
\caption{Captiontext.}%
\label{pic:ThisIsASinus}%
\end{figure}%
\end{document}
with
$ lualatex -shell-escape filename.tex
The issue I encountered is probably the same as #7, so I have missed for the more recent lualatex versions to add \RequirePackage{luatex85,shellesc}
.
UPDATE 2 The documentation of Web2c is a little bit more specific about this http://tug.org/texinfohtml/web2c.html#Option-conventions :
use ‘-’ or ‘--’ to start an option name;
And one should note that the popular building tool latexmk
follows this convention
All options can be introduced by single or double "-" characters, e.g., "latexmk -help" or "latexmk --help".
Thanks for looking into this. I'm glad it worked out.
https://github.com/larskotthoff/gnuplottex/blob/b12efdb66e5167e5d01efff60e1daf6ad603b327/gnuplottex.dtx#L632-L633
suggests
However, lualatex uses two hyphens in front of options (in contrast to pdflatex; an inconsistency which could have been avoided). I have checked following versions of lualatex: 0.79.1, 0.80 and 0.95.0 all use two hyphens.
So the example should read