неделя, 3 януари 2016 г.

How to export latex figure to eps

It turned out quite easily (see here).
You need to use the tikz package and then add:
\usetikzlibrary{external}
\tikzset{external/system call={latex \tikzexternalcheckshellescape -halt-on-error
-interaction=batchmode -jobname "\image" "\texsource";
dvips -o "\image".ps "\image".dvi;
ps2eps "\image.ps"}}
\tikzexternalize
\begin{document}

Then you have to run in the konsole
$latex --shell-escape document.tex
and you have your eps. Oddly enough I couldn't make Kile do that or use the pdftex option, but anyway, at leat the eps export works like this.