New answers tagged

2

Well here's the diagram almost finished. Thank you @cfr, your example was perfect. \documentclass[tikz,border=10pt]{standalone} \usepackage{forest} \begin{document} \begin{forest} for tree={ edge path={ \noexpand\path [\forestoption{edge}] (!u.parent anchor) -- +(0,-2.5mm) -| (.child anchor)\forestoption{edge label}; }, parent anchor=south, child ...


2

Details are left as an exercise to the reader.... Focus is on the topic of the question i.e. adding labels. \documentclass[tikz,border=10pt]{standalone} \usepackage{forest} \begin{document} \begin{forest} for tree={ edge path={ \noexpand\path [\forestoption{edge}] (!u.parent anchor) -- +(0,-2.5mm) -| (.child anchor)\forestoption{edge label}; ...


4

I would use prooftrees. It goes without saying that I am biased. On the other hand, I would have happily not written this package if I could have found one which did the job I wanted. The package is based on forest and not yet published. However, if you want to try it, let me know and I will give you a copy of version 0.09 which is the current one. When ...


0

Here is what I came up with so far. I tried to cram it using s sep although some there might be room for improvement. This is still not completely flawless from my point of view, but it should be ok to start with. Concerning the labels, the text should rather be left aligned than the actual text boxes (or whatever is the right notion here) The ...


3

This solution also uses forest but it uses it via a wrapper provided by the package justtrees. This package is experimental but I'm happy to provide copies on request. (I need guinea pigs!) The point of justtrees is to make it easy to provide horizontally aligned labels to the left and/or right of the tree. In particular, it does all the calculating and ...


4

If you don't mind, you could switch to the forest package which makes it neater to build trees, only using square brackets for writing the tree. The levels are actually a branch of the tree, but the edges are not drawn (using the command no edge). Here's how the tree actually appears: Output Code \documentclass[margin=10pt]{standalone} ...



Top 50 recent answers are included