Graphics, Figures & TablesVertical Spacing in Paragraph within Tables

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
craq
Posts: 6
Joined: Tue Jul 28, 2009 1:01 pm

Vertical Spacing in Paragraph within Tables

Post by craq »

When the inter-line spacing in a table is set with e.g. \\[2ex], and the column is formatted as a paragraph, the reference point is the first line of the paragraph. This makes it difficult to get a homogeneous spacing between rows. Does anybody know how to do this without trial and error?

Code: Select all

\documentclass[a4paper,10pt]{report}
\begin{document}
\begin{tabular*}{10cm}{p{4cm}p{6cm}l}
	line 1    &   A lot of text which will be broken over at least two lines, and a big gap below it &\\ [10ex] 
	line 1    &   less text &\\ [10ex] %this 10ex space is much bigger than the previous 10ex space
	line 2    &   A second line of text with a smaller gap below it &\\[1ex]
	line 3    &   A third line of text&
\end{tabular*}
\end{document}

Recommended reading 2024:

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

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

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

Vertical Spacing in Paragraph within Tables

Post by Stefan Kottwitz »

Hi,

you could redefine \arraystretch instead, such as

Code: Select all

\renewcommand{\arraystretch}{3}
Stefan
LaTeX.org admin
Post Reply