
Hola a todos,
Estoy haciendo esta tabla que compara matrices de covarianza pero no puedo hacer dos cosas que quiero. En primer lugar, quiero que las matrices tengan exactamente el mismo tamaño (las superiores parecen ser más grandes ahora). En segundo lugar, también me gustaría ver la flecha Sigma+ encima de las otras dos matrices.
Mi código:
\begin{table}[H]
\caption{Covariance matrices using IME and sandwich form}\label{tab:2}
\vspace{-0.3cm}
\begin{adjustbox}{width=1\columnwidth, center}
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} c c}
\toprule
\textbf{Normally distributed errors} & \textbf{Student-t distributed errors} \\
\midrule
$\Sigma_{IME}(\theta)$: \Longrightarrow \\ \[\left[ \begin{array}{ccc} \num{-2.05e-4} & \num{-7.16e-10} & \num{-2.42e-08} \\ \num{-7.16e-10} & \num{2.05e-04} & \num{2.71e-05} \\ \num{-2.42e-08} & \num{2.71e-05} & \num{2.64e-03} \end{array}\right]\] & \[\left[ \begin{array}{ccc} \num{2.04e-08} & \num{-3.82e-12} & \num{-8.77e-12} \\ \num{-3.82e-12} & \num{4.11e-08} & \num{5.43e-09} \\ \num{-8.77e-12} & \num{5.43e-09} & \num{5.28e-07} \end{array}\right]\] \\
$\Sigma_{Sandwich}(\theta)$: \Longrightarrow \\ \[\left[ \begin{array}{ccc} \num{6.58e-01} & \num{-1.64e-05} & \num{1.31e-04} \\ \num{-1.64e-05} & \num{2.04e-04} & \num{2.72e-05} \\ \num{1.31e-04} & \num{2.72e-05} & \num{2.64e-03} \end{array}\right]\] & \[\left[ \begin{array}{ccc} \num{2.06e-08} & \num{3.85e-12} & \num{8.82e-12} \\ \num{3.85e-12} & \num{4.11e-08} & \num{5.44e-09} \\ \num{8.82e-12} & \num{5.44e-09} & \num{5.29e-07} \end{array}\right]\] \\
\midrule[\heavyrulewidth]
\end{tabular*}
\end{adjustbox}
\centering
\end{table
Respuesta1
Si alguien puede hacer que esta tabla quepa en una página con los Sigmas en una columna separada a la izquierda, ¡estoy aún más feliz!
Esperando hacerte feliz :-)
\documentclass{article}
\usepackage[letterpaper,margin=1in]{geometry}
\usepackage{amsmath,siunitx,booktabs,amssymb}
\newcolumntype{R}{>{$}r<{$}}
\newcolumntype{C}{>{$}c<{$}}
\begin{document}
\begin{table}[ht!]
\sisetup{table-format=-1.2e-2,tight-spacing}
\setlength\arraycolsep{2pt} % default: 5pt
\setlength\tabcolsep{0pt}
\caption{Covariance matrices using IME and sandwich form\strut}\label{tab:2}
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} RCC}
\toprule
& \text{Normally distributed errors}
& \text{Student-$t$ distributed errors} \\
\midrule
\Sigma_{\textrm{IME}}(\theta): \Longrightarrow &
\left[ \begin{array}{@{}SSS@{}}
-2.05e-4 & -7.16e-10 & -2.42e-08 \\
-7.16e-10 & 2.05e-04 & 2.71e-05 \\
-2.42e-08 & 2.71e-05 & 2.64e-03
\end{array}\right]
&
\left[ \begin{array}{@{}SSS@{}}
2.04e-08 & -3.82e-12 & -8.77e-12 \\
-3.82e-12 & 4.11e-08 & 5.43e-09 \\
-8.77e-12 & 5.43e-09 & 5.28e-07
\end{array}\right]
\\ \addlinespace
\Sigma_{\textrm{Sandwich}}(\theta): \Longrightarrow &
\left[ \begin{array}{@{}SSS@{}}
6.58e-01 & -1.64e-05 & 1.31e-04 \\
-1.64e-05 & 2.04e-04 & 2.72e-05 \\
1.31e-04 & 2.72e-05 & 2.64e-03
\end{array}\right]
&
\left[ \begin{array}{@{}SSS@{}}
2.06e-08 & 3.85e-12 & 8.82e-12 \\
3.85e-12 & 4.11e-08 & 5.44e-09 \\
8.82e-12 & 5.44e-09 & 5.29e-07
\end{array}\right]
\\
\bottomrule
\end{tabular*}
\end{table}
\end{document}
Respuesta2
Con uso del siunitx
paquete:
\documentclass{article}
\usepackage{geometry}
\usepackage{siunitx}
\usepackage{booktabs, tabularx}
\begin{document}
\begin{table}[ht]
\sisetup{table-number-alignment = center,
table-figures-integer = 2,
table-figures-decimal = 2,
table-figures-exponent = 2,
}
\renewcommand\arraystretch{1.2}
\caption{Covariance matrices using IME and sandwich form}
\label{tab:2}
\begin{tabularx}{\textwidth}{ *{2}{>{$}X<{$}} }
\toprule
\addlinespace
\textbf{Normally distributed errors}
& \textbf{Student-t distributed errors} \\
\midrule
\Sigma_{\text{IME}}(\theta):\quad \Longrightarrow
& \\
\left[\begin{tabular}{SSS}
-2.05e-4 & -7.16e-10 & -2.42e-08 \\
-7.16e-10 & 2.05e-04 & 2.71e-05 \\
-2.42e-08 & 2.71e-05 & 2.64e-03
\end{tabular}\right]
& \left[\begin{tabular}{SSS}
2.04e-08 & -3.82e-12 & -8.77e-12 \\
-3.82e-12 & 4.11e-08 & 5.43e-09 \\
-8.77e-12 & 5.43e-09 & 5.28e-07
\end{tabular}\right] \\
% second row
\addlinespace
\Sigma_{\text{Sandwich}}(\theta):\quad \Longrightarrow
& \\
\left[\begin{tabular}{SSS}
6.58e-01 & -1.64e-05 & 1.31e-04 \\
-1.64e-05 & 2.04e-04 & 2.72e-05 \\
1.31e-04 & 2.72e-05 & 2.64e-03
\end{tabular}\right]
& \left[\begin{tabular}{SSS}
2.06e-08 & 3.85e-12 & 8.82e-12 \\
3.85e-12 & 4.11e-08 & 5.44e-09 \\
8.82e-12 & 5.44e-09 & 5.29e-07
\end{tabular}\right] \\
\addlinespace
\bottomrule
\end{tabularx}
\end{table}
\end{document}