Math & ScienceHow to change the linespread space in array environment

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
neumannturing
Posts: 32
Joined: Sun Mar 01, 2009 8:29 am

How to change the linespread space in array environment

Post by neumannturing »

It is a squeeze in the array. How can I add some space into the lines? I try to add one blank line but then there are too much. Thank you.
Attachments
problempic2.GIF
problempic2.GIF (4.88 KiB) Viewed 13603 times

Recommended reading 2024:

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

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

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

How to change the linespread space in array environment

Post by localghost »

There's a command that determines the row height in array (and tabular) environment.

Code: Select all

\renewcommand{\arraystretch}{1.2}
In the preamble it has global effect. There are some other solutions which do not rely on the array environment (i. e. cases environment).


Best regards
Thorsten¹
neumannturing
Posts: 32
Joined: Sun Mar 01, 2009 8:29 am

Re: How to change the linespread space in array environment

Post by neumannturing »

It works. Thanks. But how about fine-tuneing the vertical space equation and text? Latex adds spaces between the math equation and the ordinary text which is not appropriate in many case. I try to use vspace(), but it does not work(ie, vspace{-0.5in} will make the text move down!!!!). The behavior of Latex seems weird to me. Appreciate your help.
daleif
Posts: 199
Joined: Wed Nov 19, 2008 12:46 am

Re: How to change the linespread space in array environment

Post by daleif »

I would like you to show us examples of this problem in 'many places', because if that is the case then something is wrong
curiouslearn
Posts: 105
Joined: Fri Nov 30, 2007 11:32 pm

How to change the linespread space in array environment

Post by curiouslearn »

I had a similar question and gmedina suggested using
\setlength{\abovedisplayskip}{<length>} and
\setlenght{\belowdisplayskip}{<length>}
to change the vertical space above and below the display. I do not know how to link to that thread, but a search for the term abovedisplayskip should bring it up.
Post Reply