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?

2
  • Welcome to TeX.SX! Please make your code compilable (if possible), or at least complete it with \documentclass{...}, the required \usepackage's, \begin{document}, and \end{document}. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem.
    – hugovdberg
    Mar 31, 2014 at 10:59
  • related: How to left align a set of equations.. Mar 31, 2014 at 13:34

3 Answers 3

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.

0
1

Use the optional argument:

\usepackage[fleqn]{amsmath}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .