
列4を他の列と同じ位置に揃えるにはどうすればいいでしょうか?列が数字のみ(行2)で構成されている場合、列4はまだずれる。
\documentclass[twoside,12pt]{memoir}
\newcommand{\instruction}[1]{\begin{scriptsize} \textsf{#1} \end{scriptsize}}
\begin{document}
\begin{tabular}{>{\centering\arraybackslash}m{.2\textwidth} | >{\centering\arraybackslash}m{.2\textwidth} | >{\centering\arraybackslash}m{.2\textwidth} | >{\centering\arraybackslash}m{.2\textwidth}}
one & two & three & four \\
1111 & 2222 & 3333 & 4444
\end{tabular}
\end{document}
答え1
最後のセルの後に空白行があります4444
。また、ヘッダーを簡素化するためM
に、 として定義された新しい列タイプも作成しました。\newcolumntype{M}{>{\centering\arraybackslash}m{.2\textwidth}}
\documentclass[twoside,12pt]{memoir}
\newcommand{\instruction}[1]{\begin{scriptsize} \textsf{#1} \end{scriptsize}}
\begin{document}
\newcolumntype{M}{>{\centering\arraybackslash}m{.2\textwidth}}
\begin{tabular}{M *3{|M}}
one & two & three & four \\
1111 & 2222 & 3333 & 4444
\end{tabular}
\end{document}