Open
Description
I want to create layered/hierarchical labels. For example, a group of terms within parentheses are the "background contribution" and the individual terms might be the "first order" and "trailing order". The overbar/curly brace shown in the original demo by Sibin covers this usecase but there is no easy way of replicating that with the current package.
Right now, in the following cod the annotation for \eqnmarkbox{Background}
does not appear, only the colored box appears:
\begin{equation}
y(x) = \eqnmarkbox[blue]{Background}{
(\eqnmark[red]{term1}{A} + \eqnmark[green]{term2}{B})
}
\end{equation}
\annotate[yshift=-1em]{below}{Background}{background term}
\annotate[yshift=0.5em]{left}{A}{first term}
\annotate[yshift=1em]{}{B}{second term}