At first I was using \linespread{2} but my research told me to use the package setspace. I did this and everything is fine however in align* environments, my equations get double spaced also which makes it visually unappealing. I tried two options

%\displayskipstretch %to avoid stretching math formula

which doesn't do anything.

I then tried writing \singlespace right before my align environment. This works however there's a very big gap between paragraph and align - see picture. (Note that this happens in the above case also). I would preferably like a single, 1.2, or 1.3 spacing in between equations and doublespace in "text mode"


edit: after viewing the pdf again, I am okay with the double space (again I would prefer single). However the whitespace between the paragraph and the align is very visually unappealing

  • 4
    Load the package with the nodisplayskipstretch option: \usepackage[nodisplayskipstretch]{setspace}. – Gonzalo Medina Apr 1 '13 at 5:52
  • Idea: Put \newcommand*\AlignDots[2]{\setbox0\hbox{${}#1{}$}\hbox to\wd0{\hfill$#2$\hfill\strut}} in the preamble and use \AlignDots to get vertically dots aligned correctly (instead of the horizontal ones). – Svend Tveskæg Apr 1 '13 at 11:20
  • @GonzaloMedina I tried that and it works but there is still a fair bit of gap (although less now) – masfenix Apr 1 '13 at 16:37
  • @masfenix Then try adding this in the preamble (after loading setspace): \doublespacing \setdisplayskipstretch{0.3}. Adjust the value 0.3 according to your needs. – Gonzalo Medina Apr 1 '13 at 18:20
  • I think the problem is with the "cases" left bracket i have. Anyways, is there a way to also force singlespace in math mode? – masfenix Apr 1 '13 at 19:12

For anyone in future who comes looking, and as this didn't quite fit in a comment, the spacing between the paragraph and the align can be reduced by using a \vspace with negative spacing after the \singlespacing. Note that there must be a blank line between the preceding paragraph and the \singlespacing otherwise it will make that paragraph single spaced.

By using


    y_1 &= ax_1 + b\\
    y_2 &= ax_2 + b


I was able to get reasonable results.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.