como expandir a largura da coluna de colunas específicas?

como expandir a largura da coluna de colunas específicas?

como expandir a largura de colunas específicas da tabela? Eu tentei \begin{tabular}{llc{2cm}c{2cm}cc}, mas não funciona. aqui está o meu código.

\begin{table}
\begin{center}
\label{table:quantitativekth}
\begin{tabular}{llc{2cm}c{2cm}cc}
\hline\noalign{\smallskip}
\multirow{2}{*}{Type} & \multirow{2}{*}{Model} & \multicolumn{2}{c}{$\text{x}_{0:10} \rightarrow \hat{\text{x}}_{10:30}$}\ \ \ &\multicolumn{2}{c}{$\text{x}_{0:10} \rightarrow \hat{\text{x}}_{10:50}$}\ \ \ \\
 &  & SSIM & PSNR & SSIM & PSNR \\
\noalign{\smallskip}
\hline
\noalign{\smallskip}
Deterministic \ & 2D ConvLSTM \cite{convlstm} & 0.712 & 0.639 & - & - \\ % 2.833082
& PredRNN++ \cite{wang-predrnn} & 0.865 & 0.741 & - & - \\ % 15390160
& E3D-LSTM \cite{wang-e3d} & 0.879 & 0.810 & - & - \\ % 38696497, 41940673
\noalign{\smallskip}
\hline
\noalign{\smallskip}
Stochastic & Variational 2D ConvLSTM \cite{vrnn} & - & - & - & - \\ % 2856122
& Ours & 0.863 & 0.850 & - & - \\ %12853578
\noalign{\smallskip}
\hline
\end{tabular}
\end{center}
\caption{Results on the KTH action dataset when predicting 20 timesteps into the future i.e. $\hat{\text{x}}_{10:30}$ and 40 timesteps into the future o.e. i.e. $\hat{\text{x}}_{10:50}$. The metrics are computed frame-wise. Higher SSIM and PSNR scores indicate better results.}
\end{table}

Responder1

Aqui está um exemplo de código usando o novo Wtipo de coluna do arraypacote. Este tipo de coluna recebe dois argumentos, sendo o primeiro o alinhamento horizontal desejado do conteúdo e o segundo a largura da coluna. Além disso, também carreguei o booktabspacote e usei seus comandos \toprule, \midrulee \bottomrulepara evitar ter que combinar \hlinecom espaço adicionado manualmente. Além disso, fixei a posição do arquivo \lablel. Para garantir uma referência correta, ele deve ser colocado após o \caption. Por último, também substituí o centerambiente pelo \centeringcomando para evitar espaços em branco adicionais ao redor da mesa.

insira a descrição da imagem aqui

\documentclass{article}
\usepackage{geometry}
\usepackage{array}
\usepackage{multirow}
\usepackage{amsmath}
\usepackage{booktabs}
\begin{document}
\begin{table}
\centering
\begin{tabular}{llW{c}{2cm}W{c}{2cm}cc}
\toprule
\multirow{2}{*}{Type} & \multirow{2}{*}{Model} & \multicolumn{2}{c}{$\text{x}_{0:10} \rightarrow \hat{\text{x}}_{10:30}$}\ \ \ &\multicolumn{2}{c}{$\text{x}_{0:10} \rightarrow \hat{\text{x}}_{10:50}$}\ \ \ \\
 &  & SSIM & PSNR & SSIM & PSNR \\
\midrule
Deterministic \ & 2D ConvLSTM \cite{convlstm} & 0.712 & 0.639 & - & - \\ % 2.833082
& PredRNN++ \cite{wang-predrnn} & 0.865 & 0.741 & - & - \\ % 15390160
& E3D-LSTM \cite{wang-e3d} & 0.879 & 0.810 & - & - \\ % 38696497, 41940673
\midrule
Stochastic & Variational 2D ConvLSTM \cite{vrnn} & - & - & - & - \\ % 2856122
& Ours & 0.863 & 0.850 & - & - \\ %12853578
\bottomrule
\end{tabular}
\caption{Results on the KTH action dataset when predicting 20 timesteps into the future i.e. $\hat{\text{x}}_{10:30}$ and 40 timesteps into the future o.e. i.e. $\hat{\text{x}}_{10:50}$. The metrics are computed frame-wise. Higher SSIM and PSNR scores indicate better results.}
\label{table:quantitativekth}
\end{table}

\end{document}

Responder2

Como a coluna ac obtém sua largura do membro mais largo, tudo o que você precisa é forçar a largura de qualquer membro a ter uma determinada largura. \makebox[width][c]{text} fará isso.

\documentclass{standalone}
\usepackage{amsmath}
\usepackage{multirow}
\begin{document}

\begin{tabular}{llcccc}
\hline\noalign{\smallskip}
\multirow{2}{*}{Type} & \multirow{2}{*}{Model} & \multicolumn{2}{c}{$\text{x}_{0:10} \rightarrow \hat{\text{x}}_{10:30}$}\ \ \ &\multicolumn{2}{c}{$\text{x}_{0:10} \rightarrow \hat{\text{x}}_{10:50}$}\ \ \ \\
 &  & \makebox[2cm]{SSIM} & \makebox[2cm]{PSNR} & SSIM & PSNR \\
\noalign{\smallskip}
\hline
\noalign{\smallskip}
Deterministic \ & 2D ConvLSTM \cite{convlstm} & 0.712 & 0.639 & - & - \\ % 2.833082
& PredRNN++ \cite{wang-predrnn} & 0.865 & 0.741 & - & - \\ % 15390160
& E3D-LSTM \cite{wang-e3d} & 0.879 & 0.810 & - & - \\ % 38696497, 41940673
\noalign{\smallskip}
\hline
\noalign{\smallskip}
Stochastic & Variational 2D ConvLSTM \cite{vrnn} & - & - & - & - \\ % 2856122
& Ours & 0.863 & 0.850 & - & - \\ %12853578
\noalign{\smallskip}
\hline
\end{tabular}

\end{document}

informação relacionada