答案1
只是为了好玩:一些非常接近地复制你的截图的东西。
\documentclass{article}
\usepackage{amsmath}
\usepackage{tikz}
\newcommand{\tikznode}[2]{\tikz[remember picture,baseline=(#1.base)]{\node(#1)[inner sep=0pt]{#2};}}
\begin{document}
\[
X^{(p)}=\begin{bmatrix}
\tikznode{11}{\strut} & & 0\\
& & \\
\boldsymbol{L}_x^{(p)} & & \tikznode{33}{\strut}\\[0.2cm]
\tikznode{41}{\strut}~~ & & \tikznode{43}{\strut}\\
& \boldsymbol{X}^{(p)}_c &\\[0.2cm]
\tikznode{61}{\strut}~~ & & \tikznode{63}{\strut}\\
& & \boldsymbol{U}_x^{(p)}\\
0 & & \tikznode{83}{\strut}
\end{bmatrix}
\]
\tikz[overlay,remember picture]{\draw[dashed](11.north)--(33.south east);
\draw[-](41.north west)--(43.north east);
\draw[-](61.north west)--(63.north east);
\draw[dashed](61.west)--(83.south east);}
\end{document}
正如伯纳德所说,生产类似的东西有几种不同的方法。
为了让 Mico 开心一点,这里有一个更艺术化的版本:
\documentclass{article}
\usepackage{amsmath}
\usepackage{tikz}
\usetikzlibrary{calc}
\newcommand{\tikznode}[2]{\tikz[remember picture,baseline=(#1.base)]{\node(#1)[inner sep=0pt]{#2};}}
\begin{document}
\[
X^{(p)}=\begin{bmatrix}
\tikznode{11}{\strut} & & \tikznode{13}{\strut}\\
& \tikznode{22}{\strut} & \\
~~\boldsymbol{L}_x^{(p)} & & \tikznode{33}{\strut}\\[0.2cm]
\tikznode{41}{\strut}~~ & & \tikznode{43}{\strut}\\
& \boldsymbol{X}^{(p)}_c &\\[0.2cm]
\tikznode{61}{\strut}~~ & & \tikznode{63}{\strut}\\
& \tikznode{72}{\strut} & \boldsymbol{U}_x^{(p)}~~\\
\tikznode{81}{\strut} & & \tikznode{83}{\strut}
\end{bmatrix}
\]
\tikz[overlay,remember picture]{\draw[dashed](11.north)--(33.south east);
\draw[-](41.north west)--(43.north east);
\draw[-](61.north west)--(63.north east);
\draw[dashed](61.west)--(83.south east);
\node at ($(13)!0.2!(22)$) {\Large0};
\node at ($(81)!0.2!(72)$) {\Large0};
}
\end{document}