1
0
Fork 0

Testing KaTeX.

This commit is contained in:
Luc Bijl 2024-05-12 12:41:04 +02:00
parent 3c97d5e1cd
commit d370c71d94
3 changed files with 19 additions and 4 deletions

View file

@ -57,9 +57,12 @@ extra_css:
- stylesheets/extra.css - stylesheets/extra.css
extra_javascript: extra_javascript:
- javascripts/mathjax.js - javascripts/katex.js
- https://polyfill.io/v3/polyfill.min.js?features=es6 - https://unpkg.com/katex@0/dist/katex.min.js
- https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js - https://unpkg.com/katex@0/dist/contrib/auto-render.min.js
extra_css:
- https://unpkg.com/katex@0/dist/katex.min.css
nav: nav:
- 'Welcome': index.md - 'Welcome': index.md

View file

@ -0,0 +1,12 @@
document$.subscribe(({ body }) => {
renderMathInElement(body, {
delimiters: [
{ left: "$$", right: "$$", display: true },
{ left: "$", right: "$", display: false },
{ left: "\\(", right: "\\)", display: false },
{ left: "\\[", right: "\\]", display: true }
],
})
})

View file

@ -135,7 +135,7 @@ We have from theorem 2 that the outer product of two tensors yields another tens
## Inner product ## Inner product
> *Definition 5*: a **pseudo inner product** on $V$ is a nondegenerate bilinear mapping $\boldsymbol{g}: V \times V \to \mathbb{K}$ which satisfies > *Definition 5*: a **pseudo inner product** on $V$ is a nondegenerate bilinear mapping $\bm{g}: V \times V \to \mathbb{K}$ which satisfies
> >
> 1. for all $\mathbf{u} \in V \backslash \{\mathbf{0}\} \exists \mathbf{v} \in V: \; \bm{g}(\mathbf{u},\mathbf{v}) \neq 0$, > 1. for all $\mathbf{u} \in V \backslash \{\mathbf{0}\} \exists \mathbf{v} \in V: \; \bm{g}(\mathbf{u},\mathbf{v}) \neq 0$,
> 2. for all $\mathbf{u}, \mathbf{v} \in V: \; \bm{g}(\mathbf{u}, \mathbf{v}) = \overline{\bm{g}}(\mathbf{v}, \mathbf{u})$, > 2. for all $\mathbf{u}, \mathbf{v} \in V: \; \bm{g}(\mathbf{u}, \mathbf{v}) = \overline{\bm{g}}(\mathbf{v}, \mathbf{u})$,