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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10358
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