Reading Brace diagram in TikZ
I liked the solution of @fran using schemata package
\usepackage{schemata}
\newcommand\AB[2]{\schema{\schemabox{#1}}{\schemabox{#2}}}
Now I'd like to use another similar command that h-align braces at the same level, as you can see in the image. How to do that?
\documentclass[10pt,a4paper]{article}
\usepackage{schemata}
\newcommand\AB[2]{\schema{\schemabox{#1}}{\schemabox{#2}}}
\begin{document}
\AB{TEXT}
{
\AB{Some text 1}
{
$\bullet$ text 1.1 \\
$\bullet$ text 1.2 \\
$\bullet$ text 1.3
}\\
Some text 2 \\
Some text 3 \\
\AB{Some large text 4}
{
text 4.1 \\
text 4.2 \\
text 4.3
}\\
\AB{short 5}
{
$\bullet$ shorty 5.1\\
$\bullet$ shorty 5.2\\
$\bullet$ shorty 5.3
}
}
\end{document}
I think an appropiate way may be similar to this one in the documentation,

but I'd like to make the new one with a simple command as AB defined, passing the largest text as a parameter, similar to documentation snapshot.


\AB{<your code between \begin{document} and \end{document}>}{<your code between \begin{document} and \end{document}>}? Or do i misunderstand your question? – Bobyandbob Nov 11 '17 at 11:07