TeX - LaTeX Asked by user228252 on December 24, 2020
I do not have too much experience with LaTeX and I would like to configure Texmaker so that LuaLaTeX can use an external program.
In this case, I would like to reproduce a graph (using Gnuplot (which has been added to my path envrironment variable : )) from the documentation of PGFplots:
documentclass[border=10pt]{standalone}
usepackage{pgfplots}
begin{document}
begin{tikzpicture}
begin{axis}[view={0}{90}]
addplot3[domain=-2:2, domain y=-1.3:1.3, contour gnuplot={number=14}]
{exp(-x^2-y^2)*x};
end{axis}
end{tikzpicture}
end{document}
But I got the error message:
! Package pgfplots Error: sorry, plot file{"Test"_contourtmp0.table} could not be opened.
After some research on the internet, it seems that LuaLaTeX cannot by default use external programs. So I tried to configure TeXmaker to make this possible, but I don’t think there is such an option, and the TeXmaker manual doesn’t tell me more…
Is it possible to do this with Texmaker?
Note: I don’t know if it matters, but I use the Miktex distribution.
Update
On the advice of Gigiair, I have changed the default command of Texmaker.
Of course, TeXmaker invokes external programs, since latex
, lualatex
, xelatex
are external programs to compile your source code.
But to use gnuplot
, the compiler has to call external programs. It needs to be authorized to do so. To do so, add '-enable-write18' to the compiling command. It should look like this: "lualatex -interaction=nonstopmode -enable-write18 %.tex"
Answered by gigiair on December 24, 2020
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP