0

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

6
  • 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
    Jul 5, 2019 at 11:24
  • 1
    BTW: <..> is the wrong syntax here, use \langle b, c \rangle
    – daleif
    Jul 5, 2019 at 11:24
  • note that this is using mathjax not tex, so is off topic here, unless you can rephase it to also apply to latex. Jul 5, 2019 at 11:29
  • @DavidCarlisle which stack exchange is for mathjax?
    – JJJohn
    Jul 5, 2019 at 11:30
  • stackoverflow, mathjax tag. Jul 5, 2019 at 11:32

1 Answer 1

1

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

2
  • please use tex not mathjax for answers, (\begin{align*} inside $ would generate multiple errors with latex) Jul 5, 2019 at 11:31
  • I don't know how to do that. would you please post you answer or edit mine directly?
    – Jay
    Jul 5, 2019 at 11:51

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