4

So I want to align my 'equals' sign and inequality signs. So I have done,

   \begin{align}
   \Rightarrow d(\mathbf x',\mathbf 0) & \geq d(\mathbf x,\mathbf 0) - d(\mathbf x',\mathbf x) \\
   &=  \varepsilon + \delta - d(\mathbf x',\mathbf x)
   \end{align}

This works fine, it aligns the signs however it also centres the whole equation. I don't want it to be centred, I just want it to start from the left and move to the right as normal text should.

Any ideas?

Sf123
  • 41

3 Answers3

3

Using \usepackage[fleqn]{amsmath} will left align all equations. You can use flalign environment instead.

\documentclass{article}

\usepackage{amsmath}
\usepackage{showframe}   %% just for demo

\begin{document}

\begin{flalign}
  \Rightarrow d(\mathbf x',\mathbf 0)
  &\geq d(\mathbf x,\mathbf 0) - d(\mathbf x',\mathbf x)   && \\     %% note two && at the end
  &= \varepsilon + \delta - d(\mathbf x',\mathbf x)
\end{flalign}

\end{document}

enter image description here

2

Here is a possible solution:

\documentclass{article}

\usepackage[fleqn]{mathtools}
\newcommand*\Vector[1]{\mathbf{#1}}

\begin{document}

\begin{align}
  \Rightarrow
  d(\Vector{x}',\Vector{0})
  &\geq d(\Vector{x},\Vector{0}) - d(\Vector{x}',\Vector{x}) \\
  &=    \varepsilon + \delta - d(\Vector{x}',\Vector{x})
\end{align}

\end{document}

output

The best answer is definitely Harish Kumar's.

1

Use the optional argument:

\usepackage[fleqn]{amsmath}