While doing tree proofs, sometimes we need to consider a root with some subtrees, but we don't know the exact properties of the subtrees, so we just represent them using triangles. Is it possible to do this using latex, preferably using the tikz package? Or will I have to manually have to draw the triangles? This seems like something that might be quite common, so I guess it should be possible.

  • Can you give an example of what you are trying to do? tikz-qtree library might help. There are many examples in the manual and on this site. – mythealias Oct 28 '12 at 20:38
  • The answer given below is what I was looking for :) – notablytipsy Oct 28 '12 at 20:41

The tikz-qtree package provides a [roof] style for these kinds of nodes for use in linguistic trees. I'm not sure if this is what you want:

\Tree [.A [.B ]  [.C [.D \edge[roof]; {This is some stuff without internal structure} ] [.E ] ]]

output of code

  • Thanks! Exactly what I needed. I have to wait to accept, otherwise I'd have accepted already :) – notablytipsy Oct 28 '12 at 20:42

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.