1

How can I fix column 4 so that it's aligned the same as the other columns? Note that if the columns only consisted of the numerals (row 2), that column 4 would still be misaligned.

\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}

enter image description here

1
  • Remove the blank line after 4444!
    – AboAmmar
    Jul 6, 2017 at 3:49

1 Answer 1

4

There is a blank line after the last cell 4444. I also made a newcolumntype M defined as \newcolumntype{M}{>{\centering\arraybackslash}m{.2\textwidth}} to simplify the header.

\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}

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .