I am writing some sentences which contain numbered displayed equations in the middle, like this one:
| Consider the relationship: |
| EQUATION (1)|
|where x is ... and y is ... |
| |
| This is a new paragraph which |
|ends with the following: |
| EQUATION (2)|
| |
| And this is the last paragraph, |
|followed by some equations which |
|are not part of it. |
| |
| EQUATIONS (3)|
| |
| The end. |
This is the code, with empty line between paragraphs:
Consider the relationship:
\begin{equation} ... \end{equation}
where x is ... and y is ...
This is a new paragraph which ends with the following:
\begin{equation} ... \end{equation}
And this is the last paragraph, followed by some equations which are not part of it.
\begin{equation} ... \end{equation}
The end.
I'd like to reduce the space between the equation and the text, but only in those cases in which the equation is in the middle of the sentence (note the vertical spacing and the paragraph indentations in the example above). Is there any way to do that, whitout changing global spacing like here?
The ideal solution would be something that recognize whether the equation is part or a paragraph or not (i.e. based on the blank lines between two paragraphs, like the indentation). Alternatively, a command to insert before, inside or before+after the equation (and gathered, align, ...) environments, or a new environment like \begin{NoSpaceEquation} ... \end{NoSpaceEquation}
, is fine too.
I'm not looking for solutions like a global space reduction, which would need to manually add space before and after isolated equations. The solution should affects only the equations inside a paragraph.
PS: I am using mathtools.
Thank you!
\begin{equation}
and after\end{equation}
.equation
(that is not vertical space it is a spurious empty line of text)Text: \\ Equation
(no blank line) vs.Text. \par Eqation
(blank line)\\
or a blank line (or\par
) before a math display, TeX simply does not support that.