# Tag Info

2

I can't read your handwriting well so I added placeholders in most nodes; if you could add them in your question, I'll update the answer. I think you can easily use a forest package for this. If you want to add a label that follows the branch, then write: edge label={node[midway,sloped,anchor=south]{some calc}} Otherwise, remove sloped and replace the ...

1

I can provide a new answer based on a new package named genealogytree. On the time of writing, the version needed is 0.90 (2015/05/22). This package was specifically designed to typeset such kind of diagrams. For auto-layout, a layered graph has to be used. Therefore, I put the grandchildren in one layer: \documentclass{article} ...

2

With forest it's easy to change how the tree grows. It has a reversed option. \documentclass{standalone} \usepackage{forest} \usepackage{amsmath} \usepackage{etex} \begin{document} \begin{forest} for tree={edge = ->, reversed} [$\dfrac{1}{1}$ [$\dfrac{1}{2}$ [$\dfrac{1}{3}$[\vdots]] [$\dfrac{3}{2}$[\vdots]]] [$\dfrac{2}{1}$ ...

2

May be you can define each graph as a TikZ pic. Each pic can be anything you want. If you use nodes inside them, as pic's name space is independent for each pic and all names are remembered, it's easy to join them. \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows.meta,shapes,positioning,trees} \tikzset{ vertex/.style = {circle, ...

2

A solution with Tikz. Output Code \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows.meta,shapes,positioning,trees} \tikzset{ vertex/.style = {circle, draw=blue!60, fill=blue!40, minimum size=2mm} } \begin{document} \begin{tikzpicture}[% no edge from this parent/.style={ edge from parent/.style={draw=none}}, level ...

3

I found an .sty file by Prof. Wei Wang from University of New South Wales which seems pretty nice: http://www.cse.unsw.edu.au/~weiw/tools.html \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{weiwBTree} \typeout{Document Style `weiw_BTree - Support drawing B+-Tree (ver 0.999)} \RequirePackage{tikz} \RequirePackage{ifthen} % use libraries ...

7

NEW ANSWER I finally got fed up with not having a better solution to offer people. Logic is not well served, particularly for teaching lower level classes. My solution is an extremely tentative, fragile package. It is not free of hacks, it is not in any way optimised and it is not altogether automatic. Caveat emptor... The package is called prooftrees ...

2

Since cfr provided a nice solution with the forest package, here's one with Tikz. Output Code \documentclass[margin=10pt]{standalone} \usepackage{tikz} \usepackage{tikz-qtree} \usetikzlibrary{trees,calc,arrows.meta,positioning,bending} \tikzset{ edge from parent/.style={draw, gray}, coln/.style={scale=0.6,inner sep=2pt, outer ...

3

Here's one way of doing the tree in LaTeX itself using the forest package: \documentclass[tikz,border=5pt]{standalone} \usepackage{forest} \usetikzlibrary{arrows.meta} \begin{document} \begin{forest} for tree={ parent anchor=south, child anchor=north, tier/.wrap pgfmath arg={tier#1}{level()}, font=\sffamily } [ROOT, ...

1

Here's one way using forest which produces especially compact trees. \documentclass[twocolumn]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{forest,kantlipsum} \forestset{% adapted from page 52 nice empty nodes/.style={ delay={ where content={}{ shape=coordinate, for parent={ for children={ ...

2

Here's a forest solution to get you started. If you run into a divide by 0 error, you will need to tweak the value of outer ysep in the definition of the nice trees style; this is a workaround from the comments on this question about a bug that causes this error. \documentclass{article} \usepackage{forest} \forestset{ nice trees/.style={ for ...

1

Use the forest package. It's much better than qtree. And it's meant to deal precisely with proper alignment.

Top 50 recent answers are included