[Tex/LaTex] Right curly brace near the equation number

amsmathequationsmath-mode

I can easily put right curly brace after group of (sub)equations:

\documentclass{article}

\usepackage{amsmath}

\begin{document}

\setcounter{equation}{10}

\begin{equation}
\left.
\begin{split}
&g_{00}(x)=-1,\\
&g_{02}(x)=g_{20}(x)=
1\\
&g_{11}(x)=
2,\\
&g_{22}(x)=
3,\\
&g_{33}(x)=
4,
\end{split}
\right\}
\end{equation}

\end{document}

enter image description here

Is there a (standard?) method of putting such brace near the equation number (near (11) in the picture)?

Edit: I have in mind a fixed distance from the equation number.

Best Answer

It isn't standard, but here I introduce \groupequation[<margin-offset>]{<content>}.

\documentclass{article}
\usepackage{amsmath,stackengine}
\newcommand\groupequation[2][17pt]{%
  \setbox0=\hbox{$\displaystyle#2$}%
  \stackengine{0pt}{\copy0}{%
    \makebox[\linewidth]{\hfill$\left.\rule{0pt}{\ht0}\right\}$\kern#1}}
    {O}{c}{F}{T}{L}
}
\begin{document}

\setcounter{equation}{10}

\begin{equation}\groupequation{
\begin{split}
&g_{00}(x)=-1,\\
&g_{02}(x)=g_{20}(x)=
1\\
&g_{11}(x)=
2,\\
&g_{22}(x)=
3,\\
&g_{33}(x)=
4,
\end{split}
}\end{equation}
\end{document}

enter image description here

With the above answer, the offset from the margin is a fixed distance, overridden with the optional argument. An alternative is to make it a fixed distance from the label itself:

\documentclass{article}
\usepackage{amsmath,stackengine}
\newcommand\groupequation[1]{%
  \setbox0=\hbox{$\displaystyle#1$}%
  \setbox2=\hbox{\,(\theequation)}%
  \stackengine{0pt}{\copy0}{%
    \makebox[\linewidth]{\hfill$\left.\rule{0pt}{\ht0}\right\}$\kern\wd2}}
    {O}{c}{F}{T}{L}
}
\begin{document}

\begin{equation}\groupequation{
\begin{split}
&g_{00}(x)=-1,\\
&g_{02}(x)=g_{20}(x)=
1\\
&g_{11}(x)=
2,\\
&g_{22}(x)=
3,\\
&g_{33}(x)=
4,
\end{split}
}\end{equation}

\setcounter{equation}{10}

\begin{equation}\groupequation{
\begin{split}
&g_{00}(x)=-1,\\
&g_{02}(x)=g_{20}(x)=
1\\
&g_{11}(x)=
2,\\
&g_{22}(x)=
3,\\
&g_{33}(x)=
4,
\end{split}
}\end{equation}
\end{document}

enter image description here