I use the following latex code to using align
environment but the formula does not appear centered.
\begin{align}
\text{$SM$}_7 \rightarrow \text{$SM$}_1 : \{K_{NG},HMAC_{K_{1}}\}_{\{encr\}K_{1}},
\end{align}
But when writing the same code in IEEE journal latex file, the formula was centered.
Can any one help me to make text within align
to be centered ??
Best Answer
Looking at the image I would guess you have the
fleqn
option to set math flush left which is why it is not centred butalign
should never be used for one-lien equationsshould be
or perhaps
if SM is a single identifier here not a combination of S and M