Decision Trees, Org Charts, et al.

After viewing another posting regarding Organization charts (Org Chart view) I thought it might help others to have a reference for creating Decision Trees, Org Charts, et al. within Scrivener using LaTeX with the Tikz package.

A sample of a simple tree with coding is available at:

https://texample.net/tikz/examples/tree/

I’ve adapted the above sample code to create the following decision tree using LaTeX/Tikz:
[attachment=0]Decision Tree.png[/attachment]
with the following sample code:

\begin{center} \begin{figure} \centering \begin{tikzpicture}[sibling distance=10em, every node/.style = {shape=rectangle, thick, rounded corners, draw, align=center, drop shadow, left color=white, right color=red!20}, level 1/.style={sibling distance=10em}, font=\normalsize]] \tikzstyle{level 1}=[sibling distance=20em] \tikzstyle{level 2}=[sibling distance=11.5em] \tikzstyle{level 3}=[sibling distance=5.5em] \node [left color=blue!20]{\LARGE Climate Change} child { node [left color=blue!20,right color=white]{\Large Science} child { node [ bottom color=blue!20]{\large Causes} child { node [left color=green!20, right color=white,dashed]{Natural\\Activity} } child { node [ left color=blue!20,right color=white]{Human\\Activity} } } child { node [ left color=blue!20,right color=white, xshift=-5pt]{\large Remedies} child { node [font=\small, left color=blue!20,right color=white]{Direct\\Emissions} } child { node [font=\small, left color=blue!20,right color=white]{Indirect\\Extraction} } } } child { node []{\Large Politics} child { node [xshift=5pt]{\large Economic Rent} child { node [yshift=-40pt]{Land\\Resources} } child { node [yshift=-5pt]{Capital\\Markets} } child { node [yshift=-40pt]{Extraction\\technology} } } child { node [xshift=10pt]{\large Rent Seeking} child { node [xshift=12pt]{Subsidies\\\& Grants} } child { node [yshift=-40pt]{Limit\\Competition} } child { node [xshift=-15pt]{Barriers\\to entry} } } }; \end{tikzpicture} \caption{Decision Tree Chart: Why is preventing climate change so hard?} \label{fig:Whyisthissohard} \end{figure} \end{center}
Hope this may help,
scrive
:slight_smile: