3

I am trying to have \multirows for the first and last columns and following is the closest I could get. Could you please guide me on how to do that (Like the table drawn in Excel below)?

    \begin{tabular}{ |l|l|l|l| }
    \hline
    \multicolumn{4}{ |c| }{Convergence} \\
    \hline
    Time & \multicolumn{2}{ |c| }{Information} & Graph \\ \hline
    \multirow{3}{*}{1} & Vertice & 1 & 0.5  \\ \cline{2-1} \cline{3-1}
    & ${P(1)}$ & 0.5 & 0.5 \\ \cline{2-2} \cline{3-2}
    & Chance & 0.5 & 0.5 \\
    \hline
    \multirow{3}{*}{1} & Vertice & 1 & 0.5  \\
    & ${P(1)}$ & 0.5 & 0.5 \\
    & Chance & 0.5 & 0.5 \\
    \hline
    \end{tabular}

enter image description here

1

1 Answer 1

2

Haha, got it!

\begin{tabular}{ |l|l|l|l| }
  \hline
  \multicolumn{4}{ |c| }{Convergence} \\
  \hline
  Time & \multicolumn{2}{ |c| }{Information} & Graph \\ \hline
    \multirow{3}{*}{1} & Vertice & 1 &  \multirow{3}{*}{1} \\ \cline{2-1} \cline{3-1}
                       & ${P(1)}$ & 0.5 &   \\ \cline{2-2} \cline{3-2}
                       & Chance & 0.5 &   \\

  \hline
    \multirow{3}{*}{1} & Vertice & 1 & 0.5  \\
  & ${P(1)}$ & 0.5 & 0.5 \\
  & Chance & 0.5 & 0.5 \\

  \hline
\end{tabular}
1
  • 2
    Use only \cline{2-3}, not your combination of \clines. Also, your Excel pictures shows a centred horizontal alignment. You can achieve that by using a |c|l|l|c| column specification for your main tabular.
    – Werner
    Aug 9, 2013 at 2:12

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.