diff --git a/.eslintignore b/.eslintignore index e9d09b5..57d0057 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,3 +1,4 @@ assets/js/index.js +assets/js/katex.js assets/js/vendor node_modules \ No newline at end of file diff --git a/assets/js/katex.js b/assets/js/katex.js new file mode 100644 index 0000000..e0543ea --- /dev/null +++ b/assets/js/katex.js @@ -0,0 +1,10 @@ +document.addEventListener('DOMContentLoaded', function() { + renderMathInElement(document.body, { + delimiters: [ + {left: '$$', right: '$$', display: true}, + {left: '$', right: '$', display: false}, + {left: '\\(', right: '\\)', display: false}, + {left: '\\[', right: '\\]', display: true}, + ], + }); +}); diff --git a/assets/scss/app.scss b/assets/scss/app.scss index ac2ec11..29a22a5 100644 --- a/assets/scss/app.scss +++ b/assets/scss/app.scss @@ -10,6 +10,9 @@ /** Import highlight.js */ // @import "highlight.js/scss/dracula"; +/** Import KaTeX */ +@import "katex/dist/katex"; + /** Import theme styles */ @import "common/fonts"; @import "common/global"; diff --git a/assets/scss/common/_global.scss b/assets/scss/common/_global.scss index 5c03ebb..4fa3c0e 100644 --- a/assets/scss/common/_global.scss +++ b/assets/scss/common/_global.scss @@ -223,3 +223,7 @@ body { -webkit-text-fill-color: transparent; -moz-text-fill-color: transparent; } + +.katex { + font-size: $font-size-md; +} diff --git a/config/_default/config.toml b/config/_default/config.toml index 4661868..3277bb0 100644 --- a/config/_default/config.toml +++ b/config/_default/config.toml @@ -85,3 +85,6 @@ rel = "sitemap" [[module.mounts]] source = "node_modules/flexsearch" target = "assets/js/vendor/flexsearch" + [[module.mounts]] + source = "node_modules/katex" + target = "assets/js/vendor/katex" diff --git a/config/_default/params.toml b/config/_default/params.toml index 6df21b5..9edf410 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -55,3 +55,4 @@ editPage = false bootStrapJs = false breadCrumb = false highLight = true + kaTex = true diff --git a/config/postcss.config.js b/config/postcss.config.js index 37d8a90..fe317a6 100644 --- a/config/postcss.config.js +++ b/config/postcss.config.js @@ -23,6 +23,7 @@ module.exports = { './assets/scss/components/_code.scss', './assets/scss/components/_search.scss', './assets/scss/common/_dark.scss', + './node_modules/katex/dist/katex.css' ]), ], }), 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. diff --git a/layouts/partials/footer/script-footer.html b/layouts/partials/footer/script-footer.html index 380c6a0..5f83c4a 100644 --- a/layouts/partials/footer/script-footer.html +++ b/layouts/partials/footer/script-footer.html @@ -7,6 +7,9 @@ {{ $highlight := resources.Get "js/highlight.js" -}} {{ $highlight := $highlight | js.Build -}} +{{ $katex := resources.Get "js/vendor/katex/dist/katex.js" -}} +{{ $katexAutoRender := resources.Get "js/vendor/katex/dist/contrib/auto-render.js" -}} + {{ $app := resources.Get "js/app.js" -}} {{ $slice := slice $app -}} @@ -40,6 +43,12 @@ {{ $slice = $slice | append $darkMode -}} {{ end -}} +{{ if .Site.Params.options.kaTex -}} + {{ $katexConfig := resources.Get "js/katex.js" -}} + {{ $katexConfig := $katexConfig | js.Build -}} + {{ $slice = $slice | append $katexConfig -}} +{{ end -}} + {{ $js := $slice | resources.Concat "main.js" -}} {{ if eq (hugo.Environment) "development" -}} @@ -50,6 +59,10 @@ {{ if .Site.Params.options.highLight -}} {{ end -}} + {{ if .Site.Params.options.kaTex -}} + + + {{ end -}} {{ if .Site.Params.options.flexSearch -}} {{ end -}} @@ -58,12 +71,18 @@ {{ $index := $index | minify | fingerprint "sha512" -}} {{ $bs := $bs | minify | fingerprint "sha512" -}} {{ $highlight := $highlight | minify | fingerprint "sha512" -}} + {{ $katex := $katex | minify | fingerprint "sha512" -}} + {{ $katexAutoRender := $katexAutoRender | minify | fingerprint "sha512" -}} {{ if .Site.Params.options.bootStrapJs -}} {{ end -}} {{ if .Site.Params.options.highLight -}} - + + {{ end -}} + {{ if .Site.Params.options.kaTex -}} + + {{ end -}} {{ if .Site.Params.options.flexSearch -}} diff --git a/package-lock.json b/package-lock.json index 0163367..ca21358 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,6 +20,7 @@ "highlight.js": "^10.6.0", "hugo-bin": "^0.69", "instant.page": "^5.1", + "katex": "^0.13.0", "lazysizes": "^5.3", "markdownlint-cli": "^0.27", "netlify-lambda": "^2.0", @@ -27,6 +28,7 @@ "postcss-cli": "^8.3", "purgecss-whitelister": "^2.4", "rimraf": "^3.0", + "shx": "^0.3.3", "standard-version": "^9.1", "stylelint": "^13.12", "stylelint-config-standard": "^21.0" @@ -7531,6 +7533,27 @@ "integrity": "sha512-UfpWE/VZn0iP50d8cz9NrZLM9lSWhcJ+0Gt/nm4by88UL+J1SiKN8/5dkjMmbEzwL2CAe+67GsegCbIKtbp75A==", "dev": true }, + "node_modules/katex": { + "version": "0.13.0", + "resolved": "https://registry.npmjs.org/katex/-/katex-0.13.0.tgz", + "integrity": "sha512-6cHbzbegYgS9vvVGuH8UA+o97X+ZshtboSqJJCdq7trBYzuD75JNwr7Ef606xkUjecPPhFnyB+afx1dVafielg==", + "dev": true, + "dependencies": { + "commander": "^6.0.0" + }, + "bin": { + "katex": "cli.js" + } + }, + "node_modules/katex/node_modules/commander": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-6.2.1.tgz", + "integrity": "sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, "node_modules/keyv": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/keyv/-/keyv-3.0.0.tgz", @@ -11237,6 +11260,22 @@ "node": ">=4" } }, + "node_modules/shx": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/shx/-/shx-0.3.3.tgz", + "integrity": "sha512-nZJ3HFWVoTSyyB+evEKjJ1STiixGztlqwKLTUNV5KqMWtGey9fTd4KU1gdZ1X9BV6215pswQ/Jew9NsuS/fNDA==", + "dev": true, + "dependencies": { + "minimist": "^1.2.3", + "shelljs": "^0.8.4" + }, + "bin": { + "shx": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, "node_modules/signal-exit": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz", @@ -20085,6 +20124,23 @@ "integrity": "sha512-UfpWE/VZn0iP50d8cz9NrZLM9lSWhcJ+0Gt/nm4by88UL+J1SiKN8/5dkjMmbEzwL2CAe+67GsegCbIKtbp75A==", "dev": true }, + "katex": { + "version": "0.13.0", + "resolved": "https://registry.npmjs.org/katex/-/katex-0.13.0.tgz", + "integrity": "sha512-6cHbzbegYgS9vvVGuH8UA+o97X+ZshtboSqJJCdq7trBYzuD75JNwr7Ef606xkUjecPPhFnyB+afx1dVafielg==", + "dev": true, + "requires": { + "commander": "^6.0.0" + }, + "dependencies": { + "commander": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-6.2.1.tgz", + "integrity": "sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA==", + "dev": true + } + } + }, "keyv": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/keyv/-/keyv-3.0.0.tgz", @@ -23005,6 +23061,16 @@ "rechoir": "^0.6.2" } }, + "shx": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/shx/-/shx-0.3.3.tgz", + "integrity": "sha512-nZJ3HFWVoTSyyB+evEKjJ1STiixGztlqwKLTUNV5KqMWtGey9fTd4KU1gdZ1X9BV6215pswQ/Jew9NsuS/fNDA==", + "dev": true, + "requires": { + "minimist": "^1.2.3", + "shelljs": "^0.8.4" + } + }, "signal-exit": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz", diff --git a/package.json b/package.json index dad207c..02f7c89 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,8 @@ "test": "npm run -s lint", "env": "env", "precheck": "npm version", - "check": "hugo version" + "check": "hugo version", + "copy:katex-fonts": "shx cp ./node_modules/katex/dist/fonts/* ./static/fonts/" }, "devDependencies": { "@babel/cli": "^7.13", @@ -43,6 +44,7 @@ "highlight.js": "^10.6.0", "hugo-bin": "^0.69", "instant.page": "^5.1", + "katex": "^0.13.0", "lazysizes": "^5.3", "markdownlint-cli": "^0.27", "netlify-lambda": "^2.0", @@ -50,6 +52,7 @@ "postcss-cli": "^8.3", "purgecss-whitelister": "^2.4", "rimraf": "^3.0", + "shx": "^0.3.3", "standard-version": "^9.1", "stylelint": "^13.12", "stylelint-config-standard": "^21.0" diff --git a/static/fonts/KaTeX_AMS-Regular.ttf b/static/fonts/KaTeX_AMS-Regular.ttf new file mode 100644 index 0000000..737cf8e Binary files /dev/null and b/static/fonts/KaTeX_AMS-Regular.ttf differ diff --git a/static/fonts/KaTeX_AMS-Regular.woff b/static/fonts/KaTeX_AMS-Regular.woff new file mode 100644 index 0000000..38378bf Binary files /dev/null and b/static/fonts/KaTeX_AMS-Regular.woff differ diff --git a/static/fonts/KaTeX_AMS-Regular.woff2 b/static/fonts/KaTeX_AMS-Regular.woff2 new file mode 100644 index 0000000..a4d1ba6 Binary files /dev/null and b/static/fonts/KaTeX_AMS-Regular.woff2 differ diff --git a/static/fonts/KaTeX_Caligraphic-Bold.ttf b/static/fonts/KaTeX_Caligraphic-Bold.ttf new file mode 100644 index 0000000..04d28ab Binary files /dev/null and b/static/fonts/KaTeX_Caligraphic-Bold.ttf differ diff --git a/static/fonts/KaTeX_Caligraphic-Bold.woff b/static/fonts/KaTeX_Caligraphic-Bold.woff new file mode 100644 index 0000000..a01ce90 Binary files /dev/null and b/static/fonts/KaTeX_Caligraphic-Bold.woff differ diff --git a/static/fonts/KaTeX_Caligraphic-Bold.woff2 b/static/fonts/KaTeX_Caligraphic-Bold.woff2 new file mode 100644 index 0000000..3792727 Binary files /dev/null and b/static/fonts/KaTeX_Caligraphic-Bold.woff2 differ diff --git a/static/fonts/KaTeX_Caligraphic-Regular.ttf b/static/fonts/KaTeX_Caligraphic-Regular.ttf new file mode 100644 index 0000000..b2ce555 Binary files /dev/null and b/static/fonts/KaTeX_Caligraphic-Regular.ttf differ diff --git a/static/fonts/KaTeX_Caligraphic-Regular.woff b/static/fonts/KaTeX_Caligraphic-Regular.woff new file mode 100644 index 0000000..bc169b7 Binary files /dev/null and b/static/fonts/KaTeX_Caligraphic-Regular.woff differ diff --git a/static/fonts/KaTeX_Caligraphic-Regular.woff2 b/static/fonts/KaTeX_Caligraphic-Regular.woff2 new file mode 100644 index 0000000..f1e38bb Binary files /dev/null and b/static/fonts/KaTeX_Caligraphic-Regular.woff2 differ diff --git a/static/fonts/KaTeX_Fraktur-Bold.ttf b/static/fonts/KaTeX_Fraktur-Bold.ttf new file mode 100644 index 0000000..c42d169 Binary files /dev/null and b/static/fonts/KaTeX_Fraktur-Bold.ttf differ diff --git a/static/fonts/KaTeX_Fraktur-Bold.woff b/static/fonts/KaTeX_Fraktur-Bold.woff new file mode 100644 index 0000000..f30b54b Binary files /dev/null and b/static/fonts/KaTeX_Fraktur-Bold.woff differ diff --git a/static/fonts/KaTeX_Fraktur-Bold.woff2 b/static/fonts/KaTeX_Fraktur-Bold.woff2 new file mode 100644 index 0000000..b7a8359 Binary files /dev/null and b/static/fonts/KaTeX_Fraktur-Bold.woff2 differ diff --git a/static/fonts/KaTeX_Fraktur-Regular.ttf b/static/fonts/KaTeX_Fraktur-Regular.ttf new file mode 100644 index 0000000..4133228 Binary files /dev/null and b/static/fonts/KaTeX_Fraktur-Regular.ttf differ diff --git a/static/fonts/KaTeX_Fraktur-Regular.woff b/static/fonts/KaTeX_Fraktur-Regular.woff new file mode 100644 index 0000000..5af51de Binary files /dev/null and b/static/fonts/KaTeX_Fraktur-Regular.woff differ diff --git a/static/fonts/KaTeX_Fraktur-Regular.woff2 b/static/fonts/KaTeX_Fraktur-Regular.woff2 new file mode 100644 index 0000000..3874f93 Binary files /dev/null and b/static/fonts/KaTeX_Fraktur-Regular.woff2 differ diff --git a/static/fonts/KaTeX_Main-Bold.ttf b/static/fonts/KaTeX_Main-Bold.ttf new file mode 100644 index 0000000..14390e0 Binary files /dev/null and b/static/fonts/KaTeX_Main-Bold.ttf differ diff --git a/static/fonts/KaTeX_Main-Bold.woff b/static/fonts/KaTeX_Main-Bold.woff new file mode 100644 index 0000000..33b4199 Binary files /dev/null and b/static/fonts/KaTeX_Main-Bold.woff differ diff --git a/static/fonts/KaTeX_Main-Bold.woff2 b/static/fonts/KaTeX_Main-Bold.woff2 new file mode 100644 index 0000000..f9b71cb Binary files /dev/null and b/static/fonts/KaTeX_Main-Bold.woff2 differ diff --git a/static/fonts/KaTeX_Main-BoldItalic.ttf b/static/fonts/KaTeX_Main-BoldItalic.ttf new file mode 100644 index 0000000..ad0761f Binary files /dev/null and b/static/fonts/KaTeX_Main-BoldItalic.ttf differ diff --git a/static/fonts/KaTeX_Main-BoldItalic.woff b/static/fonts/KaTeX_Main-BoldItalic.woff new file mode 100644 index 0000000..115af4f Binary files /dev/null and b/static/fonts/KaTeX_Main-BoldItalic.woff differ diff --git a/static/fonts/KaTeX_Main-BoldItalic.woff2 b/static/fonts/KaTeX_Main-BoldItalic.woff2 new file mode 100644 index 0000000..5c500c2 Binary files /dev/null and b/static/fonts/KaTeX_Main-BoldItalic.woff2 differ diff --git a/static/fonts/KaTeX_Main-Italic.ttf b/static/fonts/KaTeX_Main-Italic.ttf new file mode 100644 index 0000000..fc8625c Binary files /dev/null and b/static/fonts/KaTeX_Main-Italic.ttf differ diff --git a/static/fonts/KaTeX_Main-Italic.woff b/static/fonts/KaTeX_Main-Italic.woff new file mode 100644 index 0000000..2d3087a Binary files /dev/null and b/static/fonts/KaTeX_Main-Italic.woff differ diff --git a/static/fonts/KaTeX_Main-Italic.woff2 b/static/fonts/KaTeX_Main-Italic.woff2 new file mode 100644 index 0000000..08510d8 Binary files /dev/null and b/static/fonts/KaTeX_Main-Italic.woff2 differ diff --git a/static/fonts/KaTeX_Main-Regular.ttf b/static/fonts/KaTeX_Main-Regular.ttf new file mode 100644 index 0000000..5115a04 Binary files /dev/null and b/static/fonts/KaTeX_Main-Regular.ttf differ diff --git a/static/fonts/KaTeX_Main-Regular.woff b/static/fonts/KaTeX_Main-Regular.woff new file mode 100644 index 0000000..42b74ab Binary files /dev/null and b/static/fonts/KaTeX_Main-Regular.woff differ diff --git a/static/fonts/KaTeX_Main-Regular.woff2 b/static/fonts/KaTeX_Main-Regular.woff2 new file mode 100644 index 0000000..18647fa Binary files /dev/null and b/static/fonts/KaTeX_Main-Regular.woff2 differ diff --git a/static/fonts/KaTeX_Math-BoldItalic.ttf b/static/fonts/KaTeX_Math-BoldItalic.ttf new file mode 100644 index 0000000..326b523 Binary files /dev/null and b/static/fonts/KaTeX_Math-BoldItalic.ttf differ diff --git a/static/fonts/KaTeX_Math-BoldItalic.woff b/static/fonts/KaTeX_Math-BoldItalic.woff new file mode 100644 index 0000000..5b4041a Binary files /dev/null and b/static/fonts/KaTeX_Math-BoldItalic.woff differ diff --git a/static/fonts/KaTeX_Math-BoldItalic.woff2 b/static/fonts/KaTeX_Math-BoldItalic.woff2 new file mode 100644 index 0000000..ba55276 Binary files /dev/null and b/static/fonts/KaTeX_Math-BoldItalic.woff2 differ diff --git a/static/fonts/KaTeX_Math-Italic.ttf b/static/fonts/KaTeX_Math-Italic.ttf new file mode 100644 index 0000000..f148fce Binary files /dev/null and b/static/fonts/KaTeX_Math-Italic.ttf differ diff --git a/static/fonts/KaTeX_Math-Italic.woff b/static/fonts/KaTeX_Math-Italic.woff new file mode 100644 index 0000000..31d0038 Binary files /dev/null and b/static/fonts/KaTeX_Math-Italic.woff differ diff --git a/static/fonts/KaTeX_Math-Italic.woff2 b/static/fonts/KaTeX_Math-Italic.woff2 new file mode 100644 index 0000000..9871ab6 Binary files /dev/null and b/static/fonts/KaTeX_Math-Italic.woff2 differ diff --git a/static/fonts/KaTeX_SansSerif-Bold.ttf b/static/fonts/KaTeX_SansSerif-Bold.ttf new file mode 100644 index 0000000..dce35c8 Binary files /dev/null and b/static/fonts/KaTeX_SansSerif-Bold.ttf differ diff --git a/static/fonts/KaTeX_SansSerif-Bold.woff b/static/fonts/KaTeX_SansSerif-Bold.woff new file mode 100644 index 0000000..992cb3d Binary files /dev/null and b/static/fonts/KaTeX_SansSerif-Bold.woff differ diff --git a/static/fonts/KaTeX_SansSerif-Bold.woff2 b/static/fonts/KaTeX_SansSerif-Bold.woff2 new file mode 100644 index 0000000..6dd1038 Binary files /dev/null and b/static/fonts/KaTeX_SansSerif-Bold.woff2 differ diff --git a/static/fonts/KaTeX_SansSerif-Italic.ttf b/static/fonts/KaTeX_SansSerif-Italic.ttf new file mode 100644 index 0000000..a3eb86c Binary files /dev/null and b/static/fonts/KaTeX_SansSerif-Italic.ttf differ diff --git a/static/fonts/KaTeX_SansSerif-Italic.woff b/static/fonts/KaTeX_SansSerif-Italic.woff new file mode 100644 index 0000000..f4fa252 Binary files /dev/null and b/static/fonts/KaTeX_SansSerif-Italic.woff differ diff --git a/static/fonts/KaTeX_SansSerif-Italic.woff2 b/static/fonts/KaTeX_SansSerif-Italic.woff2 new file mode 100644 index 0000000..9f2501a Binary files /dev/null and b/static/fonts/KaTeX_SansSerif-Italic.woff2 differ diff --git a/static/fonts/KaTeX_SansSerif-Regular.ttf b/static/fonts/KaTeX_SansSerif-Regular.ttf new file mode 100644 index 0000000..3be73ce Binary files /dev/null and b/static/fonts/KaTeX_SansSerif-Regular.ttf differ diff --git a/static/fonts/KaTeX_SansSerif-Regular.woff b/static/fonts/KaTeX_SansSerif-Regular.woff new file mode 100644 index 0000000..ec283f4 Binary files /dev/null and b/static/fonts/KaTeX_SansSerif-Regular.woff differ diff --git a/static/fonts/KaTeX_SansSerif-Regular.woff2 b/static/fonts/KaTeX_SansSerif-Regular.woff2 new file mode 100644 index 0000000..e46094f Binary files /dev/null and b/static/fonts/KaTeX_SansSerif-Regular.woff2 differ diff --git a/static/fonts/KaTeX_Script-Regular.ttf b/static/fonts/KaTeX_Script-Regular.ttf new file mode 100644 index 0000000..40c8a99 Binary files /dev/null and b/static/fonts/KaTeX_Script-Regular.ttf differ diff --git a/static/fonts/KaTeX_Script-Regular.woff b/static/fonts/KaTeX_Script-Regular.woff new file mode 100644 index 0000000..4eafae7 Binary files /dev/null and b/static/fonts/KaTeX_Script-Regular.woff differ diff --git a/static/fonts/KaTeX_Script-Regular.woff2 b/static/fonts/KaTeX_Script-Regular.woff2 new file mode 100644 index 0000000..69b1754 Binary files /dev/null and b/static/fonts/KaTeX_Script-Regular.woff2 differ diff --git a/static/fonts/KaTeX_Size1-Regular.ttf b/static/fonts/KaTeX_Size1-Regular.ttf new file mode 100644 index 0000000..f0aff83 Binary files /dev/null and b/static/fonts/KaTeX_Size1-Regular.ttf differ diff --git a/static/fonts/KaTeX_Size1-Regular.woff b/static/fonts/KaTeX_Size1-Regular.woff new file mode 100644 index 0000000..0358ee4 Binary files /dev/null and b/static/fonts/KaTeX_Size1-Regular.woff differ diff --git a/static/fonts/KaTeX_Size1-Regular.woff2 b/static/fonts/KaTeX_Size1-Regular.woff2 new file mode 100644 index 0000000..f951ed0 Binary files /dev/null and b/static/fonts/KaTeX_Size1-Regular.woff2 differ diff --git a/static/fonts/KaTeX_Size2-Regular.ttf b/static/fonts/KaTeX_Size2-Regular.ttf new file mode 100644 index 0000000..4f72f16 Binary files /dev/null and b/static/fonts/KaTeX_Size2-Regular.ttf differ diff --git a/static/fonts/KaTeX_Size2-Regular.woff b/static/fonts/KaTeX_Size2-Regular.woff new file mode 100644 index 0000000..8a053d2 Binary files /dev/null and b/static/fonts/KaTeX_Size2-Regular.woff differ diff --git a/static/fonts/KaTeX_Size2-Regular.woff2 b/static/fonts/KaTeX_Size2-Regular.woff2 new file mode 100644 index 0000000..181d962 Binary files /dev/null and b/static/fonts/KaTeX_Size2-Regular.woff2 differ diff --git a/static/fonts/KaTeX_Size3-Regular.ttf b/static/fonts/KaTeX_Size3-Regular.ttf new file mode 100644 index 0000000..56d2dc6 Binary files /dev/null and b/static/fonts/KaTeX_Size3-Regular.ttf differ diff --git a/static/fonts/KaTeX_Size3-Regular.woff b/static/fonts/KaTeX_Size3-Regular.woff new file mode 100644 index 0000000..0ec99ad Binary files /dev/null and b/static/fonts/KaTeX_Size3-Regular.woff differ diff --git a/static/fonts/KaTeX_Size3-Regular.woff2 b/static/fonts/KaTeX_Size3-Regular.woff2 new file mode 100644 index 0000000..c2985cd Binary files /dev/null and b/static/fonts/KaTeX_Size3-Regular.woff2 differ diff --git a/static/fonts/KaTeX_Size4-Regular.ttf b/static/fonts/KaTeX_Size4-Regular.ttf new file mode 100644 index 0000000..baf0209 Binary files /dev/null and b/static/fonts/KaTeX_Size4-Regular.ttf differ diff --git a/static/fonts/KaTeX_Size4-Regular.woff b/static/fonts/KaTeX_Size4-Regular.woff new file mode 100644 index 0000000..ff67319 Binary files /dev/null and b/static/fonts/KaTeX_Size4-Regular.woff differ diff --git a/static/fonts/KaTeX_Size4-Regular.woff2 b/static/fonts/KaTeX_Size4-Regular.woff2 new file mode 100644 index 0000000..a4e810d Binary files /dev/null and b/static/fonts/KaTeX_Size4-Regular.woff2 differ diff --git a/static/fonts/KaTeX_Typewriter-Regular.ttf b/static/fonts/KaTeX_Typewriter-Regular.ttf new file mode 100644 index 0000000..e66c218 Binary files /dev/null and b/static/fonts/KaTeX_Typewriter-Regular.ttf differ diff --git a/static/fonts/KaTeX_Typewriter-Regular.woff b/static/fonts/KaTeX_Typewriter-Regular.woff new file mode 100644 index 0000000..c66d149 Binary files /dev/null and b/static/fonts/KaTeX_Typewriter-Regular.woff differ diff --git a/static/fonts/KaTeX_Typewriter-Regular.woff2 b/static/fonts/KaTeX_Typewriter-Regular.woff2 new file mode 100644 index 0000000..e5bf2ce Binary files /dev/null and b/static/fonts/KaTeX_Typewriter-Regular.woff2 differ