I'm making an academic family tree and I'd like to put a couple of bullet points of info for each person. I'm just starting with LaTeX, so this is the simplest code possible:
\documentclass[border=10pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[sibling distance=10em,
every node/.style = {shape=rectangle, rounded corners,
draw, align=center,
top color=white, bottom color=blue!20}]]
\node {Manfred Kock}
child { node {Karsten Danzmann}
child { node {\underline{Guido Mueller} }
child { node [draw, align=left]{\underline{Marina Longnickel} \\blah} }
child { node {Aaron Spector} }
child { node {James Ira Thorpe} }
child { node {Alix Preston} }
}
child { node {Oliver Jennrich} }
child { node {Gerhard Heinzel} }
};
\end{tikzpicture}
\end{document}
Is there a way to edit text the way one would in a Word document – underline, make bullet points, change font and size, etc?
Best Answer
Something like this?
I only change far left bottom node. Beside used
underline
intabular
environment are other possibilities which I can elaborate latter.Code of above image is:
Edit: In above code, according to additional information received in comments, I extend my first code with two case:
anchor=north
in definition of node features.tabular
and\textbullet
for additional text. Instead of\underline} for line under name I use
\hline` in tabular,in the next node on right I use
minipage
andcompactitem
from packageparalist
. Here the left to setting width ofminipage
manually, however, it can be set width of node widthtext width=31mm
and then omitminipage
\node[text width=33mm]\begin{compactitem}[\textbullet] ...
Edit (2): For use in
beamer
(as follows from your comment) you need to solve, how to fit image in frame. Frame's width is about 124 mm (if recall correct). Therefore I decided to have all nodes with the same fixed width determined bytext width=22mm
andsibling distance=26mm
. Also I select for size for main text in node\scriptsize
and for comments in itemstiny
size. Of course, you can change this selection to your taste and wish. Obtained image is:As you can see, now I pay attention to connection between nodes and use the same style as proposed cfr, but I still persist on pure TikZ solution. Code for above image is: