[OS X TeX] Using \usepgfplotslibrary{external}

Herbert Schulz herbs at wideopenwest.com
Thu Aug 4 15:57:44 CEST 2016


> On Aug 4, 2016, at 7:56 AM, Martin Bergren <martin.berggren at cs.umu.se> wrote:
> 
>> On 04 Aug 2016, at 14:52, Herbert Schulz <herbs at wideopenwest.com> wrote:
>> 
>>> On Aug 4, 2016, at 7:22 AM, Martin Bergren <martin.berggren at cs.umu.se> wrote:
>>> 
>>> I would like to be able to use
>>> 
>>> \usepgfplotslibrary{external}
>>> 
>>> for pgfplots, which apparently should be able to store the pgfplots or tikz figures as pdfs to shorten latexing time. The problem seem to be write18. 
>>> Is there a way around it?
>>> 
>>> Cheers,
>>> 
>>> 
>>> Martin Berggren
>> 
>> Howdy,
>> 
>> Assuming you are using TeXShop:
>> 
>> One thing you can use is the sepdflatexmk engine. This is set up to use latexmk so that all processing through bibtex/biber and makeindex is taken care of if necessary and the pdflatex has the --shell-escape flag set. To use it simply place the line
>> 
>> % !TEX TS-program = sepdflatexmk
>> 
>> at the top of your file and then typeset the document by simply using Typeset->Typeset (Cmd-T).
>> 
>> 
> 
> But this is not a bibtex/biber and makeindex issue. This is about pgfplots,  which I think is running (in my case) lualatex in the background to produce the plots.
> 
> Cheers,
> 
> Martin Berggren

Howdy,

If it's really using lualatex you need to somehow have it load the luatex85 package and the shellesc package under lualatex. I don't know if your initial file is run under lualatex but you might try to include

\ifx\directlua\@undefined
\else
\RequirePackage{luatex85}
\RequirePackage{shellesc}
\fi

before the \documentclass command. Otherwise you need to see how to have that included in the lualatex call.

I think tikz-fct uses gnuplot and, assuming you have gnuplot in your PATH, using the shell escape provided by the sepdflatexmk engine should do the job.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)







----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: https://www.esm.psu.edu/~gray/tex/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
                https://email.esm.psu.edu/pipermail/macosx-tex/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex


More information about the macostex-archives mailing list