I am facing a problem with the placement of my externalized TikZ/pgf/pgfplots figures. The externalization works well and the external figure is included into my document. The placement of the figure as well as the caption are not working correctly when I incorporate both the eso-pic and hyperref packages. The caption is then missing, and the figure placed on the next page disregarding the centering. A minimal working example is below


\tikzset{external/system call={latex \tikzexternalcheckshellescape -halt-on-error -interaction=batchmode -jobname "\image" "\texsource"; dvips -o "\image".ps "\image".dvi}}


This is a test.

    \draw [ultra thick,gray] (axis cs:0.5,0.5) to[out=80,in=200] (axis cs:1.5,2) to[out=-180+200,in=160] (axis cs:3,2) to[out=-180+160,in=110] (axis cs:4,1);
\caption{This is my Figure}

So is this.


I compile the document using TeXLive2011 and the commands

latex --shell-escape minimal.tex ; dvips minimal.dvi ; ps2pdf minimal.ps

Any suggestions how to avoid this issue is welcome!

closed as unclear what you're asking by Joseph Wright Jul 5 '14 at 21:25

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 4
    Not a solution but maybe you can avoid eso-pic? TikZ can also place items absolutely on a page. – Alexander Aug 4 '13 at 8:29
  • The placement is wrong if you use latex -> dvips -> ps2pdf. If you use pdflatex the placement is fine. Maybe that's an option? (I think the question is clear but only if you run the code.) – cfr Jul 5 '14 at 21:50