Slide 1
- This example uses the
bespoke-math-offline-fonts.min.js
version of this plugin - That means that the font-face files from KaTeX are encoded (base64) as a data URI inside the .js file
Slide 2: inline formula
- Source code:
<span class="math">d = \frac{a^2+b^2}{\sqrt(c)}</span>
- Result: d = \frac{a^2+b^2}{\sqrt(c)}
Slide 3: display formula
- Source code:
<div class="math">d = \frac{a^2+b^2}{\sqrt(c)}</div>
- Result:
d = \frac{a^2+b^2}{\sqrt(c)}
Slide 4: Matrices
- Source code:
<div class="math"> R = \begin{bmatrix}x & y & z & w\end{bmatrix}^T </div>
- Result:
R = \begin{bmatrix}x & y & z & w\end{bmatrix}^T