I am trying to replicate a diagram in a paywalled article and I'm having problems. It's using repeated curly brackets to demonstrate a hierarchy. But, because the ideas at each level in the hierarchy are not the same number of text lines, sometimes the curly brackets are not symmetrical around the y-axis. I have tried to reproduce some of the diagram structure here
poor hand drawing of part of the diagram
I have tried to position the text from right to left, and I'm running into problems with getting 1. the bracket lengths on either side of the < to be the length they should be, and also to get the bracket and text positioned correctly on the right of the bracket.
\documentclass{article}
\usepackage[english]{babel}
\usepackage{amsmath,amsthm}
\usepackage{amsfonts}
\usepackage[a4paper,layout=a4paper,
bindingoffset=4cm,left=0cm,right=2cm,
head=2.5cm, bmargin=2cm]{geometry}
\usepackage{microtype}
\usepackage{verbatim}
\usepackage{graphicx}
\usepackage{url}
\usepackage[round]{natbib}
\usepackage{listings}
\usepackage{booktabs}
\usepackage{multirow}
\RequirePackage[l2tabu, orthodox]{nag}
\usepackage{tikz}
\usetikzlibrary{arrows, shapes, chains, fit, backgrounds, calc, decorations.pathreplacing, matrix}
\usepackage{hyperref}
\usepackage{cleveref}
\usepackage[flushleft]{threeparttable}
\usepackage[inline, shortlabels]{enumitem}
\usepackage{tikzlings}
\begin{document}
\begin{figure}[htbp]
\centering
\begin{tikzpicture}[every node/.style=draw, align=center, arrow/.style={thick, -stealth}]
\begin{scope}
\node[draw=none] (B) {Some text here};
\node[draw=none, below right = of B, xshift=1mm, yshift=-3mm, anchor=west] (Pass) {Couple \\ of lines \\ of text};
\node[draw=none, above right = of B, xshift=1mm, yshift=-10mm, anchor=west] (Act) {One line of text};
\draw[decorate, line width = .05cm, decoration = {brace, amplitude=.3cm, mirror}] (Act.north west) -- (Pass.south west);
\end{scope}
\end{tikzpicture}
\caption{Behaviour classification in \cite{Rosenblueth1}, p. 21.}
\label{fig:Behav1943}
\end{figure}
\end{document}
Which gives me this image (I haven't tried the rest as I can't get this first bit right):
How do I get the bracket part lengths correct? As you can see, I'm also struggling with getting the left hand text placed correctly relate to the right hand text. The spacing between the upper and lower options in the bracket is a function of the upper and lower text to the right. That is, the spacing between one set of bracket options must fit the lower option of the later set of brackets. I've tried to show that in my hand drawing. Particularly where "Option 2" sits relative to the previous bracket options' vertical space ("One line of text"--"Couple of lines of text").
EDITED TO ADD: it's not so much a hierarchy as a focus on particular aspects. Sort of like if the left hand side was Cake. And then the first set of brackets was Wet Ingredients and Dry Ingredients. And then the Dry Ingredients were Flour and Not flour. And so forth.
EDITED SECOND: that wasn't an example. :( An example would be Cake. Then "Big cake" and "Small cake". Then under "Big cake" there would be "Square cake" and "Round cake". And so forth. But they are all cake.
EDITED THIRD: I received an error, so tried the example and got a somewhat different error (probably because it has less expansion that the one I am trying. This is the error, line 103 is where \end{forest}
sits. I thought the centre command might be the problem so I commented that line out, but the error remains. I have this inside a \figure
argument, which also contains the caption, could that be part of the problem?
Runaway argument?
{,afterthought={\unexpanded {
./Chapters/Systems.tex:103: Paragraph ended before \forestOeappto was complete.
<to be read again>
\par
l.103 \end{forest}
./Chapters/Systems.tex:103: Extra }, or forgotten \endgroup.
<argument> ...{,afterthought={\unexpanded { \par }
}}
l.103 \end{forest}
./Chapters/Systems.tex:103: Extra }, or forgotten \endgroup.
<argument> ...,afterthought={\unexpanded { \par }}
}
l.103 \end{forest}
./Chapters/Systems.tex:103: Extra }, or forgotten \endgroup.
<argument> ...afterthought={\unexpanded { \par }}}
l.103 \end{forest}