
Estoy tratando de hacer una tabla con tres subtablas una al lado de la otra usando el entorno de tabla de tres partes dentro de un entorno de tabla, ya que me gustaría tener notas de tabla integradas y necesito un cuadro de cambio de tamaño. Sin embargo, las notas de la tabla están cortadas en el medio de la tabla. ¿Existe alguna manera de utilizar threeparttable y crear dos, tres o más subtablas y notas de tabla apropiadas sin crear manualmente texto debajo de una tabla? Aquí está mi código:
\begin{landscape}
\begin{table}
\caption{Caption of the Table}
\begin{threeparttable}[]
\centering
\resizebox{\linewidth}{!}{
\begin{tabular}{lccccc} \hline \hline
& & & & & \\
\multicolumn{6}{c}{Subtable Name} \\ \hline
& & & & & \\
\multicolumn{6}{c}{Panel A} \\ \hline
& & & & & \\
LOSSFNK & 0.648* & 0.613 & 0.724** & 0.648* & 1.255 \\
& (0.337) & (0.580) & (0.360) & (0.364) & (1.053) \\
Observations & 508,578 & 508,578 & 508,578 & 508,578 & 508,578 \\
R-squared & 0.047 & 0.051 & 0.050 & 0.049 & 0.055 \\
& & & & & \\
\multicolumn{6}{c}{Panel B} \\ \hline
& & & & & \\
LOSSFNK & 0.050** & 0.048* & 0.051** & 0.047** & 0.021 \\
& (0.021) & (0.028) & (0.021) & (0.023) & (0.041) \\
Observations & 695,035 & 695,035 & 695,035 & 695,035 & 695,035 \\
R-squared & 0.080 & 0.083 & 0.082 & 0.081 & 0.086 \\
& & & & & \\ \hline
& & & & & \\
Model 1 & Yes & Yes & Yes & Yes & Yes \\
Model 2 & Yes & Yes & Yes & Yes & Yes \\
Model 3 & & Yes & & & \\
Model 4 & & & Yes & & \\
Model 5 & & & & Yes & \\
Model 6 & & & & & Yes \\ \hline \hline
\end{tabular}
\hfill
\begin{tabular}{lccccc} \hline \hline
& & & & & \\
\multicolumn{6}{c}{Subtable Name} \\ \hline
& & & & & \\
\multicolumn{6}{c}{Panel A} \\ \hline
& & & & & \\
LOSSFNK & 0.457 & -0.318 & 0.570* & 0.649* & 1.011 \\
& (0.309) & (0.535) & (0.325) & (0.348) & (0.806) \\
Observations & 508,578 & 508,578 & 508,578 & 508,578 & 508,578 \\
R-squared & 0.045 & 0.049 & 0.048 & 0.047 & 0.053 \\
& & & & & \\
\multicolumn{6}{c}{Panel B} \\ \hline
& & & & & \\
LOSSFNK & 0.044** & 0.020 & 0.042** & 0.046** & -0.017 \\
& (0.019) & (0.022) & (0.019) & (0.022) & (0.027) \\
Observations & 695,035 & 695,035 & 695,035 & 695,035 & 695,035 \\
R-squared & 0.084 & 0.087 & 0.086 & 0.085 & 0.091 \\
& & & & & \\ \hline
& & & & & \\
Model 1 & Yes & Yes & Yes & Yes & Yes \\
Model 2 & Yes & Yes & Yes & Yes & Yes \\
Model 3 & & Yes & & & \\
Model 4 & & & Yes & & \\
Model 5 & & & & Yes & \\
Model 6 & & & & & Yes \\ \hline \hline
\end{tabular}
\hfill
\begin{tabular}{lccccc} \hline \hline
& & & & & \\
\multicolumn{6}{c}{Subtable Name} \\ \hline
& & & & & \\
\multicolumn{6}{c}{Panel A} \\ \hline
& & & & & \\
LOSSFNK & 0.066 & -0.777 & 0.182 & 0.481 & 1.795 \\
& (0.467) & (0.856) & (0.486) & (0.549) & (1.263) \\
Observations & 204,520 & 204,520 & 204,520 & 204,520 & 204,520 \\
R-squared & 0.028 & 0.036 & 0.033 & 0.032 & 0.045 \\
& & & & & \\
\multicolumn{6}{c}{Panel B} \\ \hline
& & & & & \\
LOSSFNK & 0.045** & 0.044 & 0.044** & 0.044* & 0.048 \\
& (0.021) & (0.032) & (0.021) & (0.024) & (0.052) \\
Observations & 261,101 & 261,101 & 261,101 & 261,101 & 261,101 \\
R-squared & 0.062 & 0.069 & 0.065 & 0.065 & 0.075 \\
& & & & & \\ \hline
& & & & & \\
Model 1 & Yes & Yes & Yes & Yes & Yes \\
Model 2 & Yes & Yes & Yes & Yes & Yes \\
Model 3 & & Yes & & & \\
Model 4 & & & Yes & & \\
Model 5 & & & & Yes & \\
Model 6 & & & & & Yes \\ \hline \hline
\end{tabular}
}
\end{threeparttable}
\begin{tablenotes}
\small
\item There should be some table notes here that go across all three subtables and not cutoff in the middle
\end{tablenotes}
\end{table}
\end{landscape}
Editar:
Muchas gracias por las sugerencias. Logré usar el ejemplo 1 de leandriis después de realizar algunos cambios menores ya que estoy usando kpfonts, que es un poco más pequeño.
Estas son algunas de mis respuestas:
Lo que estaba tratando de lograr es tener tres tablas una al lado de la otra y tener un título y las mismas notas de la tabla. Como estoy produciendo resultados desde Stata, quería tener un proceso algo automatizado para crear una tabla. Quería usar a threeparttable
porque pensé que es la forma más fácil y rápida de tener una tabla estructurada con notas de tabla integradas en el formato correcto, etc., y sin tener que probar diferentes tamaños de fuente y posiciones del texto debajo de la tabla. Y como era demasiado grande para la página que usé resizebox
.
¿Cuándo es una buena situación para utilizar threeparttable
? ¿Y qué son \tnote
las directivas?
Respuesta1
Por lo que puedo decir, no estás utilizando la maquinaria del threeparttable
paquete de forma adecuada. Sin duda, al utilizar el threeparttable
paquete, el tablenotes
entorno debe colocarse dentro, en lugar de fuera, del threeparttable
entorno. Sin excepciones.
Una cuestión más fundamental es: ¿por qué utilizar un threeparttable
entorno en primer lugar para el material en cuestión? Ninguno de los tabular
entornos contiene \tnote
directivas. Si no hay notas de tabla para procesar, ¿por qué configurar tablenotes
entornos threeparttable
?
Aquí hay algunas sugerencias.
Elimine
threeparttable
por completo el código relacionado y concéntrese en hacer que los trestabular
entornos sean más legibles. Y hagas lo que hagas: no utilices una\resizebox
directiva para calzar el material, quieras o no, en el ancho del bloque de texto (girado).En su lugar, concéntrese en mejorar la organización o exposición general del material. Señales visuales habituales a tu favor. En el siguiente ejemplo, elegí utilizar tres
subtable
entornos, uno por entorno tabular, para darle estructura al material.Las tres tablas que se muestran a continuación emplean tres "aspectos" diferentes. Prefiero los de izquierda y derecha, pero quizás prefieras el del centro. Tenga en cuenta que incluso la tabla del centro está mucho más simplificada en comparación con lo que se hace en su código.
El código también utiliza entornos
tabular*
en lugar detabular
entornos para ayudar a eliminar las conjeturas sobre el ancho que deben tener los espacios en blanco entre columnas.Si el tamaño de fuente principal de su documento es 12 puntos, debe cambiarlo
\small
en\footnotesize
el código siguiente.
\documentclass{article}
\usepackage[a4paper,margin=2.5cm]{geometry} % set page parameters suitably
\usepackage{threeparttable,pdflscape,booktabs,subcaption}
\begin{document}
\begin{landscape}
\begin{table}
\small % use '\footnotesize' if document font size is 12pt
\setlength\tabcolsep{0pt} % let LaTeX figure out intercol. whitespace
\caption{Caption of the Table}
\begin{subtable}[t]{0.32\linewidth}
\subcaption{First Subtable}
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}lccccc@{}}
\toprule
Panel A\\
LOSSFNK & 0.648* & 0.613 & 0.724** & 0.648* & 1.255 \\
& (0.337) & (0.580) & (0.360) & (0.364) & (1.053) \\
Obs. & 508,578 & 508,578 & 508,578 & 508,578 & 508,578 \\
$R^2$ & 0.047 & 0.051 & 0.050 & 0.049 & 0.055 \\
\addlinespace\addlinespace
Panel B \\
LOSSFNK & 0.050** & 0.048* & 0.051** & 0.047** & 0.021 \\
& (0.021) & (0.028) & (0.021) & (0.023) & (0.041) \\
Obs. & 695,035 & 695,035 & 695,035 & 695,035 & 695,035 \\
$R^2$ & 0.080 & 0.083 & 0.082 & 0.081 & 0.086 \\
\addlinespace\addlinespace
Model 1 & Yes & Yes & Yes & Yes & Yes \\
Model 2 & Yes & Yes & Yes & Yes & Yes \\
Model 3 & & Yes & & & \\
Model 4 & & & Yes & & \\
Model 5 & & & & Yes & \\
Model 6 & & & & & Yes \\
\bottomrule
\end{tabular*}
\end{subtable}
\hfill
\begin{subtable}[t]{0.32\linewidth}
\subcaption{Second Subtable}
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}lccccc@{}}
\toprule
\multicolumn{6}{c}{Panel A} \\
\midrule
LOSSFNK & 0.648* & 0.613 & 0.724** & 0.648* & 1.255 \\
& (0.337) & (0.580) & (0.360) & (0.364) & (1.053) \\
Obs. & 508,578 & 508,578 & 508,578 & 508,578 & 508,578 \\
$R^2$ & 0.047 & 0.051 & 0.050 & 0.049 & 0.055 \\
\addlinespace
\multicolumn{6}{c}{Panel B} \\
\midrule
LOSSFNK & 0.050** & 0.048* & 0.051** & 0.047** & 0.021 \\
& (0.021) & (0.028) & (0.021) & (0.023) & (0.041) \\
Obs. & 695,035 & 695,035 & 695,035 & 695,035 & 695,035 \\
$R^2$ & 0.080 & 0.083 & 0.082 & 0.081 & 0.086 \\
\midrule
Model 1 & Yes & Yes & Yes & Yes & Yes \\
Model 2 & Yes & Yes & Yes & Yes & Yes \\
Model 3 & & Yes & & & \\
Model 4 & & & Yes & & \\
Model 5 & & & & Yes & \\
Model 6 & & & & & Yes \\
\bottomrule
\end{tabular*}
\end{subtable}
\hfill
\begin{subtable}[t]{0.32\linewidth}
\subcaption{Third Subtable}
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}lccccc@{}}
\toprule
\multicolumn{6}{c}{Panel A} \\
\addlinespace%\midrule
LOSSFNK & 0.648* & 0.613 & 0.724** & 0.648* & 1.255 \\
& (0.337) & (0.580) & (0.360) & (0.364) & (1.053) \\
Obs. & 508,578 & 508,578 & 508,578 & 508,578 & 508,578 \\
$R^2$ & 0.047 & 0.051 & 0.050 & 0.049 & 0.055 \\
\addlinespace
\multicolumn{6}{c}{Panel B} \\
\addlinespace%\midrule
LOSSFNK & 0.050** & 0.048* & 0.051** & 0.047** & 0.021 \\
& (0.021) & (0.028) & (0.021) & (0.023) & (0.041) \\
Obs. & 695,035 & 695,035 & 695,035 & 695,035 & 695,035 \\
$R^2$ & 0.080 & 0.083 & 0.082 & 0.081 & 0.086 \\
\addlinespace%\midrule
Model 1 & Yes & Yes & Yes & Yes & Yes \\
Model 2 & Yes & Yes & Yes & Yes & Yes \\
Model 3 & & Yes & & & \\
Model 4 & & & Yes & & \\
Model 5 & & & & Yes & \\
Model 6 & & & & & Yes \\
\bottomrule
\end{tabular*}
\end{subtable}
\medskip
There should be some table notes here that go across all three subtables and not cutoff in the middle
%\end{tablenotes}
\end{table}
\end{landscape}
\end{document}
Respuesta2
Aquí hay cinco versiones diferentes de su mesa:
En la primera versión de la tabla, acabo de eliminar el threeparttable
entorno. Esto hace que tablenotes
se extienda a lo ancho de los tres tabulares. Sin embargo, no recomendaría esta solución ya que mantiene resizebox
y le brinda, como puede ver en la siguiente captura de pantalla, tamaños de fuente inconsistentes e ilegibles:
En el segundo ejemplo, eliminé resizebox
y reduje manualmente el tamaño de fuente a tiny
. Para hacer las tablas más estrechas, también he disminuido el espacio en blanco horizontal entre las columnas adyacentes. Como puede ver en la siguiente captura de pantalla, la fuente es un poco más grande que en el primer ejemplo, aunque todavía demasiado pequeña (al menos en mi opinión):
Para poder utilizar una fuente más grande, en el tercer ejemplo he permitido un salto de línea entre la segunda y la tercera tabla. Las notas de la tabla siguen siendo tan anchas como el ancho combinado de las dos primeras tablas:
Aquí hay una variante ligeramente diferente que coloca las notas de la tabla al lado de la tercera tabla. En este ejemplo, también reemplacé sus \hline
comandos y filas vacías con las reglas del booktabs
paquete:
Por último, su tabla también podría caber en una página vertical como se muestra en la siguiente captura de pantalla. Aquí he usado una scriptsize
fuente además del booktabs
paquete:
\documentclass{article}
\usepackage{threeparttable}
\usepackage{pdflscape}
\usepackage{graphicx}
\usepackage{geometry}
\usepackage{booktabs}
%%%%% Example 1 %%%%%
\begin{document}
\begin{landscape}
\begin{table}
\caption{Caption of the Table}
%\begin{threeparttable}[]
\centering \tiny
\resizebox{\linewidth}{!}{
\begin{tabular}{lccccc} \hline \hline
& & & & & \\
\multicolumn{6}{c}{Subtable Name} \\ \hline
& & & & & \\
\multicolumn{6}{c}{Panel A} \\ \hline
& & & & & \\
LOSSFNK & 0.648* & 0.613 & 0.724** & 0.648* & 1.255 \\
& (0.337) & (0.580) & (0.360) & (0.364) & (1.053) \\
Observations & 508,578 & 508,578 & 508,578 & 508,578 & 508,578 \\
R-squared & 0.047 & 0.051 & 0.050 & 0.049 & 0.055 \\
& & & & & \\
\multicolumn{6}{c}{Panel B} \\ \hline
& & & & & \\
LOSSFNK & 0.050** & 0.048* & 0.051** & 0.047** & 0.021 \\
& (0.021) & (0.028) & (0.021) & (0.023) & (0.041) \\
Observations & 695,035 & 695,035 & 695,035 & 695,035 & 695,035 \\
R-squared & 0.080 & 0.083 & 0.082 & 0.081 & 0.086 \\
& & & & & \\ \hline
& & & & & \\
Model 1 & Yes & Yes & Yes & Yes & Yes \\
Model 2 & Yes & Yes & Yes & Yes & Yes \\
Model 3 & & Yes & & & \\
Model 4 & & & Yes & & \\
Model 5 & & & & Yes & \\
Model 6 & & & & & Yes \\ \hline \hline
\end{tabular}
%\hfill
\begin{tabular}{lccccc} \hline \hline
& & & & & \\
\multicolumn{6}{c}{Subtable Name} \\ \hline
& & & & & \\
\multicolumn{6}{c}{Panel A} \\ \hline
& & & & & \\
LOSSFNK & 0.457 & -0.318 & 0.570* & 0.649* & 1.011 \\
& (0.309) & (0.535) & (0.325) & (0.348) & (0.806) \\
Observations & 508,578 & 508,578 & 508,578 & 508,578 & 508,578 \\
R-squared & 0.045 & 0.049 & 0.048 & 0.047 & 0.053 \\
& & & & & \\
\multicolumn{6}{c}{Panel B} \\ \hline
& & & & & \\
LOSSFNK & 0.044** & 0.020 & 0.042** & 0.046** & -0.017 \\
& (0.019) & (0.022) & (0.019) & (0.022) & (0.027) \\
Observations & 695,035 & 695,035 & 695,035 & 695,035 & 695,035 \\
R-squared & 0.084 & 0.087 & 0.086 & 0.085 & 0.091 \\
& & & & & \\ \hline
& & & & & \\
Model 1 & Yes & Yes & Yes & Yes & Yes \\
Model 2 & Yes & Yes & Yes & Yes & Yes \\
Model 3 & & Yes & & & \\
Model 4 & & & Yes & & \\
Model 5 & & & & Yes & \\
Model 6 & & & & & Yes \\ \hline \hline
\end{tabular}
%\hfill
\begin{tabular}{lccccc} \hline \hline
& & & & & \\
\multicolumn{6}{c}{Subtable Name} \\ \hline
& & & & & \\
\multicolumn{6}{c}{Panel A} \\ \hline
& & & & & \\
LOSSFNK & 0.066 & -0.777 & 0.182 & 0.481 & 1.795 \\
& (0.467) & (0.856) & (0.486) & (0.549) & (1.263) \\
Observations & 204,520 & 204,520 & 204,520 & 204,520 & 204,520 \\
R-squared & 0.028 & 0.036 & 0.033 & 0.032 & 0.045 \\
& & & & & \\
\multicolumn{6}{c}{Panel B} \\ \hline
& & & & & \\
LOSSFNK & 0.045** & 0.044 & 0.044** & 0.044* & 0.048 \\
& (0.021) & (0.032) & (0.021) & (0.024) & (0.052) \\
Observations & 261,101 & 261,101 & 261,101 & 261,101 & 261,101 \\
R-squared & 0.062 & 0.069 & 0.065 & 0.065 & 0.075 \\
& & & & & \\ \hline
& & & & & \\
Model 1 & Yes & Yes & Yes & Yes & Yes \\
Model 2 & Yes & Yes & Yes & Yes & Yes \\
Model 3 & & Yes & & & \\
Model 4 & & & Yes & & \\
Model 5 & & & & Yes & \\
Model 6 & & & & & Yes \\ \hline \hline
\end{tabular}
}
%\end{threeparttable}
%\begin{tablenotes}
\small \raggedright
There should be some table notes here that go across all three subtables and not cutoff in the middle There should be some table notes here that go across all three subtables and not cutoff in the middle
%\end{tablenotes}
\end{table}
\end{landscape}
%%%%% Example 2 %%%%%
\begin{landscape}
\begin{table}
\caption{Caption of the Table}
%\begin{threeparttable}[]
\centering \tiny \setlength{\tabcolsep}{2.5pt}
%\resizebox{\linewidth}{!}{
\begin{tabular}{lccccc} \hline \hline
& & & & & \\
\multicolumn{6}{c}{Subtable Name} \\ \hline
& & & & & \\
\multicolumn{6}{c}{Panel A} \\ \hline
& & & & & \\
LOSSFNK & 0.648* & 0.613 & 0.724** & 0.648* & 1.255 \\
& (0.337) & (0.580) & (0.360) & (0.364) & (1.053) \\
Observations & 508,578 & 508,578 & 508,578 & 508,578 & 508,578 \\
R-squared & 0.047 & 0.051 & 0.050 & 0.049 & 0.055 \\
& & & & & \\
\multicolumn{6}{c}{Panel B} \\ \hline
& & & & & \\
LOSSFNK & 0.050** & 0.048* & 0.051** & 0.047** & 0.021 \\
& (0.021) & (0.028) & (0.021) & (0.023) & (0.041) \\
Observations & 695,035 & 695,035 & 695,035 & 695,035 & 695,035 \\
R-squared & 0.080 & 0.083 & 0.082 & 0.081 & 0.086 \\
& & & & & \\ \hline
& & & & & \\
Model 1 & Yes & Yes & Yes & Yes & Yes \\
Model 2 & Yes & Yes & Yes & Yes & Yes \\
Model 3 & & Yes & & & \\
Model 4 & & & Yes & & \\
Model 5 & & & & Yes & \\
Model 6 & & & & & Yes \\ \hline \hline
\end{tabular}
\hfill
\begin{tabular}{lccccc} \hline \hline
& & & & & \\
\multicolumn{6}{c}{Subtable Name} \\ \hline
& & & & & \\
\multicolumn{6}{c}{Panel A} \\ \hline
& & & & & \\
LOSSFNK & 0.457 & -0.318 & 0.570* & 0.649* & 1.011 \\
& (0.309) & (0.535) & (0.325) & (0.348) & (0.806) \\
Observations & 508,578 & 508,578 & 508,578 & 508,578 & 508,578 \\
R-squared & 0.045 & 0.049 & 0.048 & 0.047 & 0.053 \\
& & & & & \\
\multicolumn{6}{c}{Panel B} \\ \hline
& & & & & \\
LOSSFNK & 0.044** & 0.020 & 0.042** & 0.046** & -0.017 \\
& (0.019) & (0.022) & (0.019) & (0.022) & (0.027) \\
Observations & 695,035 & 695,035 & 695,035 & 695,035 & 695,035 \\
R-squared & 0.084 & 0.087 & 0.086 & 0.085 & 0.091 \\
& & & & & \\ \hline
& & & & & \\
Model 1 & Yes & Yes & Yes & Yes & Yes \\
Model 2 & Yes & Yes & Yes & Yes & Yes \\
Model 3 & & Yes & & & \\
Model 4 & & & Yes & & \\
Model 5 & & & & Yes & \\
Model 6 & & & & & Yes \\ \hline \hline
\end{tabular}
\hfill
\begin{tabular}{lccccc} \hline \hline
& & & & & \\
\multicolumn{6}{c}{Subtable Name} \\ \hline
& & & & & \\
\multicolumn{6}{c}{Panel A} \\ \hline
& & & & & \\
LOSSFNK & 0.066 & -0.777 & 0.182 & 0.481 & 1.795 \\
& (0.467) & (0.856) & (0.486) & (0.549) & (1.263) \\
Observations & 204,520 & 204,520 & 204,520 & 204,520 & 204,520 \\
R-squared & 0.028 & 0.036 & 0.033 & 0.032 & 0.045 \\
& & & & & \\
\multicolumn{6}{c}{Panel B} \\ \hline
& & & & & \\
LOSSFNK & 0.045** & 0.044 & 0.044** & 0.044* & 0.048 \\
& (0.021) & (0.032) & (0.021) & (0.024) & (0.052) \\
Observations & 261,101 & 261,101 & 261,101 & 261,101 & 261,101 \\
R-squared & 0.062 & 0.069 & 0.065 & 0.065 & 0.075 \\
& & & & & \\ \hline
& & & & & \\
Model 1 & Yes & Yes & Yes & Yes & Yes \\
Model 2 & Yes & Yes & Yes & Yes & Yes \\
Model 3 & & Yes & & & \\
Model 4 & & & Yes & & \\
Model 5 & & & & Yes & \\
Model 6 & & & & & Yes \\ \hline \hline
\end{tabular}
%}
%\end{threeparttable}
%\begin{tablenotes}
\tiny \raggedright
There should be some table notes here that go across all three subtables and not cutoff in the middle There should be some table notes here that go across all three subtables and not cutoff in the middle
%\end{tablenotes}
\end{table}
\end{landscape}
%%%%% Example 3 %%%%%
\begin{landscape}
\begin{table}
\caption{Caption of the Table}
\centering
%\begin{threeparttable}[]
\footnotesize %\setlength{\tabcolsep}{2.5pt}
%\resizebox{\linewidth}{!}{
\begin{tabular}{lccccc}
\toprule
\multicolumn{6}{c}{Subtable Name} \\ \midrule
\multicolumn{6}{c}{Panel A} \\ \midrule
LOSSFNK & 0.648* & 0.613 & 0.724** & 0.648* & 1.255 \\
& (0.337) & (0.580) & (0.360) & (0.364) & (1.053) \\
Observations & 508,578 & 508,578 & 508,578 & 508,578 & 508,578 \\
R-squared & 0.047 & 0.051 & 0.050 & 0.049 & 0.055 \\ \addlinespace
\multicolumn{6}{c}{Panel B} \\ \midrule
LOSSFNK & 0.050** & 0.048* & 0.051** & 0.047** & 0.021 \\
& (0.021) & (0.028) & (0.021) & (0.023) & (0.041) \\
Observations & 695,035 & 695,035 & 695,035 & 695,035 & 695,035 \\
R-squared & 0.080 & 0.083 & 0.082 & 0.081 & 0.086 \\
\midrule
Model 1 & Yes & Yes & Yes & Yes & Yes \\
Model 2 & Yes & Yes & Yes & Yes & Yes \\
Model 3 & & Yes & & & \\
Model 4 & & & Yes & & \\
Model 5 & & & & Yes & \\
Model 6 & & & & & Yes \\ \bottomrule
\end{tabular}
\hfill
\begin{tabular}{lccccc}
\toprule
\multicolumn{6}{c}{Subtable Name} \\ \midrule
\multicolumn{6}{c}{Panel A} \\ \midrule
LOSSFNK & 0.648* & 0.613 & 0.724** & 0.648* & 1.255 \\
& (0.337) & (0.580) & (0.360) & (0.364) & (1.053) \\
Observations & 508,578 & 508,578 & 508,578 & 508,578 & 508,578 \\
R-squared & 0.047 & 0.051 & 0.050 & 0.049 & 0.055 \\ \addlinespace
\multicolumn{6}{c}{Panel B} \\ \midrule
LOSSFNK & 0.050** & 0.048* & 0.051** & 0.047** & 0.021 \\
& (0.021) & (0.028) & (0.021) & (0.023) & (0.041) \\
Observations & 695,035 & 695,035 & 695,035 & 695,035 & 695,035 \\
R-squared & 0.080 & 0.083 & 0.082 & 0.081 & 0.086 \\
\midrule
Model 1 & Yes & Yes & Yes & Yes & Yes \\
Model 2 & Yes & Yes & Yes & Yes & Yes \\
Model 3 & & Yes & & & \\
Model 4 & & & Yes & & \\
Model 5 & & & & Yes & \\
Model 6 & & & & & Yes \\ \bottomrule
\end{tabular}
\begin{tabular}{lccccc}
\toprule
\multicolumn{6}{c}{Subtable Name} \\ \midrule
\multicolumn{6}{c}{Panel A} \\ \midrule
LOSSFNK & 0.648* & 0.613 & 0.724** & 0.648* & 1.255 \\
& (0.337) & (0.580) & (0.360) & (0.364) & (1.053) \\
Observations & 508,578 & 508,578 & 508,578 & 508,578 & 508,578 \\
R-squared & 0.047 & 0.051 & 0.050 & 0.049 & 0.055 \\ \addlinespace
\multicolumn{6}{c}{Panel B} \\ \midrule
LOSSFNK & 0.050** & 0.048* & 0.051** & 0.047** & 0.021 \\
& (0.021) & (0.028) & (0.021) & (0.023) & (0.041) \\
Observations & 695,035 & 695,035 & 695,035 & 695,035 & 695,035 \\
R-squared & 0.080 & 0.083 & 0.082 & 0.081 & 0.086 \\
\midrule
Model 1 & Yes & Yes & Yes & Yes & Yes \\
Model 2 & Yes & Yes & Yes & Yes & Yes \\
Model 3 & & Yes & & & \\
Model 4 & & & Yes & & \\
Model 5 & & & & Yes & \\
Model 6 & & & & & Yes \\ \bottomrule
\end{tabular}
%}
%\end{threeparttable}
%\begin{tablenotes}
\scriptsize \raggedright
There should be some table notes here that go across all three subtables and not cutoff in the middle There should be some table notes here that go across all three subtables and not cutoff in the middle
%\end{tablenotes}
\end{table}
\end{landscape}
%%%%% Example 4 %%%%%
\begin{landscape}
\begin{table}
\caption{Caption of the Table}
%\begin{threeparttable}[]
\footnotesize %\setlength{\tabcolsep}{2.5pt}
%\resizebox{\linewidth}{!}{
\begin{tabular}{lccccc}
\toprule
\multicolumn{6}{c}{Subtable Name} \\ \midrule
\multicolumn{6}{c}{Panel A} \\ \midrule
LOSSFNK & 0.648* & 0.613 & 0.724** & 0.648* & 1.255 \\
& (0.337) & (0.580) & (0.360) & (0.364) & (1.053) \\
Observations & 508,578 & 508,578 & 508,578 & 508,578 & 508,578 \\
R-squared & 0.047 & 0.051 & 0.050 & 0.049 & 0.055 \\ \addlinespace
\multicolumn{6}{c}{Panel B} \\ \midrule
LOSSFNK & 0.050** & 0.048* & 0.051** & 0.047** & 0.021 \\
& (0.021) & (0.028) & (0.021) & (0.023) & (0.041) \\
Observations & 695,035 & 695,035 & 695,035 & 695,035 & 695,035 \\
R-squared & 0.080 & 0.083 & 0.082 & 0.081 & 0.086 \\
\midrule
Model 1 & Yes & Yes & Yes & Yes & Yes \\
Model 2 & Yes & Yes & Yes & Yes & Yes \\
Model 3 & & Yes & & & \\
Model 4 & & & Yes & & \\
Model 5 & & & & Yes & \\
Model 6 & & & & & Yes \\ \bottomrule
\end{tabular}
\hfill
\begin{tabular}{lccccc}
\toprule
\multicolumn{6}{c}{Subtable Name} \\ \midrule
\multicolumn{6}{c}{Panel A} \\ \midrule
LOSSFNK & 0.648* & 0.613 & 0.724** & 0.648* & 1.255 \\
& (0.337) & (0.580) & (0.360) & (0.364) & (1.053) \\
Observations & 508,578 & 508,578 & 508,578 & 508,578 & 508,578 \\
R-squared & 0.047 & 0.051 & 0.050 & 0.049 & 0.055 \\ \addlinespace
\multicolumn{6}{c}{Panel B} \\ \midrule
LOSSFNK & 0.050** & 0.048* & 0.051** & 0.047** & 0.021 \\
& (0.021) & (0.028) & (0.021) & (0.023) & (0.041) \\
Observations & 695,035 & 695,035 & 695,035 & 695,035 & 695,035 \\
R-squared & 0.080 & 0.083 & 0.082 & 0.081 & 0.086 \\
\midrule
Model 1 & Yes & Yes & Yes & Yes & Yes \\
Model 2 & Yes & Yes & Yes & Yes & Yes \\
Model 3 & & Yes & & & \\
Model 4 & & & Yes & & \\
Model 5 & & & & Yes & \\
Model 6 & & & & & Yes \\ \bottomrule
\end{tabular}
\bigskip
\begin{tabular}{lccccc}
\toprule
\multicolumn{6}{c}{Subtable Name} \\ \midrule
\multicolumn{6}{c}{Panel A} \\ \midrule
LOSSFNK & 0.648* & 0.613 & 0.724** & 0.648* & 1.255 \\
& (0.337) & (0.580) & (0.360) & (0.364) & (1.053) \\
Observations & 508,578 & 508,578 & 508,578 & 508,578 & 508,578 \\
R-squared & 0.047 & 0.051 & 0.050 & 0.049 & 0.055 \\ \addlinespace
\multicolumn{6}{c}{Panel B} \\ \midrule
LOSSFNK & 0.050** & 0.048* & 0.051** & 0.047** & 0.021 \\
& (0.021) & (0.028) & (0.021) & (0.023) & (0.041) \\
Observations & 695,035 & 695,035 & 695,035 & 695,035 & 695,035 \\
R-squared & 0.080 & 0.083 & 0.082 & 0.081 & 0.086 \\
\midrule
Model 1 & Yes & Yes & Yes & Yes & Yes \\
Model 2 & Yes & Yes & Yes & Yes & Yes \\
Model 3 & & Yes & & & \\
Model 4 & & & Yes & & \\
Model 5 & & & & Yes & \\
Model 6 & & & & & Yes \\ \bottomrule
\end{tabular}
%}
%\end{threeparttable}
\hfill
\begin{minipage}{0.625\textwidth}
%\begin{tablenotes}
\scriptsize \raggedright
There should be some table notes here that go across all three subtables and not cutoff in the middle There should be some table notes here that go across all three subtables and not cutoff in the middle
%\end{tablenotes}
\end{minipage}
\end{table}
\end{landscape}
%%%%% Example 5 %%%%%
%\begin{landscape}
\begin{table}
\begin{threeparttable}[]
\caption{Caption of the Table}
\scriptsize
%\resizebox{\linewidth}{!}{
\begin{tabular}{lccccc}
\toprule
\multicolumn{6}{c}{Subtable Name} \\ \midrule
\multicolumn{6}{c}{Panel A} \\ \midrule
LOSSFNK & 0.648* & 0.613 & 0.724** & 0.648* & 1.255 \\
& (0.337) & (0.580) & (0.360) & (0.364) & (1.053) \\
Observations & 508,578 & 508,578 & 508,578 & 508,578 & 508,578 \\
R-squared & 0.047 & 0.051 & 0.050 & 0.049 & 0.055 \\ \addlinespace
\multicolumn{6}{c}{Panel B} \\ \midrule
LOSSFNK & 0.050** & 0.048* & 0.051** & 0.047** & 0.021 \\
& (0.021) & (0.028) & (0.021) & (0.023) & (0.041) \\
Observations & 695,035 & 695,035 & 695,035 & 695,035 & 695,035 \\
R-squared & 0.080 & 0.083 & 0.082 & 0.081 & 0.086 \\
\midrule
Model 1 & Yes & Yes & Yes & Yes & Yes \\
Model 2 & Yes & Yes & Yes & Yes & Yes \\
Model 3 & & Yes & & & \\
Model 4 & & & Yes & & \\
Model 5 & & & & Yes & \\
Model 6 & & & & & Yes \\ \bottomrule
\toprule
\multicolumn{6}{c}{Subtable Name} \\ \midrule
\multicolumn{6}{c}{Panel A} \\ \midrule
LOSSFNK & 0.648* & 0.613 & 0.724** & 0.648* & 1.255 \\
& (0.337) & (0.580) & (0.360) & (0.364) & (1.053) \\
Observations & 508,578 & 508,578 & 508,578 & 508,578 & 508,578 \\
R-squared & 0.047 & 0.051 & 0.050 & 0.049 & 0.055 \\ \addlinespace
\multicolumn{6}{c}{Panel B} \\ \midrule
LOSSFNK & 0.050** & 0.048* & 0.051** & 0.047** & 0.021 \\
& (0.021) & (0.028) & (0.021) & (0.023) & (0.041) \\
Observations & 695,035 & 695,035 & 695,035 & 695,035 & 695,035 \\
R-squared & 0.080 & 0.083 & 0.082 & 0.081 & 0.086 \\
\midrule
Model 1 & Yes & Yes & Yes & Yes & Yes \\
Model 2 & Yes & Yes & Yes & Yes & Yes \\
Model 3 & & Yes & & & \\
Model 4 & & & Yes & & \\
Model 5 & & & & Yes & \\
Model 6 & & & & & Yes \\ \bottomrule
\toprule
\multicolumn{6}{c}{Subtable Name} \\ \midrule
\multicolumn{6}{c}{Panel A} \\ \midrule
LOSSFNK & 0.648* & 0.613 & 0.724** & 0.648* & 1.255 \\
& (0.337) & (0.580) & (0.360) & (0.364) & (1.053) \\
Observations & 508,578 & 508,578 & 508,578 & 508,578 & 508,578 \\
R-squared & 0.047 & 0.051 & 0.050 & 0.049 & 0.055 \\ \addlinespace
\multicolumn{6}{c}{Panel B} \\ \midrule
LOSSFNK & 0.050** & 0.048* & 0.051** & 0.047** & 0.021 \\
& (0.021) & (0.028) & (0.021) & (0.023) & (0.041) \\
Observations & 695,035 & 695,035 & 695,035 & 695,035 & 695,035 \\
R-squared & 0.080 & 0.083 & 0.082 & 0.081 & 0.086 \\
\midrule
Model 1 & Yes & Yes & Yes & Yes & Yes \\
Model 2 & Yes & Yes & Yes & Yes & Yes \\
Model 3 & & Yes & & & \\
Model 4 & & & Yes & & \\
Model 5 & & & & Yes & \\
Model 6 & & & & & Yes \\ \bottomrule
\end{tabular}
%}
\end{threeparttable}
\begin{tablenotes} \scriptsize
\item There should be some table notes here that go across all three subtables and not cutoff in the middle
\end{tablenotes}
\end{table}
%\end{landscape}
\end{document}
Respuesta3
Una variante donde la primera columna de tablas está solo en la primera tabla (separada por @{\quad}
reglas horizontales propias ( \cmidrule(r){1-1}
). Para otras columnas en las tablas se usan S
tipos de columnas. De manera similar a @Mico, no veo una razón razonable por la que debas usar ˙ tabla de tres partes˙:
\documentclass{article}
\usepackage[a4paper,margin=2.5cm]{geometry} % set page parameters suitably
\usepackage{booktabse}
\usepackage{siunitx}
\usepackage{pdflscape}
\usepackage{subcaption}
\begin{document}
\begin{landscape}
\begin{table}
\centering
\small
\setlength\tabcolsep{0pt} % let LaTeX figure out inter column spaces
\caption{Caption of the Table}
\begin{tabular*}{0.32\linewidth}{@{\extracolsep{\fill}}
l@{\quad}
*{5}{S[table-format=1.3,
input-symbols=( ),
table-space-text-pre=(,
table-space-text-post=**]}
}
& \multicolumn{5}{c}{First case} \\
\cmidrule[\heavyrulewidth]{2-6}
& \multicolumn{5}{c}{Panel A} \\
\cmidrule(r){1-1}\cmidrule{2-6}
LOSSFNK & 0.648* & 0.613 & 0.724** & 0.648* & 1.255 \\
& (0.337) & (0.580) & (0.360) & (0.364) & (1.053) \\
Obser. & {508,578} & {508,578} & {508,578} & {508,578} & {508,578} \\
$R^2$ & 0.047 & 0.051 & 0.050 & 0.049 & 0.055 \\
\addlinespace
\multicolumn{5}{c}{Panel B} \\
\cmidrule(r){1-1}\cmidrule{2-6}
LOSSFNK & 0.050** & 0.048* & 0.051** & 0.047** & 0.021 \\
& (0.021) & (0.028) & (0.021) & (0.023) & (0.041) \\
Obser. & {695,035} & {695,035} & {695,035} & {695,035} & {695,035} \\
$R^2$ & 0.080 & 0.083 & 0.082 & 0.081 & 0.086 \\
\cmidrule(r){1-1}\cmidrule{2-6}
Model 1 & {Yes} & {Yes} & {Yes} & {Yes} & {Yes} \\
Model 2 & {Yes} & {Yes} & {Yes} & {Yes} & {Yes} \\
Model 3 & & {Yes} & & & \\
Model 4 & & & {Yes} & & \\
Model 5 & & & & {Yes} & \\
Model 6 & & & & & {Yes} \\
\cmidrule[\heavyrulewidth](r){1-1}\cmidrule[\heavyrulewidth]{2-6}
\end{tabular*}
\hfil
\begin{tabular*}{0.32\linewidth}{@{\extracolsep{\fill}}
*{5}{S[table-format=1.3,
input-symbols=( ),
table-space-text-pre=(,
table-space-text-post=**]}
}
\multicolumn{5}{c}{Second case} \\
\midrule[\heavyrulewidth]
\multicolumn{5}{c}{Panel A} \\
\midrule
0.050** & 0.048* & 0.051** & 0.047** & 0.021 \\
(0.021) & (0.028) & (0.021) & (0.023) & (0.041) \\
{695,035} & {695,035} & {695,035} & {695,035} & {695,035} \\
0.080 & 0.083 & 0.082 & 0.081 & 0.086 \\
\addlinespace
\multicolumn{5}{c}{Panel B} \\
\midrule
0.050** & 0.048* & 0.051** & 0.047** & 0.021 \\
(0.021) & (0.028) & (0.021) & (0.023) & (0.041) \\
{695,035} & {695,035} & {695,035} & {695,035} & {695,035} \\
0.080 & 0.083 & 0.082 & 0.081 & 0.086 \\
\midrule
{Yes} & {Yes} & {Yes} & {Yes} & {Yes} \\
{Yes} & {Yes} & {Yes} & {Yes} & {Yes} \\
& {Yes} & & & \\
& & {Yes} & & \\
& & & {Yes} & \\
& & & & {Yes} \\
\midrule[\heavyrulewidth]
\end{tabular*}
\hfil
\begin{tabular*}{0.32\linewidth}{@{\extracolsep{\fill}}
*{5}{S[table-format=1.3,
input-symbols=( ),
table-space-text-pre=(,
table-space-text-post=**]}
}
\multicolumn{5}{c}{Third case} \\
\midrule[\heavyrulewidth]
\multicolumn{5}{c}{Panel A} \\
\midrule
0.648* & 0.613 & 0.724** & 0.648* & 1.255 \\
(0.337) & (0.580) & (0.360) & (0.364) & (1.053) \\
{508,578} & {508,578} & {508,578} & {508,578} & {508,578} \\
0.047 & 0.051 & 0.050 & 0.049 & 0.055 \\
\addlinespace
\multicolumn{5}{c}{Panel B} \\
\midrule
0.050** & 0.048* & 0.051** & 0.047** & 0.021 \\
(0.021) & (0.028) & (0.021) & (0.023) & (0.041) \\
{695,035} & {695,035} & {695,035} & {695,035} & {695,035} \\
0.080 & 0.083 & 0.082 & 0.081 & 0.086 \\
\midrule
{Yes} & {Yes} & {Yes} & {Yes} & {Yes} \\
{Yes} & {Yes} & {Yes} & {Yes} & {Yes} \\
& {Yes} & & & \\
& & {Yes} & & \\
& & & {Yes} & \\
& & & & {Yes} \\
\midrule[\heavyrulewidth]
\end{tabular*}
%\raggedrigh % in case that you like to have notes left aligned
There should be some table notes that can go across all three sub tables
\end{table}
\end{landscape}
\end{document}