0

I am noticing that equations when written inside the ``align" environment in the amsart class document come with a lot of white space around it. Particularly if there is a single line sentence between 2 instances of the align environment then there is a very conspicuous amount of white space around that single line.

Can someone suggest a fix for this?

9
  • 1
    You can use a single align and \intertext between the two aligned lines, if that is semantically meaningful.
    – Bernard
    Feb 9 '20 at 22:16
  • Not sure how to do that when each block of align needs its own label for future referencing Feb 9 '20 at 22:19
  • 1
    Each line has its own label, that is no problem. The real problem is; do the two lines have any reason to have a common alignment point.
    – Bernard
    Feb 9 '20 at 22:20
  • But currently the 2 different align blocks have their own labels. There will be no way to maintain that if I merge them into a single align block with an intertext in between. Feb 9 '20 at 22:22
  • 1
    align labels per row there is no alignment for the display as a whole so why does using one alignment with \intertext for the sentence prevent you from having labels? Also you have not shown any input, excessive white space can be caused by several markup errors such as leaving a blank line before the alignment. It would clarify if you edited the question to show a small complete document with the problem, Feb 9 '20 at 22:35
3

The intended markup for a sentence of text mid-alignment is \intertext or for even tighter spacing you can use \shortintertext from mathtools

enter image description here

\documentclass{article}

\usepackage{mathtools}

\begin{document}

aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa 
aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa 
\begin{align}
  1&=2\\
  2&=3\\
\shortintertext{some one line sentence text goes here}
 3&=4\\
5&=6
\end{align}
aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa 
aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa 

\end{document}
4
  • Thanks for the reply. (a) You arent using the "amsart" class. Maybe this is a specific issue with how amsart and align interact to produce a lot of white space before the beginning and after the ending of the align? (b) I cannot use intertext because that will then need me to merge the 2 align environments while I need separate labels for each of them for future referencing. Feb 9 '20 at 22:51
  • I need to have the format as, \begin{align}\ref{eq1} 1&=2\\ 2&=3\\ \end{align} some one line sentence text goes here, \begin{align}\ref{eq2} 3&=4\\ 5&=6 \end{align} Feb 9 '20 at 22:52
  • 1
    @gradstudent, please edit your question and provide MWE (Minimal Working Example) which show your problem. This answer also with use of amsart gives the same result: no extra white space around equations.
    – Zarko
    Feb 9 '20 at 23:26
  • @gradstudent as we said multiple times in comments under the question you are mistaken about \label, label applies to a singe row of the alignment and you can have one on every row. Feb 9 '20 at 23:36

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