我想要输入截图中显示的矩阵。如何在 beamer 中输入代码?
答案1
\documentclass{beamer}
\usepackage{amsmath}
\begin{document}
\begin{frame}
\[
\begin{pmatrix}
1 & 0 & \cdots{} & 0 & c_{1,r+1} & \cdots{} & c_{1n}\\
0 & 1 & \cdots{} & 0 & c_{2,r+1} & \cdots{} & c_{2n}\\
\vdots{} & \vdots{} & & \vdots{} & \vdots{} & & \vdots{}\\
0 & 0 & \cdots{} & 1 & c_{r,r+1} & \cdots{} & c_{rn}\\
0 & 0 & \cdots{} & 0 & 0 & \cdots{} & 0\\
\vdots{} & \vdots{} & & \vdots{} & \vdots{} & & \vdots{}\\
0 & 0 & \cdots{} & 0 & 0 & \cdots{} & 0\\
\end{pmatrix}
\]
\end{frame}
\end{document}