I want to align tabular cells vertically. But third column is not aligned.
Code: Select all
\begin{tabular}{|m{5cm}|m{5cm}|m{5cm}|}\hline
a & b & c \\[2cm] \hline
d & e & f \\[2cm] \hline
\end{tabular}
Code: Select all
\begin{tabular}{|m{5cm}|m{5cm}|m{5cm}|}\hline
a & b & c \\[2cm] \hline
d & e & f \\[2cm] \hline
\end{tabular}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
m
means.Code: Select all
\documentclass{article}
\usepackage{array}
\begin{document}
\begin{tabular}{|m{5cm}|m{5cm}|m{5cm}|@{}m{0cm}@{}}\hline
a & b & c & \\[2cm] \hline
d & e & f & \\[2cm] \hline
\end{tabular}
\end{document}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis