表の単一行の高さを増やすにはどうすればよいでしょうか?

表の単一行の高さを増やすにはどうすればよいでしょうか?

図からわかるように、表は不完全でページからはみ出しています。ページ内に収める必要があります。そのため、行の高さを増やし、列の幅を狭くする必要があります。どうすればいいでしょうか。また、テキストが中央揃えになっていません。ここでの問題がわかりません。

\begin{table}[ht]
\begin{center}
\begin{tabular}{||c||c|c||c|c|c|c||} 
\hline
\multirow{2}{2cm}{\textbf{Atlas Resolution}}  & \multicolumn{2}{p{3cm}||}{\centering \textbf{Variant-1}} & \multicolumn{2}{p{3cm}||}{\centering    \textbf{Variant-2}} & \multicolumn{2}{p{3cm}||}{\centering \textbf{Variant-3}} \\ \cline{2-7}
& \textbf{Average Render Time (ms)} & \textbf{IFPS} & \textbf{Average Render Time (ms)} & \textbf{IFPS} & \textbf{Average Render Time (ms)} & \textbf{IFPS}\\ 
\hline\hline
512$\times$512 &  &  &  &  &  &  \\ 
\hline
1024$\times$1024 &  &  &  &  &  &  \\ 
\hline
18432$\times$18432 &  &  &  &  &  &  \\ 
\hline
19456$\times$19456 &  &  &  &  &  &  \\  [1ex]
\hline
\end{tabular}
\caption{List of sizes for various resolution of Dataset-I, compressed variant Dataset-II and different slices variant Dataset-II}
\end{center}
\end{table}
\label{tab:1}

ここに画像の説明を入力してください

更新された表:

ここに画像の説明を入力してください

答え1

次の回避策が受け入れられるかどうかを確認してください。

\documentclass{article}
\usepackage{booktabs,makecell,multirow,tabularx}
\renewcommand\theadfont{\bfseries\normalsize}
\newcolumntype{C}{>{\centering\arraybackslash}X}

\usepackage{geometry}

\begin{document}
    \begin{table}[ht]
\centering
\begin{tabularx}{\textwidth}{c L c L c L c }
    \toprule
\multirow{2}{*}{\thead{Atlas\\ Resolution}}
    &   \multicolumn{2}{c}{\thead{Variant-1}}
        &   \multicolumn{2}{c}{\thead{Variant-2}}
            &   \multicolumn{2}{c}{\thead{Variant-3}}    \\
    \cmidrule(lr){2-3}\cmidrule(lr){4-5}\cmidrule(lr){6-7}
    &   \thead[b]{Average\\ Render\\ Time (ms)}  &   \thead[b]{IFPS}
        &   \thead[b]{Average\\ Render\\ Time (ms)}  &   \thead[b]{IFPS}
            &   \thead[b]{Average\\ Render\\ Time (ms)}  &   \thead[b]{IFPS}                \\
    \midrule
512$\times$512      &  &  &  &  &  &  \\
1024$\times$1024    &  &  &  &  &  &  \\
    \addlinespace[2pt]
18432$\times$18432  &  &  &  &  &  &  \\
19456$\times$19456  &  &  &  &  &  &  \\
    \bottomrule
\end{tabularx}
    \caption{List of sizes for various resolution of Dataset-I, compressed variant Dataset-II and different slices variant Dataset-II}
    \label{tab:1}
\end{table}
\end{document}

ここに画像の説明を入力してください

編集: 私はあなたのテーブルを徹底的に再設計します。これには、booktabs水平線、makecell列見出し、tabularxテキスト幅を超えるテーブルスパン、および列幅の簡単な決定のためのパッケージを使用します。列見出しのフォントは次のように定義されます。

\renewcommand\theadfont{\bfseries\normalsize}

Mico のコメントは、多くの人々 (私も含む) が列ヘッダーのフォントが太字でない方がテーブルがより美しく見えると考えていることを私に伝えています。これは、次の使用法で簡単に実現できます。

\renewcommand\theadfont{\normalsize}

この場合のテーブルルックアウトは次のようになります。

ここに画像の説明を入力してください

関連情報