Following
\documentclass[varwidth]{standalone}
\usepackage{amsmath}
\usepackage{stackengine}
\usepackage{xcolor}
\renewcommand{\vec}[1]{\mathbf{#1}}
\begin{document}
\stackMath
\begin{equation*}
\mathcal{G} = \stackunder{p6mm}{\vec{a},\vec{b}} \overset{t[\mathit{3}]}{>}
\mathcal{Z} = \stackunder{c2mm}{\braceVectorstack{{\vec{a}-\vec{b},\vec{a}+\vec{b}} {\vec{a}+2\vec{b},-\vec{a}} {\textcolor{red}{2\vec{a}+\vec{b},\vec{b}}}}}
\end{equation*}
\end{document}
gives
I want to add another block in separate curly braces into the understack and have only a brace on the left side. See the image modified with an image editor:
Nesting of \Shortunderstack{ \braceVectorstack{} ...}
looks like is not possible. The naive attempt
\mathcal{Z} = \Shortunderstack{{c2mm} {\braceVectorstack{{\vec{a}-\vec{b},\vec{a}+\vec{b}} {\vec{a}+2\vec{b},-\vec{a}} {\textcolor{red}{2\vec{a}+\vec{b},\vec{b}}}}}}
gives me
l.12 ...xtcolor{red}{2\vec{a}+\vec{b},\vec{b}}}}}}
./demo.tex:12: Package listofitems Error: 3 is an invalid index, index [] retained.
How can I achieve this with the package stackengine or a different way/package?
The documentation of stackengine states
Except in circumstances that require the particular features of this package, stackengine may not be the best package for math mode since there are many packages that already cater directly to the need to stack and align mathematical objects.
Actually, I only know the package amsmath with \substack
, \overset
, \underset
. I would appreciate if someone could mention a few of the many packages the author is referring to.