LaTeX forum ⇒ Graphics, Figures & TablesTable with multi row cells

Information and discussion about graphics, figures & tables in LaTeX documents.
khubeb
Posts: 2
Joined: Sun Jan 08, 2017 11:16 am

Table with multi row cells

Postby khubeb » Sun Jan 08, 2017 11:26 am

How do I make below table in [LaTeX]?

A B C
---------------
1 2 P
Q
---------------
2 3 X
Z
---------------

User avatar
Johannes_B
Site Moderator
Posts: 4102
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Sun Jan 08, 2017 12:48 pm

I think anybody can find that out with a fifteen minute google search and ann introduction to LaTeX.
Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. \documentclass{article}
  2. \usepackage{booktabs}
  3. \begin{document}
  4. \begin{tabular}{lll}
  5. A&B&C\\
  6. \midrule
  7. 1&2&P\\
  8. Q\\
  9. \midrule
  10. 2&3&X\\
  11. Z\\
  12. \midrule
  13. \end{tabular}
  14. \end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.


Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 6 guests