Is there a way to insert a Tree (with depth 1) in a Tree-node? Which package to use and how to accomplish that?

  • Can you elaborate that? Do you mean a tree as a new object inside a tree node? Or a tree merged into an existing node? – Chris Jan 24 '11 at 9:55
  • A tree as a new object inside a node. I played with the tikz-package regarding that, but failed to do it and could not find any good example. Thank you. – user3114 Jan 24 '11 at 9:59
  • 1
    Perhaps a picture of what you are trying to achieve would help us understand what you want – Seamus Jan 24 '11 at 16:40

One thing you could try is to put a new tikzpicture inside the node, and create the tree in that. You would have to figure out the anchors, though.

  • Never nest tikzpictures! – cfr Dec 7 '16 at 3:41
  • @cfr: why? Do you have any reference in the pgf manual or elsewhere that says so? What kind of trouble am I inviting if I do nest them? And, finally, what would then be the correct way to achieve what the OP wants? – Jan Hlavacek Dec 7 '16 at 6:04
  • There are several questions on this site explaining why doing this means trouble. In very simple cases, you may get lucky but you should expect it to break (now or with a later update or whatever). If you put the inner one in a save box first, You can include it into another one with \usebox, for example, because the content is then typeset earlier when the box is saved (I think). – cfr Dec 7 '16 at 16:25

Your Answer

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