\begin{mdframed}[innertopmargin=6bp, innerbottommargin=4b, innerleftmargin=8bp, backgroundcolor=yellow!10, nobreak= true]
\begin{thm}
\label{thm:them2}
{Assuming that the sizes of the matrices allow for the operations, the following rules of matrix arithmetic are valid}
\begin{enumerate}[nosep, label=(\alph*)]
%\setlength{\itemsep}{0pt}
\item $A + B = B + A$ \; \textit{Additive Commutativity}
\item $A + (B + C) = (A + B) + C$ \; \textit{Additive Associativity}
\item $A(BC) = (AB)C$ \; \textit{Multiplicative Associativity}
\item $A(B+C) = AB + AC$ \; \textit{Distributive Law}
\item $(B+C)A = BA + CA$ \; \textit{Distributive Law}
\begin{multicols}{2}
\item $a(B + C) = aB + aC$
\item $(ab)C = a(bC)$
\item $a(BC) = (aB)C = B(aC)$
\item $A + 0 = 0 + A = A$
\item $A - A = 0$
\item $0 - A = -A$
\item $A0 = 0$ and $0A = 0$
\end{multicols}
\end{enumerate}
\end{thm}
\end{mdframed}
答案1
您需要一些未显示的代码中可能缺少的附加包:
\documentclass{article}
\usepackage{mdframed}
\usepackage{multicol}
\usepackage{xcolor}
\usepackage{enumitem}
\newtheorem{thm}{Theorem}
\begin{document}
\begin{mdframed}[innertopmargin=6bp, innerbottommargin=4bp, innerleftmargin=8bp, backgroundcolor=yellow!10, nobreak= true]
\begin{thm}
\label{thm:them2}
{Assuming that the sizes of the matrices allow for the operations, the following rules of matrix arithmetic are valid}
\begin{enumerate}[nosep, label=(\alph*)]
%\setlength{\itemsep}{0pt}
\item $A + B = B + A$ \; \textit{Additive Commutativity}
\item $A + (B + C) = (A + B) + C$ \; \textit{Additive Associativity}
\item $A(BC) = (AB)C$ \; \textit{Multiplicative Associativity}
\item $A(B+C) = AB + AC$ \; \textit{Distributive Law}
\item $(B+C)A = BA + CA$ \; \textit{Distributive Law}
\begin{multicols}{2}
\item $a(B + C) = aB + aC$
\item $(ab)C = a(bC)$
\item $a(BC) = (aB)C = B(aC)$
\item $A + 0 = 0 + A = A$
\item $A - A = 0$
\item $0 - A = -A$
\item $A0 = 0$ and $0A = 0$
\end{multicols}
\end{enumerate}
\end{thm}
\end{mdframed}
\end{document}