答案1
您可以使用array
嵌套array
,但在这种情况下我认为aligned
更好:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation*}
\left[
\begin{aligned}
o_1 & \mapsto
\left[
\begin{aligned}
o_1 & \mapsto 1 \\
o_2 & \mapsto 0 \\
o_3 & \mapsto 0
\end{aligned}
\right]
\\
o_2 & \mapsto
\left[
\begin{aligned}
o_1 & \mapsto 1 \\
o_2 & \mapsto 1 \\
o_3 & \mapsto 0
\end{aligned}
\right]
\\
o_3 & \mapsto
\left[
\begin{aligned}
o_1 & \mapsto 0 \\
o_2 & \mapsto 0 \\
o_3 & \mapsto 1
\end{aligned}
\right]
\end{aligned}
\right]
\end{equation*}
\end{document}
无超调:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation*}
\begin{bmatrix}
\begin{aligned}
o_1 & \mapsto
\begin{bmatrix}
\begin{aligned}
o_1 & \mapsto 1 \\
o_2 & \mapsto 0 \\
o_3 & \mapsto 0
\end{aligned}
\end{bmatrix}
\\
o_2 & \mapsto
\begin{bmatrix}
\begin{aligned}
o_1 & \mapsto 1 \\
o_2 & \mapsto 1 \\
o_3 & \mapsto 0
\end{aligned}
\end{bmatrix}
\\
o_3 & \mapsto
\begin{bmatrix}
\begin{aligned}
o_1 & \mapsto 0 \\
o_2 & \mapsto 0 \\
o_3 & \mapsto 1
\end{aligned}
\end{bmatrix}
\end{aligned}
\end{bmatrix}
\end{equation*}
\end{document}
答案2
像这样?
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{mathtools, booktabs}
\begin{document}
\[ \begin{bmatrix}
\addlinespace
\;o_1 & \longmapsto \begin{bmatrix}
o_1 & \longmapsto 1 \\
o_2 & \longmapsto 0 \\
o_3 & \longmapsto 0
\end{bmatrix}\;
\\
\addlinespace
\;o_2 & \longmapsto \begin{bmatrix}
o_1 & \longmapsto 1 \\
o_2 & \longmapsto 1 \\
o_3 & \longmapsto 0 \\
\end{bmatrix}\;\\
\addlinespace
\;o_3 & \longmapsto \begin{bmatrix}
o_1 & \longmapsto 0 \\
o_2 & \longmapsto 0 \\
o_3 & \longmapsto 1
\end{bmatrix} \\
\addlinespace
\end{bmatrix}\; \]
\end{document}
答案3
数组在垂直方向上更紧凑,似乎非常适合这项工作。添加@{~\mapsto~}
到列规范还可以节省一些输入并使代码更简洁。
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation*}
\left[
\begin{array}{c @{~~\mapsto~~} c}
o_1 & \left[\begin{array}{c @{~\mapsto~} c}
o_1 & 1 \\
o_2 & 0 \\
o_3 & 0
\end{array} \right] \\ [1.5em]
o_2 & \left[\begin{array}{c @{~\mapsto~} c}
o_1 & 1 \\
o_2 & 1 \\
o_3 & 0 \\
\end{array} \right]\\ [1.5em]
o_3 & \left[\begin{array}{c @{~\mapsto~} c}
o_1 & 0 \\
o_2 & 0 \\
o_3 & 1
\end{array} \right] \\
\end{array}
\right]
\end{equation*}
\end{document}