Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
    
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

1 Answer 1

up vote 5 down vote accepted

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}
share|improve this answer
    
Thanks Werner. The nested tabular worked well. –  ajo Feb 6 '13 at 22:21

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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