
1. Re: equation with alignment
Mark Wickert Oct 24, 2012 4:33 PM in response to JungwookEarlier today this question was answered. I too tried to cut and paste. An example that works is:
\begin{aligned}
\prod\big(\frac{t}{\tau}\big)&=u(t+\tau/2)u(t\tau/2)\\
&=\begin{cases}
1, & t\leq \tau \\
0, & \text{otherwise}
\end{cases}\\
\end{aligned}
I also embedded a cases block within this equation.

2. Re: equation with alignment
Jungwook Oct 24, 2012 7:35 PM in response to Mark WickertThanks much Mark!
This perfectly answers my question.

3. Re: equation with alignment
erikneves Oct 29, 2012 7:56 PM in response to Jungwook\aligned seems to convert \int \sum and \prod to their \textstyle versions.
\displaystyle is not doing the trick.
Any ideas on how to get aligned equations in \displaystyle?

4. Re: equation with alignment
Mark Wickert Oct 29, 2012 8:37 PM in response to eriknevesI noticed the textstyle issue shortly after making my last post, and in fact tried to resolve it with \displaystyle. I could not.
I tried a quick MathML experiment with my earlier LaTeX code (using MathType to convert). When pasted into iBooks Author the equation renders as a proper display equation.
Maybe someone else will have an idea of how to do this natively in LaTeX.

5. Re: equation with alignment
Mr.MathType Oct 30, 2012 8:14 AM in response to Mark WickertMark Wickert wrote:
Maybe someone else will have an idea of how to do this natively in LaTeX.
You copied MathML from MathType  did you try copying LaTeX from MathType?
For that matter, in iBooks Author 2.0, all equations are represented internally as MathML, no matter how they begin! If you start with LaTeX, it'll still be MathML in the end. The LaTeX is only retained in the .iba file. Once you publish to an .ibooks file, the LaTeX goes away, and all that remains is MathML.

6. Re: equation with alignment
erikneves Oct 30, 2012 9:52 AM in response to eriknevesIn case you're wondering, I also tried \limits \nolimits \displaylimits to no avail.

7. Re: equation with alignment
Mark Wickert Oct 30, 2012 11:42 AM in response to Mr.MathTypeI at first did try MathType to write the LaTeXcode , but found this does not work. The standard LaTeX conversion in MathType uses \begin{array} \end{array} and the another export method uses \begin{align} \end{align}, which we know does not work.
As a very very long time LaTeX user, do people natively type MathML? LaTeX math typesetting seems much more compact than the MathML code produced by MathType. Should I be learning this or is the answer to make tools like iBooks Author smarter at interpreting legacy languages like LaTeX?

8. Re: equation with alignment
Mr.MathType Oct 30, 2012 12:45 PM in response to Mark WickertMark Wickert wrote:
As a very very long time LaTeX user, do people natively type MathML?
I'd be surprised if very many people do. In fact the MathML spec makes it clear that MathML was never intended to be authored manually.
LaTeX math typesetting seems much more compact than the MathML code produced by MathType. Should I be learning this or is the answer to make tools like iBooks Author smarter at interpreting legacy languages like LaTeX?
LaTeX and MathML were created for different purposes. MathML is an XML application, so follows XML rules WRT structure & use. I think MathType is a reasonable middleman between LaTeX and MathML, but as I mentioned earlier, iBA will do its own conversion to MathML anyway. What may help in iBA is understanding which attributes iBA's MathML implementation can accept (they're listed here), as well as how properties are inherited hierarchically (really no different than other structured languages, which you may already be comfortable with).
One thing I'm still trying to figure out is where in its structure iBA sets the font for MathML. Probably isn't hard to find; I just haven't had time to devote to it yet.