列間の境界としてスペースのある表を作成する方法

列間の境界としてスペースのある表を作成する方法

|のように先頭にを追加することで、表内の列を線で区切ることができます\begin{tabular}{ |l|l| }

次の表のように列をスペースで区切るにはどうすればよいでしょうか?

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

私にとって効果があった解決策:

 \begin{longtable}[c]{ll@{\hspace{30pt}}ll}
 \multicolumn{2}{}{}
 \hline
 MNIST &  & CIFAR-10  & \\

 \hline
 \endfirsthead
 \hline
 \endlastfoot

 Conv.ReLU & 3 x 3 x 32 & Conv.ReLU & 3 x 3 x 96\\
 Conv.ReLU & 3 x 3 x 32 & like this\\
 Max Pooling & 2 x 2 & like this\\
 Conv.ReLU & 3 x 3 x 64 & like this\\
 Conv.ReLU & 3 x 3 x 64 & like this\\
 Max Pooling & 2 x 2 & like this\\
 Dense.ReLU & 200 & like this\\
 Dense.ReLU & 200 & like this\\
 Softmax & 10 & like this\\

 \end{longtable}

答え1

@{<length>}次の MWE に示すように、個々の列間の間隔を好みに合わせて調整できます。

\documentclass{article}

\begin{document}

\begin{tabular}{ll@{\hspace{20pt}}ll}
1 & 2 & 3 & 4\\
\end{tabular}

\end{document}

関連情報