I am trying to achieve a box within another box in tikz and then drawing an edge from the inner box to an outer node. I stumbled upon this solution

When I compile it using pdflatex, I get the desired output(just like the answerer mentioned):

Proper output

However, compiling with latex and subsequently with dvips and ps2pdf(or dvipdf), I get this:

Improper output

I want to know what is causing this and can it be corrected, since I need to use latex and not pdflatex. Thanks in advance.

  • Did you run (latex) it twice before dvips and ps2pdf?
    – Ignasi
    Commented Jun 25, 2014 at 15:21
  • @Ignasi: Yes, I tried that, doesn't work!
    – user34812
    Commented Jun 25, 2014 at 15:22
  • I don't know what happens. With XeLaTeX (MikTeX updated 23/06/2014) I get same results. It's not a solution but the code in my answer works with latex+dvips+ps2pdf and xelatex.
    – Ignasi
    Commented Jun 25, 2014 at 15:33
  • 1
    I get same results than you. And yes, you can include *.eps graphics with epstopdf package in preamble (which will convert them to pdf on the fly) or convert them to pdf with some conversion utility.
    – Ignasi
    Commented Jun 25, 2014 at 18:43
  • 1
    It works! So I don't need to use latex anymore, pdflatex will do. So my problem is solved, but the question is still valid!
    – user34812
    Commented Jun 25, 2014 at 19:04


You must log in to answer this question.

Browse other questions tagged .