2

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.

user34812
  • 325
  • Did you run (latex) it twice before dvips and ps2pdf? – Ignasi Jun 25 '14 at 15:21
  • @Ignasi: Yes, I tried that, doesn't work! – user34812 Jun 25 '14 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 Jun 25 '14 at 15:33
  • Why do you need latex? – Ignasi Jun 25 '14 at 15:33
  • What do you mean by "I get same results"? Do you get the same results as me or same results with pdflatex and latex?

    I need to use latex instead of pdflatex because I have to include .eps files into my document. Is there a way to convert .eps files to some other vector graphics format(not jpg, png or pdf) and then include them with pdflatex?

    – user34812 Jun 25 '14 at 17:48
  • 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 Jun 25 '14 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 Jun 25 '14 at 19:04

0 Answers0