I want to insert formula in text and I used equation
as shown:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
So, $\rho : G \rightarrow GL(n,\mathbb{F})$ is representation if and only if
\begin{equation*}
\forall g,h \in G) \hspace{2mm} \rho(gh)=\rho(g)\rho(h).
\end{equation*}
\end{document}
My problem is too big vertical spacing before and after formula.
Best Answer
If you truly believe that the default values of the length parameters
\abovedisplayskip
and\belowdisplayskip
make LaTeX insert a bit too much vertical whitespace above and below a displayed equation, you could reduce those values a bit. E.g.,Don't go overboard, though.
Do also follow barbara beeton's advice not to leave blank lines above and below the code that defines the displayed equations. And, if your document loads the
setspace
package and uses a spacing setting other than\singlespacing
, do load the package with the optionnodisplayskipstretch
. Doing so turns off line stretching before and after displays. If your document uses\doublespacing
you'll notice a huge effect.