[→ B.7]
There are three types of formulae.
The first is the normal math mode of LaTeX: . Then there are displayed formulae:
\[ \Longrightarrow \quad \left(\sum_{i=1}^d x_i b_i \right) \cdot \left(\sum_{j=1}^d y_j b_j \right) = \sum_{k=1}^d \left( \sum_{i,j} x_i y_j h_{ijk} \right) b_k \]
If possible, use the Alt
element to specify a better readable text version of such a formula as in the following example:
d d d ----- ----- ----- ----- \ \ \ \ ==> ( ) x_i b_i )( ) y_j b_j ) = ) ( ) x_i y_j h_ijk ) b_k / / / / ----- ----- ----- ----- i = 1 j = 1 k = 1 i,j
For small formulae without "difficult" parts use the M
element: , , . Note that here whitespace matters for text (or HTML) output.
Here are two formulae containing less than characters which are special characters for XML: and .
Using the Mode
attribute of a Display
element formulae like
\[a \longrightarrow a \bmod m\prime\]
can also be displayed nicely in text and HTML output.