[OS X TeX] Using align with "or"

Lee D. Witt leedwitt at gmail.com
Sun Apr 17 21:48:20 CEST 2011


Have you tried "alignat"? You specify the number of "columns" to align. If
you want to align n columns use 2n-1 &s
On Apr 17, 2011 3:32 PM, "Eric van der Oord" <eric.vanderoord at gmail.com>
wrote:
> Could :
>
> \usepackage{amsmath}
> \[
> \begin{array}{lclcl}
> u=0& \text{or} & u+4=0 & \text{or} & u-4=0 \\
> u=0& & u=-4 & & u=4 \\
> \log x=0& & \log x=-4 & & \log x=4
> \end{array}
> \]
>
> do ?
>
> Eric
>
>
>
> Le 17 avr. 2011 à 20:55, David Arnold a écrit :
>
>> All,
>>
>> I have such a hard time figuring out how to use the align environment (or
alternative) to align the solution of u(u+4)(u-4)=0 and the like.
>>
>> I want the first line to read:
>>
>> u=0 or u+4=0 or u-4=0
>>
>> And the second line to read, that is, I want the "or's" removed.
>>
>> u=0 u=-4 u=4
>>
>> Ensuing lines are:
>>
>> \log x=0 \log x=-4 \log x=4
>>
>> Etc.
>>
>> I can never figure out how many &'s to use and where to put them so that
this will work. Any suggestions?
>>
>> Thanks.
>>
>> D.----------- 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
>>
>
> ----------- 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/537442fe/attachment.html>


More information about the macostex-archives mailing list