[OS X TeX] multi lines

Ross Moore ross at ics.mq.edu.au
Thu Sep 1 00:55:24 CEST 2005


Hi Alain,


AMS-math already has markup for the concept that you want;
e.g.,

\begin{align*}
\lefteqn{
     \int_a^b \biggl\{ \int_a^b [ f(x)^2 g(y)^2 + f(y)^2 g(x)^2 ]
         -2f(x) g(x) f(y) g(y) \,dx \biggr\} \,dy }
         \\
     &=\int_a^b \biggl\{ g(y)^2 \int_a^b f^2 + f(y)^2
         \int_a^b g^2 - 2f(y) g(y) \int_a^b fg \biggr\} \,dy \\
     &=\int_a^b \biggl\{ g(y)^2 \int_a^b f^2 + f(y)^2
         \int_a^b g^2 - 2f(y) g(y) \int_a^b fg \biggr\} \,dy\\
\end{align*}

To indent with more space, use a 2nd &  as follows:

\begin{align*}
\lefteqn{
     \int_a^b \biggl\{ \int_a^b [ f(x)^2 g(y)^2 + f(y)^2 g(x)^2 ]
         -2f(x) g(x) f(y) g(y) \,dx \biggr\} \,dy }
         \\
     &\qquad &=\int_a^b \biggl\{ g(y)^2 \int_a^b f^2 + f(y)^2
         \int_a^b g^2 - 2f(y) g(y) \int_a^b fg \biggr\} \,dy \\
     & &=\int_a^b \biggl\{ g(y)^2 \int_a^b f^2 + f(y)^2
         \int_a^b g^2 - 2f(y) g(y) \int_a^b fg \biggr\} \,dy\\
\end{align*}


On 01/09/2005, at 6:07 AM, Alain Schremmer wrote:

> Maarten Sneep wrote:
>
>
>> \begin{equation*}
>> \begin{split}
>>     \int_a^b \biggl\{ \int_a^b &[ f(x)^2 g(y)^2 + f(y)^2 g(x)^2 ]
>>         -2f(x) g(x) f(y) g(y) \,dx \biggr\} \,dy \\
>>     &=\int_a^b \biggl\{ g(y)^2 \int_a^b f^2 + f(y)^2
>>         \int_a^b g^2 - 2f(y) g(y) \int_a^b fg \biggr\} \,dy \\
>>     &=\int_a^b \biggl\{ g(y)^2 \int_a^b f^2 + f(y)^2
>>         \int_a^b g^2 - 2f(y) g(y) \int_a^b fg \biggr\} \,dy
>> \end{split}
>> \end{equation*}
>
>
>> Note the extra ampersand I plunked in the middle (well the start)  
>> of  the first line.
>>

While this works, it is inelegant to split the first expression this  
way.
You will not like the result produced by LaTeX2HTML (say), which likes
to work with complete expressions.

>
> It does make all the difference and I sure would never have thought  
> of it. But why didn't my hspaces work the way Font's did?
>
> Most grateful regards to all who felt for my woe.

Hope this helps,

     Ross Moore


> --schremmer
>
>
> --------------------- Info ---------------------
> Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
>           & FAQ: http://latex.yauh.de/faq/
> TeX FAQ: http://www.tex.ac.uk/faq
> List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
>
>
>

------------------------------------------------------------------------
Ross Moore                                         ross at maths.mq.edu.au
Mathematics Department                             office: E7A-419
Macquarie University                               tel: +61 +2 9850 8955
Sydney, Australia  2109                            fax: +61 +2 9850 8114
------------------------------------------------------------------------


--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
           & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>





More information about the macostex-archives mailing list