4

what is the best way to split a table cell like this:

| Header1    | Header2| Header3  |
----------------------------------
| text11      | text12 | text13   |
----------------------------------
| text21      | text22 | text23   |
----------------------------------
|       |t311 |text312 | text313  | 
| text31|     |        |          |  
|       |t312 |text322 | text323 | 

thanks

  • Could you post a full compilable code? – Bernard Dec 22 '16 at 11:36
  • Check out this page for easy table creation in Latex. tablesgenerator.com Create your table using GUI on the site and automatically generate Latex code for the table you created. This site saved a lot of my time! And headache to create table in latex. – dnth Apr 23 '18 at 8:08
8

Is this what you want?

enter image description here

\documentclass{article}

\usepackage{multirow}

\begin{document}
\begin{tabular}{| l | l | c | c |}
  \hline 
  \multicolumn{2}{|l|}{Header1}    & Header2 & Header3  \\
  \hline
  \multicolumn{2}{|l|}{text11}      & text12 & text13   \\
  \hline
  \multicolumn{2}{|l|}{text21}     & text22 & text23   \\
  \hline
  \multirow{2}*{text31}      & t311 &text312 & text313  \\
       & t312 & text322 & text323 \\
  \hline 
\end{tabular}
\end{document}
| improve this answer | |

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.