0

Minimal working example is:

\documentclass{article}

\usepackage{tikz}
\usepackage{auto-pst-pdf}
\usepackage{psfrag}
\usepackage{tcolorbox}

\newtcbox{\mybox}{}

\begin{document}

\begin{figure}
   \psfrag{C0}[Bc][bl][1.5]{\mybox{$x$}}
   \includegraphics{empty.eps}
\end{figure}

\end{document}

(the content of empty.eps doesn't matter). Attempting to compile this with

pdflatex -shell-escape mwe.tex

leads to the following error:

Error: /undefined in pgfo
Operand stack:

Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   2045   1   3   %oparray_pop   2044   1   3   %oparray_pop   2025   1   3   %oparray_pop   1884   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   --nostringval--   --nostringval--
Dictionary stack:
   --dict:962/1684(ro)(G)--   --dict:1/20(G)--   --dict:128/200(L)--   --dict:179/300(L)--
Current allocation mode is local
Current file position is 138771
GPL Ghostscript 9.26: Unrecoverable error, exit code 1
system returned with code 256

What's amiss here?

P.S.: This TikZ and auto-pst-pdf break Ghostscript seems to be related.

  • 1
    You want to use a tcolorbox as replacement text in a .eps file? Compilation works for me with xelatex, however – user31729 Jan 4 at 22:52
  • Yes, I want. In fact I did, meaning that this worked with pdflatex for at least some version (on a computer that's now broken). – BlenderBender Jan 4 at 22:59
  • Related: tex.stackexchange.com/questions/37982/… – user31729 Jan 4 at 23:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.