Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
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 Nov 16 '10 at 15:11

1 Answer 1

\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 }
}
share|improve this answer
    
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

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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