title: aligning equations in latex
body: <p>I have the following code in an attempt to align things in latex using amsmath package:</p>
  
  <pre><code>\begin{alignat}{3}
  \text{max}  &amp;&amp; c^Tx &amp;=\\
  \text{s.t.} &amp;&amp; Ax &amp;\leq  b \\
          &amp;&amp; x    &amp;\geq  0
  \end{alignat}
  </code></pre>
  
  <p>Basically, i would like for max and s.t. to be in one column, c^Tx, Ax, x to be in second column, and lastly b and 0 to be in the last column. I'm not sure why it doesn't work (it clumps max and c^Tx together for some reason. </p>
  
  <p>if anyone can help me out with this it would be much appreciated!</p>