The questions below arose after trying to use code from an answer to the question at TikZ-tree: edge-alignment in horizontal org-chart
Question 1: As you can see I changed paper format to use B (11x17) and the picture scaled accordingly including text inside the boxes. As smaller text size is required, I tried changing 12pt to 10pt. Instead of changing text size, it changed width of the boxes. What is required in the code to use smaller text without changing tree layout?
Question 2: Why does new line \\ work in the teammate and subordinate styles, but not in Supervisor node? Does it need its own style?
Question 3: Is it possible to keep the units uniform, i.e. not use pt, cm, ex, em but limit the use of units to the minimum required?
Question 4: I could not find Tikz package and trees library at CTAN. Where can I find documentation?
\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[landscape,paper=ansibpaper]{geometry}
\usepackage{tikz}
\usetikzlibrary{trees}
\tikzstyle{every node}=[draw=black,thick,anchor=west, minimum height=2.5em]
\begin{document}
\begin{figure}[!htb]
\resizebox{\linewidth}{!}{
\begin{tikzpicture}[
teammate/.style={text centered, text width=3cm, fill=gray!10},
subordinate/.style={%
grow=down, xshift=0em,
text centered, text width=3cm,
edge from parent path={(\tikzparentnode.225) |- (\tikzchildnode.west)}},
level1/.style ={level distance=8ex},
level2/.style ={level distance=16ex},
level3/.style ={level distance=24ex},
level4/.style ={level distance=32ex},
level5/.style ={level distance=40ex},
level 1/.style={sibling distance=10em}]
% Supervisor
\node[anchor=south]{Supervisor \\ Supervisory position}
[edge from parent fork down]
% Teammate and Subordinates
child{node [teammate] {Teammate1}
child[subordinate,level1] {node {Subordinate\\Position1\\Location1}}
child[subordinate,level2] {node {Subordinate2}}
child[subordinate,level3] {node {Subordinate3}}
child[subordinate,level4] {node {Subordinate4\\Position4\\Location4}}
child[subordinate,level5] {node {Subordinate5\\Position5\\Location5}}}
%
child{node [teammate] {Teammate2}
child[subordinate,level1] {node {Subordinate1}}
child[subordinate,level2] {node {Subordinate2}}
child[subordinate,level3] {node {Third\\Teammate}}
child[subordinate,level4] {node {Longtext-\\teammate}}}
%
child{node [teammate] {Teammate3}
child[subordinate,level1] {node {Subordinate\\two lines}}
child[subordinate,level2] {node {Subordinate2}}
child[subordinate,level3] {node {Subordinate3}}}
%
child{node [teammate] {Teammate4}
child[subordinate,level1] {node {Subordinate1}}
child[subordinate,level2] {node {Subordinate2}}}
%
child{node [teammate] {Teammate5}
child[subordinate,level1] {node {First\\Subordinate}}
child[subordinate,level2] {node {Subordinate2}}
child[subordinate,level3] {node {Third\\Teammate}}
child[subordinate,level4] {node {Longtext-\\teammate}}};
\end{tikzpicture}}
\caption{This is an org chart}
\end{figure}
\end{document}
tikzmanual. The libraries don't (generally) have separate documentation. Change measures such asexto something independent of font size if you want only the text size to change.cmis obviously OK butex,emetc. all dependent on the font. (Roughly speaking... generally... usually...) – cfr Feb 05 '14 at 02:14text width=4cm, text centeredto the supervisor node to get the line break. – cfr Feb 05 '14 at 02:21level distance=2.5cmto any stile does not seem to add any distance. – ajeh Feb 05 '14 at 15:38