I need to display math in my report, but is it possible to remove the vertical space around align*?
A little example is the following (where I just want the align*
to have the same vertical space as a \\
\documentclass[10pt,danish,a4paper,oneside,fleqn]{report}
\usepackage[english]{babel}
\usepackage{amsmath}
\begin{document}
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
\begin{align*}
A{\cap}B\ & =\ {\left\{{b,d,e}\right\}}{\;}{\cap}{\;}{\left\{{a,b,f,g}\right\}} \\
\nonumber\ & =\ {\left\{{b}\right\}}
\end{align*}
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss \\
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
\end{document}
Best Answer
Note, however, that this is very poor typography. (
lipsum
is just to generate dummy text.)The four parameters state how much vertical space is inserted between text and a math display. The "short" version is used for
equation
, when the last line of text is short.You should also check the way you're inputting math. You're using too much redundant braces (that in some cases give very bad results). It's quite rare to use explicit spacing commands in math.
Here's the result of typesetting the test file
This is the principle. In case you use font size changing commands, you have to tell LaTeX that you want this zero spacing in all sizes by putting this in the preamble
so that the example becomes