Skip to main content

An EPUB Sampler

Chapter 3 A Bit of Math \(y=mx+b\)

This paragraph has some inline math, a Diophantine equation, \(x^2 + \doubler{y^2} = z^2\text{.}\) And some display math about infinite series:
\begin{equation} \sum_{n=1}^\infty\,\frac{1}{n^2} = \frac{\pi^2}{6}.\tag{3.0.1} \end{equation}
Look at the XML source to see how macros are employed.
And a bit of multi-line display math:
\begin{align} \frac{d}{dx}\definiteintegral{a}{x}{f(t)}{t}&=\frac{d}{dx}\left(F(x)-F(a)\right)\tag{3.0.2}\\ &=\frac{d}{dx}F(x)-\frac{d}{dx}F(a)\notag\\ &=f(x)-0 = f(x)\text{.}\tag{3.0.3} \end{align}
And multi-line math with an embedded cross-reference to a figure:
\begin{align*} x^2 + y^2 &= z^2&&\knowl{./knowl/xref/complete-graph.html}{\text{Figure 4.1.3}}\\ a^2 + b^2 &= c^2&& \end{align*}
Nice.