GeneralHow to make flexible tables

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
betyaros
Posts: 9
Joined: Thu May 01, 2008 10:02 pm

How to make flexible tables

Post by betyaros »

I'm trying to make a table which contains figures and text together. The first column should contains figures and the second one contains text, but in this case, text in the second column is aligned to the bottom of the row.

Code: Select all

\begin{table}
	\centering
	\begin{tabular}{|c|l|}\hline
		\includegraphics{figure} & Text\dots \\ \hline
	\end{tabular}
\end{table}
How can I align the text vertically center?

Thank you in advance

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

How to make flexible tables

Post by Stefan Kottwitz »

Hi betyaros,

try m-columns using the array-package:

Code: Select all

\usepackage{array}
...
\begin{tabular}{|m{2cm}|m{2cm}|}\hline
...
Stefan
LaTeX.org admin
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

How to make flexible tables

Post by gmedina »

In this thread, localghost gave additional advise on how to achieve beautiful tables that include images.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
betyaros
Posts: 9
Joined: Thu May 01, 2008 10:02 pm

Re: How to make flexible tables

Post by betyaros »

Thank you, it was very helpful
Post Reply