Mathjax

Sposób podłączenia do strony

<script type="text/x-mathjax-config">
    MathJax.Hub.Config({
      tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}, 
      CommonHTML: { linebreaks: { automatic: true } }, 
      "HTML-CSS": { linebreaks: { automatic: true } }, 
      SVG: { linebreaks: { automatic: true } } 
    })
</script>
<script async 
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>

Przykłady

LatexWynik
§a^2 + b^2 = c^2§$a^2 + b^2 = c^2$
§\sum_{k=1}^{n} k = \frac{n(n+1)}{2}§ $\sum_{k=1}^{n} k = \frac{n(n+1)}{2}$
§\|\sum_{i=1}^n a_i b_i\| \leq \sqrt{\sum_{i=1}^n a_i^2} \sqrt{\sum_{i=1}^n b_i^2}§ $\|\sum_{i=1}^n a_i b_i\| \leq \sqrt{\sum_{i=1}^n a_i^2} \sqrt{\sum_{i=1}^n b_i^2}$
§y = sin(x)§ $y = sin(x)$
§y = \sin(x)§ $y = \sin(x)$

Formatowanie

§§
  \frac{d}{dx} \int\limits_{a}^{x} f(t) dt = f(x)
§§
$$ \frac{d}{dx} \int\limits_{a}^{x} f(t) dt = f(x) $$
$$ \frac{d}{dx} \int\limits_{a}^{x} f(t) dt = f(x) $$