在系统*内对齐 \boxed{} 方程

在系统*内对齐 \boxed{} 方程

我想知道如何才能将 *systeme** 环境与仅属于它的 \boxed{} 方程对齐。

我的代码产生了正确的方程组,但是方框方程发生了位移。

我尝试使用强调包,但它确实强调了整个方程组,而我不想要那样。

代码如下:

\documentclass[twocolumn,oneside]{revtex4-1}

\usepackage{systeme}
\usepackage{amsmath}
\numberwithin{equation}{section}
\usepackage{float} 

\begin{document}


    \begin{equation}

    \left\{(\bar 6\oplus 3)\otimes(6\oplus\bar 3)\right\}_c = 
    \systeme*{\;6\otimes\bar6=1\oplus 8\oplus 27, \;6\otimes 3=8\oplus                          10, \bar 3\otimes\bar 6=8\oplus\bar{10}, \boxed{\bar 3\otimes 3=1\oplus  8}\hspace{1mm}}

      \label{eq:15}
    \end{equation}

\end{document}

答案1

我认为systeme这不是正确的工具。

\documentclass[twocolumn,oneside]{revtex4-1}

\usepackage{array}
\usepackage{amsmath}
\numberwithin{equation}{section}

\begin{document}

\begin{equation}
\{(\bar 6\oplus 3)\otimes(6\oplus\bar 3)\}_c =
\left\{
\renewcommand{\arraystretch}{1.2}
\settowidth{\dimen0}{$0$}
\begin{array}{r@{}>{{}}l@{}>{{}}l}
6\otimes\bar6 &= 1\oplus 8 &\hspace{-\dimen0}\oplus 27 \\
6\otimes 3    &= 8\oplus 10 \\
\bar 3\otimes\bar 6 &= 8\oplus\bar{10} \\
\cline{1-2}
\multicolumn{1}{|r@{}}{\bar 3\otimes 3} & \multicolumn{1}{@{}>{{}}l|}{= 1\oplus  8} \\
\cline{1-2}
\end{array}
\right.
\label{eq:15}
\end{equation}

\end{document}

在此处输入图片描述

另一个解决方案是tikzmark(您需要编译两次,第一次是为了看到该框)。

\documentclass[twocolumn,oneside]{revtex4-1}

\usepackage{array}
\usepackage{amsmath}
\usepackage{tikz}
\usetikzlibrary{tikzmark}
\numberwithin{equation}{section}

\begin{document}

\begin{equation}
\begin{tikzpicture}[remember picture,overlay]
\draw ([yshift=1.2\ht\strutbox,xshift=-3pt]{pic cs:start}) 
  rectangle ([xshift=3pt,yshift=-\dp\strutbox]{pic cs:end});
\end{tikzpicture}
\{(\bar 6\oplus 3)\otimes(6\oplus\bar 3)\}_c =
\left\{
\renewcommand{\arraystretch}{1.2}
\begin{array}{r@{}>{{}}l}
6\otimes\bar6 &= 1\oplus 8 \oplus 27 \\
6\otimes 3    &= 8\oplus 10 \\
\bar 3\otimes\bar 6 &= 8\oplus\bar{10} \\
\tikzmark{start}\bar 3\otimes 3 & = 1\oplus  8\tikzmark{end} \\
\end{array}
\right.
\label{eq:15}
\end{equation}

\end{document}

在此处输入图片描述

相关内容