Center all equations

by user188990   Last Updated May 15, 2019 16:23 PM - source

Is there a mode to make all the equations(only the equations) in my document, in the form ${equation}$, become centered at once?

example code:

\documentclass{article}

\usepackage[utf8]{inputenc}
\usepackage[a4paper, total={7in, 10in}]{geometry}

\setlength{\parskip}{0.1in}
\setlength{\parindent}{0pt}
\renewcommand{\baselinestretch}{1.15}

\begin{document}
blablabla1

$hv=\phi+\frac{1}{2}mv^2$

blablabla2

$hv=\phi+\frac{1}{2}m{v}_{max}^2$

more blablabla and text
\end{document}

Tags :