答案1
一个简单的方法就是使用 tikz 矩阵库。只需几行代码就可以了。
\documentclass {standalone}
\usepackage {amssymb}
\usepackage {tikz}
\usetikzlibrary{matrix}
\begin{document}
\begin{tikzpicture}[line cap=round,line join=round]
\def\sep{0.3cm}
\matrix(D)[matrix of nodes,minimum size=1.2cm]
{
$|\alpha|+|\beta|=0$ & $\cdots$ & $\lambda_{1,0}$ & $\lambda_{2,0}$
& $\lambda_{3,0}$ & $\cdots$ & $\lambda_{n-1,0}$
& $\lambda_{n,0}$\\
$|\alpha|+|\beta|\leqslant1$ & $\cdots$ & $\lambda_{1,1}$ & $\lambda_{2,1}$
& $\lambda_{3,1}$ & $\cdots$ & $\lambda_{n-1,1}$
& $\lambda_{n,1}$\\
$|\alpha|+|\beta|\leqslant2$ & $\cdots$ & $\lambda_{1,2}$ & $\lambda_{2,2}$
& $\lambda_{3,2}$ & $\cdots$ & $\lambda_{n-1,2}$
& $\lambda_{n,2}$\\
$\vdots$ & & $\vdots$ & $\vdots$
& $\vdots$ & $\ddots$ & $\vdots$
& $\vdots$\\
$|\alpha|+|\beta|\leqslant n$ & $\cdots$ & $\lambda_{1,n}$ & $\lambda_{2,n}$
& $\lambda_{3,n}$ & $\cdots$ & $\lambda_{n-1,n}$
& $\lambda_{n,n}$\\
};
\draw[thick,red] (D-5-7.south) -- (D-1-3.west) -- (D-1-3.north) -- (D-5-7.east);
\end{tikzpicture}
\end{document}
答案2
使用nicematrix
和 Tikz。
\documentclass{article}
\usepackage{amssymb}
\usepackage{nicematrix}
\usepackage{tikz}
\begin{document}
\begingroup
\setlength{\arraycolsep}{8pt}
\setlength{\extrarowheight}{4mm}
$\begin{NiceMatrix}[xdots/shorten=6pt]
|\alpha|+|\beta|=0 & \Cdots & \lambda_{1,0} & \lambda_{2,0}
& \lambda_{3,0} & \Cdots & \lambda_{n-1,0}
& \lambda_{n,0}\\
|\alpha|+|\beta|\leqslant1 & \Cdots & \lambda_{1,1} & \lambda_{2,1}
& \lambda_{3,1} & \Cdots & \lambda_{n-1,1}
& \lambda_{n,1}\\
|\alpha|+|\beta|\leqslant2 & \Cdots & \lambda_{1,2} & \lambda_{2,2}
& \lambda_{3,2} & \Cdots & \lambda_{n-1,2}
& \lambda_{n,2}\\
\Vdots & & \Vdots & \Vdots
& \Vdots & & \Vdots
& \Vdots\\
|\alpha|+|\beta|\leqslant n & \Cdots & \lambda_{1,n} & \lambda_{2,n}
& \lambda_{3,n} & \Cdots & \lambda_{n-1,n}
& \lambda_{n,n}\\
\CodeAfter
\tikz \draw [thick,red]
([yshift=-3mm]5-7.south) -- ([xshift=-2mm]1-3.west)
-- ([xshift=-0.5mm,yshift=4mm]1-3.north) -- (5-7.east) ;
\line{3-5}{5-7}
\end{NiceMatrix}$
\endgroup
\end{document}
您需要多次编译(因为nicematrix
使用 PGF/Tikz 节点)。