Graphics, Figures & TablesMatrix Fraction Spacing

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
tonyjnel
Posts: 11
Joined: Thu May 12, 2011 3:51 pm

Matrix Fraction Spacing

Post by tonyjnel »

Hi,
The default spacing of the array environment puts fractions in the same column too close together (vertically) for my liking. This is my code:

Code: Select all

\documentclass[12pt]{article}
\begin{document}
\[
	\left(\begin{array}{ccc|c}
		1&2&-1&-1\\
		0&1&\frac{3}{2}&\frac{9}{2}\\
		0&0&\frac{11}{2}&\frac{55}{2}
	\end{array}\right)
\]
\end{document}
Is there a standard way for dealing with this? Should I reduce the font size for fractions?

Thanks,
Tony
Last edited by tonyjnel on Tue Jun 07, 2011 8:08 pm, edited 1 time in total.

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

Matrix Fraction Spacing

Post by Stefan Kottwitz »

Hi Tony,

you can redefine \arraystretch to get a wider vertical spacing, globally or locally, such as here:

Code: Select all

\[
   \renewcommand*{\arraystretch}{1.2}
   \left(\begin{array}{ccc|c}
      1&2&-1&-1\\
      0&1&\frac{3}{2}&\frac{9}{2}\\
      0&0&\frac{11}{2}&\frac{55}{2}
   \end{array}\right)
\]
Stefan
LaTeX.org admin
tonyjnel
Posts: 11
Joined: Thu May 12, 2011 3:51 pm

Re: Matrix Fraction Spacing

Post by tonyjnel »

Thanks, that's perfect.
Post Reply