# [OS X TeX] Using align with "or"

Mon Apr 18 00:35:23 CEST 2011

Bruno et al,

This is precisely what I needed. But now I think I also need an explanation. We have:

\begin{alignat}{5}

But the first row has 9 ampersands. I've stumbled into solutions like this on my own, but I just don't understand the use of the ampersands. Is this use of the ampersands explained in any documentation?

D.

P.S. Also, is there any way to spread out the output a bit?

D.

On Apr 17, 2011, at 12:56 PM, Bruno Voisin wrote:

> Le 17 avr. 2011 à 21:48, Lee D. Witt a écrit :
>> Have you tried "alignat"? You specify the number of "columns" to align. If you want to align n columns use 2n-1 &s
>>
> \begin{alignat}{5}
> u      &=0 &&&                       u      &=-4 &&&                       u      &=4 \\
> \log x &=0 &&&                       \log x &=-4 &&&                       \log x &=4
> \end{alignat}
>
> Bruno
>
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
> List Archive: http://tug.org/pipermail/macostex-archives/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/macostex-archives/attachments/20110417/27b8b252/attachment.html>