I am currently having outrageous vertical space before and after I use align.
For a bit of context, I used \onehalfspacing to make my document a bit clearer. However, it becomes ugly when I using align. For instance, here is a picture of what it looks like compared to when I am using array (and in fact any time I need to write maths using "$$") :
I would like to reduce this white space when I use align, but I can't find anything relevant enough. Since I am searching for something that works anytime without always repeating the command each time I have to use align, I was thinking of creating a new environment, but I don't know how to make one like align.
Thanks a lot for your help !
EDIT : Here is the code I used to take the picture :
\documentclass{article}
\usepackage[utf8]{inputenc}
%---------------
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[french]{babel}
\usepackage[cyr]{aeguill}
%---------------
\usepackage{fancyhdr}
\usepackage[top=3cm, bottom=3cm, left=3cm, right=3cm]{geometry}
\usepackage{setspace}
%---------------
\onehalfspacing
%\setlength{\parskip}{0cm} %not usefull
%---------------
\usepackage{amsmath, amssymb, amsthm}
\usepackage{mathrsfs}
\usepackage{etoolbox}
\usepackage{stmaryrd}
\title{Tests Overleaf}
\date{\today}
\begin{document}
\maketitle
\section{Introduction}
------------------------------------------------------------------------------------------
I am using array :
$$\begin{array}{cccccc}
f : & A & \times & B & \longrightarrow & C \\
& x & ; & y & \longmapsto & xy
\end{array}$$
------------------------------------------------------------------------------------------
I am using align* :
\begin{align*}
a \times (b+c) & = a \times b + a \times c\\
& = a \times b + a \times c + 0
\end{align*}
------------------------------------------------------------------------------------------
\end{document}



$$in latex. It is hard to tell you how to correct the markup making over-large spaces if you do not show the markup. Please always include a complete small document that produces the image shown, add it as a code block to teh question so people can test answers. – David Carlisle Jan 25 '20 at 16:01\begin{align}? You should never have a blank line before any display math construct. – David Carlisle Jan 25 '20 at 16:02alignis an error (and will produce at least\baselineskipof spurious white space, you also get more for align than for\[if (as you show here) the last line of the paragraph is short. as it always uses\abovedisplayskiprather than\abovedisplayshortskipbut with no example code posted not really possible to give a definite answer just guesses of things you may have done wrong. – David Carlisle Jan 25 '20 at 16:26\flushbottomfor example, there are so many things it could be.... – David Carlisle Jan 25 '20 at 16:27