[Tex/LaTex] Justified alignment for equations

alignequationshorizontal alignment

I am writing a IEEE journal paper full of equations and with center alignment the paper looks so messy.

enter image description here

I needed to justified align at least those that are coming successively one after another. I want equations at the left of the line but their numbers at the right.

Currently I am using these codes

\begin{equation}
\label{eqn_33}
UR_i=DR_i=\dfrac{P_i^{max}}{2} \qquad \textrm{(MW/min)} \quad\forall i\\
\end{equation}

which is centering alignment.

Best Answer

I would not do this, as it is not the recommended style by IEEE, but you can change this globally with the following MWE:

% arara: pdflatex

\documentclass{IEEEtran}
\usepackage[fleqn]{mathtools}
\setlength{\mathindent}{0pt}
\usepackage{blindtext} % for demo only
\usepackage[per-mode=symbol-or-fraction]{siunitx}

\begin{document}
\blindtext
\begin{equation}
\label{eqn_33}
UR_i=DR_i=\frac{P_i^\text{max}}{2}\,\si{\mega\watt\per\minute}\qquad\forall i
\end{equation}
Which results in \SI{42}{\mega\watt\per\minute} \blindtext
\end{document}

enter image description here

Related Question