如何在矩阵环境中在顶部(说 Dimensions=column)和侧面(说 Achievements of Persons=raw)写一段文字 这是我尝试过的
\[
\stackrel{\textit{Dimesions}}{%
\begin{bmatrix}
X_{11} & X_{12} & \cdots & X_{1d}\\
X_{12} & X_{22} & \cdots & X_{2d}\\
\vdots & \vdots & \ddots & \vdots\\
X_{n1} & X_{n2} & \cdots & X_{nd}
\end{bmatrix}
\stackrel{\textit{persons achievements}}
}
\]
但是,它不起作用。我该怎么办?请紧急帮助。我赶时间写论文!
答案1
这里有两种可能性。我不知道这是否是您想要的,因为您的规范相当模糊。如果不是,请在您的问题中插入所需输入的草图。
\documentclass{article}
\usepackage{blkarray}
\usepackage{amsmath}
\usepackage{multirow}
\begin{document}
\[
\begin{blockarray}{ c c c c l}
\BAmulticolumn{4}{c}{\text{Dimensions=column}} \\
\begin{block}{[ c c c c ] l}
X_{11} & X_{12} & \cdots & X_{1d} & \multirow{4}{*}{achievements of persons=raw}\\
X_{12} & X_{22} & \cdots & X_{2d} & \\
\vdots & \vdots & \ddots & \vdots &\\
X_{n1} & X_{n2} & \cdots & X_{nd} & \\
\end{block}
\end{blockarray}
\]
\[
\begin{blockarray}{ c c c c }
\BAmulticolumn{4}{c}{\text{Dimensions=column}} \\
\begin{block}{[ c c c c ] }
X_{11} & X_{12} & \cdots & X_{1d}\\
X_{12} & X_{22} & \cdots & X_{2d} \\
\vdots & \vdots & \ddots & \vdots\\
X_{n1} & X_{n2} & \cdots & X_{nd} \\
\end{block}
\end{blockarray}\quad\text{achievements of persons=raw}
\]
\end{document}