diff --git a/.eslintignore b/.eslintignore index e9d09b54b..57d005799 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 000000000..e0543eafe --- /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 ac2ec1171..29a22a517 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 5c03ebb18..4fa3c0ed1 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 466186823..3277bb079 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 6df21b546..9edf410e4 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 37d8a90cf..fe317a664 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 0b6efd01b..d292a5ecd 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 000000000..d110c2711 --- /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 380c6a0ba..5f83c4a46 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 0163367b7..ca213586e 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 dad207cba..02f7c89dd 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 000000000..737cf8eb5 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 000000000..38378bfba 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 000000000..a4d1ba641 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 000000000..04d28abd9 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 000000000..a01ce9060 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 000000000..37927274a 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 000000000..b2ce555fd 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 000000000..bc169b7cd 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 000000000..f1e38bba2 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 000000000..c42d16916 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 000000000..f30b54b3d 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 000000000..b7a83593a 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 000000000..413322824 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 000000000..5af51de9e 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 000000000..3874f93e8 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 000000000..14390e012 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 000000000..33b41998e 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 000000000..f9b71cbe7 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 000000000..ad0761f43 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 000000000..115af4f07 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 000000000..5c500c285 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 000000000..fc8625c81 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 000000000..2d3087ab4 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 000000000..08510d85a 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 000000000..5115a044e 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 000000000..42b74ab13 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 000000000..18647fa6a 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 000000000..326b523bd 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 000000000..5b4041aa8 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 000000000..ba55276d0 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 000000000..f148fceeb 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 000000000..31d003849 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 000000000..9871ab6b8 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 000000000..dce35c8fd 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 000000000..992cb3d6d 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 000000000..6dd10388a 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 000000000..a3eb86c38 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 000000000..f4fa252a2 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 000000000..9f2501a3a 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 000000000..3be73ce17 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 000000000..ec283f418 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 000000000..e46094fba 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 000000000..40c8a997a 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 000000000..4eafae758 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 000000000..69b1754d7 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 000000000..f0aff83ef 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 000000000..0358ee4a3 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 000000000..f951ed016 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 000000000..4f72f1679 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 000000000..8a053d23a 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 000000000..181d9625a 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 000000000..56d2dc6c5 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 000000000..0ec99ad1a 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 000000000..c2985cd38 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 000000000..baf02091a 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 000000000..ff6731972 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 000000000..a4e810da5 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 000000000..e66c218df 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 000000000..c66d149d5 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 000000000..e5bf2ce1f Binary files /dev/null and b/static/fonts/KaTeX_Typewriter-Regular.woff2 differ