left align a block of equations

1,240

try this

\begin{align*}
&\langle b, \pi_u(x)-x \rangle = 0 \\
&<=> \\
&\langle b,\pi_u(x) \rangle - \langle b,x \rangle = 0
\end{align*}

enter image description here

Share:
1,240

Related videos on Youtube

JJJohn
Author by

JJJohn

Updated on July 06, 2020

Comments

  • JJJohn
    JJJohn over 3 years

    I am trying to left align a block of equations.

    I've already tried this

    \documentclass{article}
    \usepackage{amsmath}
    \begin{document}
    \begin{align*}
    <b, \pi_u(x)-x> = 0 \\
    <=> \\
    <b,\pi_u(x)> - <b,x> = 0
    \end{align*}
    \end{document}  
    

    and this

    \begin{flushleft}
    \end{flushleft}
    

    and this

    \begin{equation}
    \begin{split}
    \end{split}
    \end{equation}
    

    none of them get me a left align.

    enter image description here

    • daleif
      daleif over 4 years
      remember an alignment column has tow parts a left part, a & and a right part. The lest part is right aligned, and the right part is left aligned. Since you have no &` on your rows they are all let parts and is this right aligned. Try starting each row with &.
    • daleif
      daleif over 4 years
      BTW: <..> is the wrong syntax here, use \langle b, c \rangle
    • David Carlisle
      David Carlisle over 4 years
      note that this is using mathjax not tex, so is off topic here, unless you can rephase it to also apply to latex.
    • JJJohn
      JJJohn over 4 years
      @DavidCarlisle which stack exchange is for mathjax?
    • David Carlisle
      David Carlisle over 4 years
      stackoverflow, mathjax tag.
    • Jay
      Jay over 4 years
      @daleif thanks man, you a great guy, I've updated my answer
  • David Carlisle
    David Carlisle over 4 years
    please use tex not mathjax for answers, (\begin{align*} inside $ would generate multiple errors with latex)
  • Jay
    Jay over 4 years
    I don't know how to do that. would you please post you answer or edit mine directly?