答案1
如果您展示您迄今为止尝试过的方法,那么这个网站的效果会更好,因为它可以帮助您更轻松地解决遇到的问题。我认为您对于如何开始这个网站感到很困惑,所以我仍然会提供以下答案,因为它对我来说也是很好的练习。
话虽如此,使用该nicematrix
包的解决方案可能是:
\documentclass[border=10pt]{standalone}
\usepackage{nicematrix, tikz}
\newcolumntype{P}[1]{>{\centering\arraybackslash$}p{#1}<{$}}
\begin{document}
\renewcommand{\arraystretch}{1.25}
$\begin{NiceArray}{
c c P{4em} P{2em} P{4em} P{2em} P{6em} P{4em} P{2em}
}
& & \Block{1-2}{\textrm{Region 1}} &
& \Block{1-2}{\textrm{Region 2}} & & \cdots
& \Block{1-2}{\textrm{Region J}} & \\
& & & t & & t & & & t \\
\Block{5-1}{\textrm{Region 1}}
& 1 & \Block{4-1}{a^{mn}_{11}} & \Block{4-1}{a^{mt}_{11}}
& \Block{4-1}{a^{mn}_{12}} & \Block{4-1}{a^{mt}_{12}} &
& \Block{4-1}{a^{mn}_{1J}} & \Block{4-1}{a^{mt}_{1J}} \\
& 2 & & & & & & & \\
& \vdots & & & & & & & \\
& N & & & & & & & \\
& t & a^{tn}_{11} & & a^{tn}_{12} & & & a^{tn}_{1J} & \\
%
\Block{5-1}{\textrm{Region 2}}
& 1 & \Block{4-1}{a^{mn}_{21}} & \Block{4-1}{a^{mt}_{21}}
& \Block{4-1}{a^{mn}_{22}} & \Block{4-1}{a^{mt}_{22}} &
& \Block{4-1}{a^{mn}_{2J}} & \Block{4-1}{a^{mt}_{2J}} \\
& 2 & & & & & & & \\
& \vdots & & & & & & & \\
& N & & & & & & & \\
& t & a^{tn}_{21} & & a^{tn}_{22} & & & a^{tn}_{2J} & \\
%
\raisebox{-1.5em}{\vdots}
& & & & & & & \\[3em]
%
\Block{5-1}{\textrm{Region J}}
& 1 & \Block{4-1}{a^{mn}_{J1}} & \Block{4-1}{a^{mt}_{J1}}
& \Block{4-1}{a^{mn}_{J2}} & \Block{4-1}{a^{mt}_{J2}} &
& \Block{4-1}{a^{mn}_{JJ}} & \Block{4-1}{a^{mt}_{JJ}} \\
& 2 & & & & & & & \\
& \vdots & & & & & & & \\
& N & & & & & & & \\
& t & a^{tn}_{J1} & & a^{tn}_{J2} & & & a^{tn}_{JJ} & \\
\CodeAfter
\SubMatrix({2-3}{18-9})
\tikz {
\draw[dashed] (7-|3) -- (7-|10) (12-|3) -- (12-|10) (18-|3) -- (18-|10);
\draw (8-|2) -- (8-|10) (13-|2) -- (13-|10) (14-|2) -- (14-|10);
\draw[dashed] (3-|4) -- (19-|4) (3-|6) -- (19-|6) (3-|9) -- (19-|9);
\draw (3-|5) -- (19-|5) (3-|7) -- (19-|7) (3-|8) -- (19-|8);
}
\end{NiceArray}$
\end{document}