6

I'm trying to get a LaTeX table to look like the below. Any tips on how to implement the brackets?

I currently just know how to do basic tables, which would be a 11x10 table in this case. Any way to make it simpler so the left and right side of the table have different vertical # of cells?

  • Welcome to TeX.sx! have a search for tikzmark, this type of thing has been done before :) – cmhughes Feb 6 '13 at 17:00
  • Have you looked at the capabilities of the multirow package, and its associated package, bigdelim? – Mico Feb 6 '13 at 17:14
9

There are many ways to do this. If you're working with an odd number of rows that you want an entry to span over, using blank cell entries is sufficient. Otherwise, nested tabular (or array and/or the use of \multirows (from the multirow package) make things work:

enter image description here

\documentclass{article}
\usepackage{booktabs,multirow}% http://ctan.org/pkg/{booktabs,multirow}
\begin{document}
\begin{tabular}{*{4}{c}}
  \toprule
  \textbf{Title1} & \textbf{Title2} & \textbf{Title3} & \textbf{Title4} \\
  \midrule
  \textbf{Ref1} & Val2a & Val3a $\left\{\begin{tabular}{@{\ }l@{}}
    Ref1.i \\ Ref1.ii \\ Ref1.iii
  \end{tabular}\right.$ & Val4a \\
  \bottomrule
\end{tabular}

\bigskip

\begin{tabular}{*{4}{c}}
  \toprule
  \textbf{Title1} & \textbf{Title2} & \textbf{Title3} & \textbf{Title4} \\
  \midrule
  \multirow{3}{*}{\textbf{Ref1}} & \multirow{3}{*}{Val2a} & Ref1.i & \multirow{3}{*}{Val4a} \\
  & & Ref1.ii & \\
  & & Ref1.iii & \\
  \bottomrule
\end{tabular}
\end{document}

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.