Public
Edited
Apr 20, 2020
1 fork
5 stars
Insert cell
Insert cell
MathJax = {
const MathJax = await require('mathjax@2.7.5/MathJax.js?config=TeX-AMS_CHTML')
.catch(() => window.MathJax)
// configure MathJax
MathJax.Hub.Config({
tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]},
displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
processEscapes: true
})
MathJax.Hub.Queue(["Typeset",MathJax.Hub,viewof example])
return MathJax
}
Insert cell
viewof example = html`
<div style="padding-top: 2em; padding-bottom: 2em">
As you may see, $$\\Gamma(z) = \\int_0^\\infty t^{z-1}e^{-t}dt\\,.$$

KaTeX:

${tex`\displaystyle\Gamma(z) = \int_0^\infty t^{z-1}e^{-t}dt\,.`}
</div>`
Insert cell
html`Do you also know that $x = \\frac{-b \\pm \\sqrt{b^2 - 4ac}}{2a}$?`

Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more