Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

i'm trying to export a TikZ picture to .eps using the following on Win7 (MikTeX), compiling with pdflatex:

\documentclass{article}
\usepackage{tikz}

\usetikzlibrary{external}
\tikzset{external/system call={pdflatex \tikzexternalcheckshellescape -halt-on-error 
-interaction=batchmode -jobname "\image" "\texsource" &&
pdftops -eps "\image".pdf}}
\tikzexternalize[shell escape=-enable-write18]

\begin{document}
\begin{tikzpicture}
\draw (0,0) circle (1cm);
\end{tikzpicture}
\end{document}}

For some reason, this does not yield any .eps file (the figure will only be exported as .pdf) - can somebody help me with this?

share|improve this question
    
You can compile your code without that settings using latex and then convert the dvi to eps. –  Sigur May 11 '13 at 16:21
    
Does it work manually? Here your example correctly calls pdftops -eps image.pdf. Do you get any error message? –  Alexander May 11 '13 at 16:27
    
Welcome to TeX.SX! Usually, we don't put a greeting or a “thank you” in our posts. While this might seem strange at first, it is not a sign of lack of politeness, but rather part of our trying to keep everything very concise. Accepting and upvoting answers is the preferred way here to say “thank you” to users who helped you. –  Peter Jansson May 11 '13 at 16:37
    
Note that TeX does not receive exit codes - if pdftops fails for some reason, it will assume that all is well and you do not get feedback. The external lib only checks if a "suitable" result file exists (I am unaware of options to receive the exit code, by the way) –  Christian Feuersänger May 11 '13 at 18:24
2  
For single diagrams you could also use the standalone class instead. –  Martin Scharrer Jun 23 '13 at 12:20

1 Answer 1

I had the same problem, due to an improper installation of pdftoeps (and also of ps2eps that you do not use). I follow https://sites.google.com/site/nathanandrewmiller/pdftops,ps2eps,epstopdf,pdftk for a correct installation and now it works.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.