# Tag Info

5

I don't know much about these kinds of trees, but it appears that the nodes are organized in rows and columns, which you are not likely to get with any of the regular tree drawing packages. So if that's important, it would make sense to use a matrix to do this. Here's an example using TikZ. Some notes about the syntax used here. When specifying a matrix ...

1

I suppose forest deserves to be mentioned as well. Code \documentclass[border=2pt]{standalone} \usepackage{forest} \begin{document} \begin{forest} for tree={l+=1cm} % increase level distance [root [left[lleft][lright]] [right[rleft][rright]] ] \end{forest} \end{document} Output

1

A recommended solution with PSTricks just for fun. \documentclass[preview,border=12pt]{standalone} \usepackage{pst-tree} \psset{treemode=D,nodesep=3pt} \begin{document} \psTree{\Tr{root}} \psTree{\Tr{left}} \Tr{lleft} \Tr{rleft} \endpsTree \psTree{\Tr{right}} \Tr{lright} \Tr{rright} \endpsTree \endpsTree ...

8

Having been having fun with straight-edge-and-compass constructions (thanks to What is the simplest way to draw this triangle exactly?), I thought I'd try my hand at a Christmas tree constructed using straight-edge and compass. (The animated version is about 5Mb. I'll have to stick it somewhere other than imgur and link to it.) \documentclass[ % ...

1

A recommended tree with PSTricks. \documentclass[preview,border=12pt]{standalone} \usepackage{pst-tree} \psset{treemode=R,edge=\ncline} \def\ABCD{% \psTree{\Tcircle{A}} \psTree{\Tcircle{B}} \pstree[edge={\ncline[linecolor=red]}]{\Tcircle{C}}{\Tcircle{D}}\taput{\tiny an example} \pstree{\Tcircle{D}}{\Tcircle{C}} ...

2

You can use $$\mathrm{BAL_{1}L_{2}$$ to remove the slant. The best tree-diagram program out there is pgf-tkiz, but you could also hack out something with dirtree. More on probability trees with pgf at this link: Example: Probability tree Some dirtree stuff here: (Semi-)automatic directory-tree in LaTeX

0

A recommended solution with PSTricks. \documentclass[preview,border=12pt]{standalone} \usepackage{pst-tree} \psset{labelsep=5pt,radius=3pt} \def\red{\ncline[linecolor=red]} \def\lbl#1#2{\nput{#1}{\pssucc}{$#2$}}% \nput will not update the bounding box! \begin{document} \psTree{\TC*~[tnpos=a]{1}} \psset{levelsep=1} ...

1

It is probably possible to get the last level (at least for a simple tree) from forest directly but for now, you need to give it manually. The egame style sets a few styles only for this tree. Comments in code. Code \documentclass[tikz]{standalone} \usepackage{forest} \tikzset{ edge label style/.style={text=.,font=\scriptsize,inner ...

Top 50 recent answers are included