Graphics, Figures & TablesTable with multi row cells

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

Table with multi row cells

Post by khubeb »

How do I make below table in ?

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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Table with multi row cells

Post by Johannes_B »

I think anybody can find that out with a fifteen minute google search and ann introduction to LaTeX.

Code: Select all

\documentclass{article}
\usepackage{booktabs}
\begin{document}
\begin{tabular}{lll}
	A&B&C\\
	\midrule
	1&2&P\\
	Q\\
	\midrule
	2&3&X\\
	Z\\
	\midrule
\end{tabular}
\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.
Post Reply