我尝试使用好矩阵包,以及我的乳胶代码投影机背面内容如下:
\documentclass[xcolor=dvipsnames, 11pt]{beamer}
\usepackage{tikz}
\usetikzlibrary{fit}
\usepackage{nicematrix}
\begin{document}
\begin{frame}
\[
M = \begin{bNiceArray}{*{5}{c}}[margin=0.5em]
\Sigma_{11} & \Sigma_{12} & \Sigma_{13} & \Sigma_{14} & \Sigma_{15} \\[5pt]
\Sigma_{21} & \Sigma_{22} & \Sigma_{23} & \Sigma_{24} & \Sigma_{25} \\[5pt]
\Sigma_{31} & \Sigma_{32} & \Sigma_{33} & \Sigma_{34} & \Sigma_{35} \\[5pt]
\Sigma_{41} & \Sigma_{42} & \Sigma_{43} & \Sigma_{44} & \Sigma_{45} \\[5pt]
\Sigma_{51} & \Sigma_{52} & \Sigma_{53} & \Sigma_{54} & \Sigma_{55} \\
\CodeAfter
\begin{tikzpicture}
\node (A) [draw=red, thick, fit=(1-1) (2-2)] {} ;
\node (B) [draw=red, thick, fit=(2-2) (3-3)] {} ;
\node (C) [draw=red, thick, fit=(3-3) (4-4)] {} ;
\node (D) [draw=red, thick, fit=(4-4) (5-5)] {} ;
\end{tikzpicture}
\end{bNiceArray}
\]
\end{frame}
\end{document}
“
我已经按照Nicematrix 出了点问题。代码不起作用并下载了nicematrix.txt文件并上传到我的项目所在的 overleaf 文件夹,并将文件重命名为nicematrix.sty。