Recursive curly braces (\begin(cases))

equationsmath-mode

I need to create a scheme with multiple curly braces inside each other similar to this: Multiple Curly Braces in Align. But i don't need to stretch this braces to their content. Like on the picture:

How can i do this?

Best Answer

You could to use the commands \Edacsac and \ShortEdacsac of the cascade package.

Here a little example that you can complete knowing the syntax:

\documentclass[a4paper,12pt]{article}
\usepackage{cascade}


\begin{document}
first
\Edacsac
{second}
{
\Edacsac
{third}
{\ShortEdacsac{over
\ShortEdacsac{smash}{mathrel}}{under}}
{ninenth}
{}
}
{fourth}
{}
\end{document}

enter image description here