<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">Hi all,<div><br></div><div>I am using TikZ to create a plot using gnuplot, which I know requires --shell-escape.  I am trying to call the sepdflatexmk engine, so I used TeXShop’s Macros to insert the following at the top of my file:</div><div><br></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;"><div>% !TEX TS-program = sepdflatexmk</div></blockquote><div><br></div><div>However, when I typeset the file, it just seems to call pdflatexmk.  I get the following in the Console:</div><div><br></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><div>Rc files read:</div></div><div><div>  /Volumes/Home/Library/TeXShop/bin/latexmkrcedit</div></div><div><div>  /Volumes/Home/Library/TeXShop/bin/tslatexmk/pdflatexmkrc</div></div><div><div>Latexmk: This is Latexmk, John Collins, 15 June 2025. Version 4.87.</div></div><div><div>Latexmk: applying rule 'pdflatex'...</div></div><div><div>Rule 'pdflatex':  Reasons for rerun</div></div><div><div>Changed files or newly in use/created:</div></div><div><div>  09-10-2025 Lecture Slides.aux</div></div><div><div>  09-10-2025 Lecture Slides.tex</div></div><div><div>Category 'changed_user':</div></div><div><div>  09-10-2025 Lecture Slides.tex</div></div><div><div>Category 'never_run':</div></div><div><div>  pdflatex</div></div><div><div><br></div></div><div><div>------------</div></div><div><div>Run number 1 of rule 'pdflatex'</div></div><div><div>------------</div></div><div><div>------------</div></div><div><div>Running 'pdflatex  --synctex=1 --file-line-error  -recorder  "09-10-2025 Lecture Slides.tex"'</div></div><div><div>------------</div></div></blockquote><div><br></div><div>And, when it gets to the TikZ code, I get the following error:</div><div><br></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><div>./09-10-2025 Main.tex:233: Package pgfplots Error: Sorry, the gnuplot-result file '"09-10-2025 Lecture Slides.cosh.table"' could not be found. Maybe you need to enable the shell-escape feature? For pdflatex, this is '>> pdflatex -shell-escape'. You can also invoke '>> gnuplot <file>.gnuplot' manually on the respective gnuplot file..</div></div></blockquote><div><br></div><div>What am I doing wrong?</div><div><br></div><div>Thanks,</div><div>Josh</div></body></html>