Skip to content
Permalink
Browse files

Use KaTeX instead

  • Loading branch information
jasikpark committed Jan 30, 2020
1 parent fc8826b commit 33af43d7c444d02cc384402f5466c64c8a226299
@@ -49,13 +49,7 @@ The acceleration is \\(\\frac{d^2x}{dt^2} = a_x = -A\\omega^2 cos(\\omega t +
The phase angle, \\(\\phi\\) refers to where in the period that you begin the
curve.

Total mechanical energy is conserved:

$$
\\begin{align*}
E & = \\frac{1}{2}mv_x^2 + \\frac{1}{2}kx^2 \\\\
& = \\frac{1}{2}kA^2 = constant \\\\
\\end{align*}
$$
Total mechanical energy is conserved: \\\( E = \\frac{1}{2}mv_x^2 + \\frac{1}{2}kx^2 = \{\\frac{1}{2}kA^2 = constant\} \\\)



@@ -9,7 +9,7 @@
{{ end }}
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
{{ if .Page.Params.isMath }}
{{ partial "mathjax.html" . }}
{{ partial "katex.html" . }}
{{ end }}
{{ partial "dark-css.html" . }}
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/syntax.css">
@@ -0,0 +1,12 @@
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.css"
integrity="sha384-zB1R0rpPzHqg7Kpt0Aljp8JPLqbXI3bhnPWROx27a9N0Ll6ZP/+DiW/UqRcLbRjq" crossorigin="anonymous">

<!-- The loading of KaTeX is deferred to speed up page rendering -->
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.js"
integrity="sha384-y23I5Q6l+B6vatafAwxRu/0oK/79VlbSz7Q9aiSZUvyWYIYsd+qj+o24G5ZU2zJz"
crossorigin="anonymous"></script>

<!-- To automatically render math in text elements, include the auto-render extension: -->
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/contrib/auto-render.min.js"
integrity="sha384-kWPLUVMOks5AQFrykwIup5lo0m3iMkkHrD0uJ4H5cjeGihAutqP0yW0J6dpFiVkI" crossorigin="anonymous"
onload="renderMathInElement(document.body);"></script>

This file was deleted.

0 comments on commit 33af43d

Please sign in to comment.
You can’t perform that action at this time.