0

I'm following this and this example that supposedly is using gnuplot. First, I'm getting results (U15.10, gnuplot 4.6.6, Emacs 24.5, latest Ubuntu texlive) from simply pasting the code into Emacs and hitting "Latex". It produces many files, including a pdf. But upon viewing the pdf I see everything plotted well but the actual plot lines. Not sure what this means or how to correct. Also, how does this involve gnuplot? I don't see it being called.

147pm
  • 1,369
  • You need to compile with shell-escape enabled to allow for the call to gnuplot. I'm not sure how to do that from emacs, but in a terminal you want something like pdflatex --shell-escape filename.tex. – Torbjørn T. Dec 27 '15 at 22:34
  • Thanks. That worked from the command line. And this seemed to clear up the problem by adding (setq LaTeX-command-style '(("" "%(PDF)%(latex) -shell-escape %S%(PDFout)"))) to my init. – 147pm Dec 28 '15 at 02:07

0 Answers0