1

I have been trying to recreate this table using multi row but have been having no luck.

Basically, column 'e' applies to both 'x' and 'y'; all others (a/b/c/d) have their own values.

Thank you![enter image description here]1

4

I guess this is pretty much what you want. It uses the \multirow command to spread the content over multiple rows.

\documentclass{article}
\usepackage{multirow}

\begin{document}

\begin{table}[htbp]
\centering
\begin{tabular}{c c c c c c}
\hline
  & A & B & C & D & E \\ \hline
x & 1 & 2 & 3 & 4 & \multirow{ 2}{*}{5} \\
y & 6 & 7 & 8 & 9 &  \\ \hline
\end{tabular}
\caption{A test caption}
\label{table2}
\end{table}

\end{document}

Renders to:

resulting table

Adapted from How to use \multirow.

1

I propose this semantically-oriented variant:

\documentclass{article}
\usepackage{mathtools}
\usepackage{ multirow, booktabs}

\begin{document}

\begin{table}[htbp]
\centering
\begin{tabular}{*{6}{c}}
\toprule
  & A & B & C & D & E \\
  \midrule
x & 1 & 2 & 3 & 4 & \multirow{ 2}{*}{$ \mathllap{\begin{rcases}\\[1ex]\end{rcases}\ }$5} \\
y & 6 & 7 & 8 & 9 & \\
\bottomrule
\end{tabular}
\caption{A test caption}
\label{table2}
\end{table}

\end{document} 

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.