\begin{table}[h]
\caption{Multi-subtable demo}
\label{tab:label all table}
% Table 1
\begin{subtable}[t]{0.48\textwidth}
\centering
\caption{Subcaption A}
\label{tab:label subtable A}
\begin{NiceMatrixBlock}[auto-columns-width]
\[
T_1=\begin{bNiceMatrix}[first-row,first-col]
&0&1&2&3 \\
0 & 1-\eta & \eta & 0 & 0 \\
1 & 0 & 1-\eta & \eta & 0 \\
2 & 0 & 0 & 1-\eta & \eta \\
3 & \eta & 0 & 0 & 1-\eta \\
\end{bNiceMatrix}
\]
\end{NiceMatrixBlock}
\end{subtable}
% Table 2
\begin{subtable}[t]{0.48\textwidth}
\centering
\caption{Subcaption B}
\label{tab:label subtable B}
\begin{NiceMatrixBlock}[auto-columns-width]
\[
T_2=\begin{bNiceMatrix}[first-row,first-col]
&0&1&2&3 \\
0 & 1-\eta & \eta & 0 & 0 \\
1 & 0 & 1-\eta & \eta & 0 \\
2 & 0 & 0 & 1-\eta & \eta \\
3 & \eta & 0 & 0 & 1-\eta \\
\end{bNiceMatrix}
\]
\end{NiceMatrixBlock}
\end{subtable}
% Table 3
\begin{subtable}[t]{0.48\textwidth}
\centering
\caption{Subcaption C}
\label{tab:label subtable C}
\begin{NiceMatrixBlock}[auto-columns-width]
\[
T_3=\begin{bNiceMatrix}[first-row,first-col]
&0&1&2&3 \\
0 & 1-\eta & \eta & 0 & 0 \\
1 & 0 & 1-\eta & \eta & 0 \\
2 & 0 & 0 & 1-\eta & \eta \\
3 & \eta & 0 & 0 & 1-\eta \\
\end{bNiceMatrix}
\]
\end{NiceMatrixBlock}
\end{subtable}
\hfill
% Table 4
\begin{subtable}[t]{0.48\textwidth}
\centering
\caption{Subcaption D}
\label{tab:label subtable D}
\begin{NiceMatrixBlock}[auto-columns-width]
\[
T_4=\begin{bNiceMatrix}[first-row,first-col]
&0&1&2&3 \\
0 & 1-\eta & \eta & 0 & 0 \\
1 & 0 & 1-\eta & \eta & 0 \\
2 & 0 & 0 & 1-\eta & \eta \\
3 & \eta & 0 & 0 & 1-\eta \\
\end{bNiceMatrix}
\]
\end{NiceMatrixBlock}
\end{subtable}
% Table 5
\begin{subtable}[t]{0.48\textwidth}
\centering
\caption{Subcaption E}
\label{tab:label subtable E}
\begin{NiceMatrixBlock}[auto-columns-width]
\[
T_5=\begin{bNiceMatrix}[first-row,first-col]
&0&1&2&3 \\
0 & 1-\eta & \eta & 0 & 0 \\
1 & 0 & 1-\eta & \eta & 0 \\
2 & 0 & 0 & 1-\eta & \eta \\
3 & \eta & 0 & 0 & 1-\eta \\
\end{bNiceMatrix}
\]
\end{NiceMatrixBlock}
\end{subtable}
\hfill
% Table 6
\begin{subtable}[t]{0.48\textwidth}
\centering
\caption{Subcaption F}
\label{tab:label subtable F}
\begin{NiceMatrixBlock}[auto-columns-width]
\[
T_6=\begin{bNiceMatrix}[first-row,first-col]
&0&1&2&3 \\
0 & 1-\eta & \eta & 0 & 0 \\
1 & 0 & 1-\eta & \eta & 0 \\
2 & 0 & 0 & 1-\eta & \eta \\
3 & \eta & 0 & 0 & 1-\eta \\
\end{bNiceMatrix}
\]
\end{NiceMatrixBlock}
\end{subtable}
\end{table}
Ref:
https://gist.github.com/rischanlab/36ac077e80a698e6acb2
%Rischan Mafrur
%Sub Table in Latex
% May 20, 2014
\begin{table}[h]
\begin{subtable}[h]{0.16\textwidth}
\centering
\begin{tabular}{|l|l|}
XXX & YYY\\
\hline
value X & value Y\\
\end{tabular}
\caption{Caption Subtable A}
\label{tab:label subtable A}
\end{subtable}
\hfill
\begin{subtable}[h]{0.15\textwidth}
\centering
\begin{tabular}{|l|l|}
XXX & YYY\\
\hline
value X & value Y\\
\end{tabular}
\caption{Caption Sub Table B}
\label{tab:label subtable B}
\end{subtable}
\hfill
\begin{subtable}[h]{0.16\textwidth}
\centering
\begin{tabular}{|l|l|}
XXX & YYY\\
\hline
value X & value Y\\
\end{tabular}
\caption{Caption SubTable C}
\label{tab:label subtable C}
\end{subtable}
\caption{Caption Main/ All Table}
\label{tab:label all table}
\end{table}
遗留问题:如何调整或压缩宽度?(Solved)
\begin{table}[h]
\caption{Multi-subtable demo}
\label{tab:label all table}
% Table 1
\begin{subtable}[t]{0.48\textwidth}
\centering
\caption{Adjustable size}
\label{tab:label subtable A}
\resizebox{0.9\textwidth}{!}{% <--- resize here : )
$
M =
\begin{bNiceMatrix}[first-row,first-col]
&0&1&2&3&4&5&6&7&8&9 \\
0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\
1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\
2 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\
3 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\
4 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\
5 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\
6 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\
7 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\
8 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\
9 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\
\end{bNiceMatrix}
$%
}
\end{subtable}
\end{table}
\begin{table}[h]
\caption{Multi-subtable demo}
\label{tab:label all table}
% Table 1
\begin{subtable}[t]{0.48\textwidth}
\centering
\caption{Subcaption A}
\label{tab:label subtable A}
\tiny
\begin{NiceMatrixBlock}[auto-columns-width]
\[
T_1=\begin{bNiceMatrix}[first-row,first-col]
&0&1&2&3&4&5&6&7&8&9 \\
0 &1-\eta & & & & & & & & &\\
1 & &1-\eta & & & & & & & &\\
2 & & &1-\eta & & & & & & &\\
3 & & & &1-\eta & & & & & &\\
4 & & & & &1-\eta & & & & &\\
5 & & & & & &1-\eta & & & &\\
6 & & & & & & &1-\eta & & &\\
7 & & & & & & & &1-\eta & &\\
8 & & & & & & & & &1-\eta &\\
9 & & & & & & & & & &1-\eta\\
\end{bNiceMatrix}
\]
\end{NiceMatrixBlock}
\end{subtable}
% Table 2
\begin{subtable}[t]{0.48\textwidth}
\centering
\caption{Subcaption B}
\label{tab:label subtable B}
\tiny
\begin{NiceMatrixBlock}[auto-columns-width]
\[
T_2=\begin{bNiceMatrix}[first-row,first-col]
&0&1&2&3&4&5&6&7&8&9 \\
0 &1-\eta & & & & & & & & &\\
1 & &1-\eta & & & & & & & &\\
2 & & &1-\eta & & & & & & &\\
3 & & & &1-\eta & & & & & &\\
4 & & & & &1-\eta & & & & &\\
5 & & & & & &1-\eta & & & &\\
6 & & & & & & &1-\eta & & &\\
7 & & & & & & & &1-\eta & &\\
8 & & & & & & & & &1-\eta &\\
9 & & & & & & & & & &1-\eta\\
\end{bNiceMatrix}
\]
\end{NiceMatrixBlock}
\end{subtable}
\end{table}
两种矩阵的写法
\begin{table}[h]
\caption{Multi-subtable demo}
\label{tab:label all table}
% Table 1
\begin{subtable}[t]{0.3\textwidth}
\centering
\caption{Adjustable size}
\label{tab:label subtable A}
\resizebox{0.25\textwidth}{!}{%
$
M =
\begin{bNiceMatrix}[first-row,first-col]
& x & y \\
A & 1 & 0 \\
B & 0 & 1
\end{bNiceMatrix}
$%
}
\end{subtable}
% Table 2
\begin{subtable}[t]{0.3\textwidth}
\centering
\caption{Default size}
\label{tab:label subtable B}
$
M =
\begin{bNiceMatrix}[first-row,first-col]
& x & y \\
A & 1 & 0 \\
B & 0 & 1
\end{bNiceMatrix}
$
\end{subtable}
% Table 3
\begin{subtable}[t]{0.3\textwidth}
\centering
\caption{Book demo}
\label{tab:label subtable C}
\[ \bordermatrix{
& 1 & 2 & 3 \cr
1 & 2 & 3 & 4 \cr
2 & 2 & 3 & 4 \cr} \]
\end{subtable}
\end{table}
Ref: \bordermatrix with brackets [ ] instead of parentheses ( )