-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmathjax.html
42 lines (39 loc) · 868 Bytes
/
mathjax.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MathJax Example</title>
<!-- Include MathJax -->
<script id="MathJax-script" async
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js">
</script>
<script>
MathJax = {
loader: {load: ['[tex]/color']},
tex: {
inlineMath: [['$', '$'],
['\\(', '\\)']],
packages: {'[+]': ['color']}
},
svg: {
fontCache: 'global'
}
};
</script>
</head>
<body>
<h1>MathJax Example</h1>
<p>
This is an inline math example: \(\textcolor{red}{E = mc^2}\)
</p>
<p>
This is a display math example:
</p>
<p>
$$
\int_{a}^{b} f(x) \,dx
$$
</p>
</body>
</html>