diff options
author | Henk Verlinde <henk@ventizo.com> | 2021-03-16 17:14:45 +0300 |
---|---|---|
committer | Henk Verlinde <henk@ventizo.com> | 2021-03-16 17:14:45 +0300 |
commit | 253b938a2e303a06d07488c6eae79c74442e56d6 (patch) | |
tree | 53dce844ff481f06f2f41b1d9bfb709fa6949e28 /content | |
parent | ee9b8983c41255e14dd35785b8f4260bc426065b (diff) |
feat: add katex math typesetting
Diffstat (limited to 'content')
-rw-r--r-- | content/docs/examples/code.md | 4 | ||||
-rw-r--r-- | content/docs/examples/math.md | 44 |
2 files changed, 46 insertions, 2 deletions
diff --git a/content/docs/examples/code.md b/content/docs/examples/code.md index 0b6efd0..d292a5e 100644 --- a/content/docs/examples/code.md +++ b/content/docs/examples/code.md @@ -1,7 +1,7 @@ --- title: "Code" -description: "Code highlighting examples" -lead: "Code highlighting examples" +description: "Code highlighting examples." +lead: "Code highlighting examples." date: 2021-03-16T08:43:34+01:00 lastmod: 2021-03-16T08:43:34+01:00 draft: false diff --git a/content/docs/examples/math.md b/content/docs/examples/math.md new file mode 100644 index 0000000..d110c27 --- /dev/null +++ b/content/docs/examples/math.md @@ -0,0 +1,44 @@ +--- +title: "Math" +description: "Math typesetting examples." +lead: "Math typesetting examples." +date: 2021-03-16T10:46:05+01:00 +lastmod: 2021-03-16T10:46:05+01:00 +draft: false +images: [] +menu: + docs: + parent: "examples" +weight: 210 +toc: true +--- + +## Example 1 + +_Excerpt taken from [Supernova Neutrinos](https://neutrino.leima.is/book/introduction/supernova-neutrinos/)_ + +### Markdown + +```md +The average energy of the neutrinos $\langle E \rangle$ emitted during a supernova explosion is of the order of 10MeV, and the neutrino luminosity at the early epoch of the explosion is approximately $10^{52}\mathrm{ergs\cdot s^{-1}}$. +Therefore, the number density of the neutrinos at the radius $R$ is + +$$ +\begin{equation*} + n \sim 10^{18} \mathrm{cm^{-3}} \left(\frac{100\mathrm{km}}{R}\right)^2 \left(\frac{10\mathrm{MeV}}{\langle E \rangle}\right). +\end{equation*} +$$ +``` + +### HTML + +The average energy of the neutrinos $\langle E \rangle$ emitted during a supernova explosion is of the order of 10MeV, and the neutrino luminosity at the early epoch of the explosion is approximately $10^{52}\mathrm{ergs\cdot s^{-1}}$. +Therefore, the number density of the neutrinos at the radius $R$ is + +$$ +\begin{equation*} + n \sim 10^{18} \mathrm{cm^{-3}} \left(\frac{100\mathrm{km}}{R}\right)^2 \left(\frac{10\mathrm{MeV}}{\langle E \rangle}\right). +\end{equation*} +$$ + +It turns out that the ambient dense neutrino medium has a significant impact on neutrino oscillations, which has been intensely investigated in the last decade. |