Math & ScienceDouble spacing without stretching things in math mode...

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
captcaffeine
Posts: 2
Joined: Sun Jan 16, 2011 1:45 pm

Double spacing without stretching things in math mode...

Post by captcaffeine »

Hi folks,

I've run into a problem with double spacing and math mode. I'm in the middle of writing up a thesis (with lots of math), and my school insists on true double spacing (i.e,

Code: Select all

\setstretch{2}
).

At the moment, as noted above, I'm using

Code: Select all

\setstretch{2}
with the setspace package. However, this has the side effect of stretching all of my equations, both in display environments and inline in the text. For example, if I use $

Code: Select all

\begin{Vmatrix} X \end{Vmatrix} 
$ from amsmath, then the vertical bars appear almost two lines tall, instead of matching the size of the text.

Essentially, I think I'm looking for double spaced text with single-spaced math. I've tried all kinds of combinations of

Code: Select all

\arraystretch
, and also using the

Code: Select all

\everymath
and

Code: Select all

\everydisplay
commands, but so far no success.

Ideally, I'd like to fix this properly, so that all the math looks just as it would in a single-spaced document. However, I'll take a kludge if there's no other choice (thesis has to be submitted in less than two weeks).

Thanks all - hopefully I've provided enough info above.

Cheers,

Jonathan

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
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Double spacing without stretching things in math mode...

Post by localghost »

From your descriptions I see no sense in using a matrix for the in-line math expression. The example below works flawlessly.

Code: Select all

\documentclass[11pt,a4paper,english]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{mathtools}                 % loads »amsmath«
\usepackage[doublespacing]{setspace}
\usepackage{blindtext}

\DeclarePairedDelimiter{\norm}{\lVert}{\rVert}

\begin{document}
  \blindtext $\norm{X}$

  \begin{align}
    (a+b)^2&= a^2+2ab+b^2 \\
    (a-b)^2&= a^2-2ab+b^2 \\
    (a+b)(a-b) &= a^2-b^2
  \end{align}

  \blindtext $\norm{X}$
\end{document}
A minimal example that shows clearly what you try to do would be very helpful.


Best regards and welcome to the board
Thorsten
captcaffeine
Posts: 2
Joined: Sun Jan 16, 2011 1:45 pm

Double spacing without stretching things in math mode...

Post by captcaffeine »

Hi Thorsten,

Thanks very much for your response. Unfortunately, using setspace with the doublespace option does not provide true double spacing - it certainly looks better, but the thesis editing office at my university insists on having two full lines of space for each single line of text.

Here is a minimal example:

Code: Select all

\documentclass[10pt]{article}

\usepackage{setspace}
\setstretch{2}

\usepackage{mathtools}

\begin{document}

The equation below is stretched too much:

\begin{equation}
V =
\begin{Vmatrix}
X
\end{Vmatrix}
\end{equation}

\end{document}
When typeset, note that the vertical bars are too tall. This happens with both inline vertical bars and braces, as well as in display environments - i.e., it's not just an issue with the inline equations. Maybe it's not possible to use amsmath? The problem occurs with the above text unless the argument to \setstretch is 1.1 or less (which must be a threshold somewhere?).

Thanks.

J.
A1x
Posts: 1
Joined: Tue Oct 16, 2012 1:57 am

Re: Double spacing without stretching things in math mode...

Post by A1x »

Hello,
I'm having the same problem... any solution yet?
Post Reply