如何在乳胶矩阵上方添加一个字母
how to add a letter above a matrix in latex
我正在尝试用乳胶写这个(使用背页):
我写了这段代码:
$\Theta = i\begin{bmatrix}
& \vdots & \
\cdots & \cdot & \cdots\
& \vdots & \
\end{bmatrix}$
我无法将 j 写在矩阵之外。
我该怎么做?
您可以使用 nicematrix
包:
\documentclass{article}
\usepackage{mathtools}
\usepackage{nicematrix}
\begin{document}
$\Theta = \begin{bNiceArray}[first-row,first-col]{ccc}
& & j & \
& & \vdots & \
i &\cdots & \cdot & \cdots\
& & \vdots & \
\end{bNiceArray}$
\end{document}
我正在尝试用乳胶写这个(使用背页):
我写了这段代码:
$\Theta = i\begin{bmatrix}
& \vdots & \
\cdots & \cdot & \cdots\
& \vdots & \
\end{bmatrix}$
我无法将 j 写在矩阵之外。 我该怎么做?
您可以使用 nicematrix
包:
\documentclass{article}
\usepackage{mathtools}
\usepackage{nicematrix}
\begin{document}
$\Theta = \begin{bNiceArray}[first-row,first-col]{ccc}
& & j & \
& & \vdots & \
i &\cdots & \cdot & \cdots\
& & \vdots & \
\end{bNiceArray}$
\end{document}