Considere o seguinte de:Como criar esta tabela utilizando o mesmo formato do MWE?
\documentclass{article}
\usepackage{tabularray}
\UseTblrLibrary{booktabs, siunitx}
\begin{document}
\begin{table}
\caption{Parameter values used in numerical simulations of system.}
\label{tab1}
\begin{tblr}{@{}cccccccccccc@{}}
\toprule
& $\beta$ & $\mu$ & $\alpha_{1}$ & $p_{1}$ & $\phi$ & $\xi$ & $\psi$ & $p_{2}$ & $p_{3}$ & $\theta$ & $\alpha_{2}$ \\
\midrule
State 1 & 0.2 & 0.2 & 0.12 & 0.11 & 0.1 & 0.11 & 0.1 & 0.12 & 0.11 & 0.1 & 0.1\\
State 2 & 0.21 & 0.22 & 0.11 & $p_{1}$ & 0.1 & 0.11 & 0.12 & 0.1 & 0.11 & 0.1 & 0.11\\
\bottomrule
\end{tblr}
\end{table}
\end{document}
Usando o MWE (mantendo seu formato/layout), como podemos adicionar uma linha extra como mostrado abaixo? (FAVOR IGNORE AS CÉLULAS DA IMAGEM ABAIXO).
Responder1
Você pode usar \SetCell[c=11]{}
para mesclar várias células em uma:
\documentclass{article}
\usepackage{tabularray}
\UseTblrLibrary{booktabs, siunitx}
\begin{document}
\begin{table}
\caption{Parameter values used in numerical simulations of system.}
\label{tab1}
\begin{tblr}{@{}cccccccccccc@{}}
\toprule
& \SetCell[c=11]{} Parameters\\
\toprule
& $\beta$ & $\mu$ & $\alpha_{1}$ & $p_{1}$ & $\phi$ & $\xi$ & $\psi$ & $p_{2}$ & $p_{3}$ & $\theta$ & $\alpha_{2}$ \\
\midrule
State 1 & 0.2 & 0.2 & 0.12 & 0.11 & 0.1 & 0.11 & 0.1 & 0.12 & 0.11 & 0.1 & 0.1\\
State 2 & 0.21 & 0.22 & 0.11 & $p_{1}$ & 0.1 & 0.11 & 0.12 & 0.1 & 0.11 & 0.1 & 0.11\\
\bottomrule
\end{tblr}
\end{table}
\end{document}
Responder2
Esta é outra abordagem usando um arquivo tabular
.
Adicionei um resumo \cmidrule
abaixo Parameters
e usei o siunitx
pacote para alinhar seus valores numéricos na vírgula decimal.
\documentclass{article}
\usepackage{booktabs,siunitx}
\begin{document}
\begin{table}
\caption{Parameter values used in numerical simulations of system.}
\label{tab1}
\begin{tabular}{@{}c*{11}S[table-format=1.2]@{}}
\toprule
&\multicolumn{11}{c}{Parameters} \\ \cmidrule(lr){2-12}
& {$\beta$} & {$\mu$} & {$\alpha_{1}$} & {$p_{1}$} & {$\phi$} & {$\xi$} & {$\psi$} & {$p_{2}$} & {$p_{3}$} & {$\theta$} & {$\alpha_{2}$} \\ \midrule
State 1 & 0.2 & 0.2 & 0.12 & 0.11 & 0.1 & 0.11 & 0.1 & 0.12 & 0.11 & 0.1 & 0.1 \\
State 2 & 0.21 & 0.22 & 0.11 & {$p_{1}$} & 0.1 & 0.11 & 0.12 & 0.1 & 0.11 & 0.1 & 0.11 \\
\bottomrule
\end{tabular}
\end{table}
\end{document}