2

In this example, using pst-tree package:

\def\psedge{\ncangles[armA=.5, angleB=180, linearc=.2]}
\pstree[treemode=R, levelsep=3cm] {\Toval{ root }} {
  \Toval{ Tom }
  \Toval{ Cat }
  \Toval{ Very very very very very long entry }
  \Toval{ Jerry }
}

The output is ugly because the nodes are aligned by center, how can I make it align to the left?

  • 1
    This looks like a duplicate of an earlier question. Sadly, that question hasn't been answered yet. – Juan A. Navarro Nov 3 '10 at 22:22
  • Looks like it's been answered now. Not sure how helpful that answer is for this question, though. – Andrew Arnold Nov 16 '10 at 15:11
1
+250
\def\psedge{\ncangle[armA=.5cm,angleB=180, linearc=.2]}

\pstree[treemode=R, levelsep=3cm] {\Toval{ root }} {
  \Toval{ Tom }
  \Toval{ Cat }
  \Tr{\makebox[4em][l]{\psovalbox{Very very very very very long entry}}}
  \Toval{ Jerry }
}
  • Welcome! Four spaces in front of a line of code formats it nicely. You can also click the 010101 button when you are editing. – Matthew Leingang Dec 16 '10 at 5:46
  • To include code: paste to the editor, highlight the code, and then click the binary-like button. Clicking the binary-like button first will result in misalignment. – xport Dec 16 '10 at 6:57

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.