Generalsingle spaced equations in double spaced document

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
lc
Posts: 7
Joined: Sat Oct 03, 2009 9:24 pm

single spaced equations in double spaced document

Post by lc »

Hello, I'm working on a thesis that is required to be double spaced. My question is this. Is there a way to single space equations only? I use a lot of arrays and matrices and the matrix brackets in particular look horrible when double spaced.

I've seen suggestions to do something like:

Code: Select all

\documentclass{report}
\usepackage{amsmath}
\usepackage[doublespacing]{setspace}

\begin{document}
\begin{align}
\setstretch{1}
a &= x + b \\
c &= y + d
\end{align}
\begin{equation}
\setstretch{1}
A = \begin{bmatrix}a_{11} & a_{12} \\ a_{21} & a_{22}\end{bmatrix}
\end{equation}
\end{document}
While this seems to work for the matrix, the equation array remains double spaced and in either case I get a warning that "Command \normalsize invalid in math mode." Not to mention I'd prefer not to have to modify every equation in this way.

I can live with the equation arrays being double spaced, but I'd really like to get the matrix brackets under control. Any help is greatly appreciated.

Thanks,
LC

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: 10348
Joined: Mon Mar 10, 2008 9:44 pm

single spaced equations in double spaced document

Post by Stefan Kottwitz »

Hi LC,

welcome to the board!
You could adjust \jot, the distance between equations in multiline environments, further you could redefine \arraystretch. Note that it would affect all array environments, but it could also be done differently.

Code: Select all

\setlength{\jot}{-1ex}
\renewcommand*\arraystretch{.8}
Stefan
LaTeX.org admin
lc
Posts: 7
Joined: Sat Oct 03, 2009 9:24 pm

Re: single spaced equations in double spaced document

Post by lc »

Stefan,

Thanks for the welcome and the quick response. That is exactly what I needed in both cases.

Why is the the \renewcommand starred?

Thanks again,
LC
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Re: single spaced equations in double spaced document

Post by Stefan Kottwitz »

The star marks a "short command", parameters for such commands must not contain paragraph breaks, making it easier to locate errors with some LaTeX error messages. That's why I prefer short commands when their parameters cannot exceed a paragraph, that's also the case when there are no parameters at all.

Stefan
LaTeX.org admin
lc
Posts: 7
Joined: Sat Oct 03, 2009 9:24 pm

Re: single spaced equations in double spaced document

Post by lc »

Ah, that is very good to know. I always wonder about those things. Thanks again!
Post Reply