update packages and add valign
This commit is contained in:
@@ -1,31 +1,33 @@
|
||||
<!doctype html>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta charset="utf-8" />
|
||||
|
||||
<title>reveal.js - Math Plugin</title>
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||
<meta
|
||||
name="viewport"
|
||||
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
|
||||
/>
|
||||
|
||||
<link rel="stylesheet" href="../dist/reveal.css">
|
||||
<link rel="stylesheet" href="../dist/theme/night.css" id="theme">
|
||||
<link rel="stylesheet" href="../dist/reveal.css" />
|
||||
<link rel="stylesheet" href="../dist/theme/night.css" id="theme" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="reveal">
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
<div class="slides">
|
||||
|
||||
<section>
|
||||
<h2>reveal.js Math Plugin</h2>
|
||||
<p>Render math with KaTeX, MathJax 2 or MathJax 3</p>
|
||||
<p>Render math with KaTeX, MathJax 2, MathJax 3 or MathJax 4</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h3>The Lorenz Equations</h3>
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
\[\begin{aligned}
|
||||
\dot{x} & = \sigma(y-x) \\
|
||||
\dot{y} & = \rho x - y - xz \\
|
||||
@@ -169,38 +171,67 @@
|
||||
\[L^2(\R) = \set{u : \R \to \R}{\int_\R |u|^2 < +\infty}\]
|
||||
used in functional analysis.
|
||||
</section>
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<script src="../dist/reveal.js"></script>
|
||||
<script src="../plugin/math/math.js"></script>
|
||||
<script src="../dist/plugin/math.js"></script>
|
||||
<script>
|
||||
Reveal.initialize({
|
||||
history: true,
|
||||
transition: 'linear',
|
||||
|
||||
// MathJax2 configuration (commented out)
|
||||
/*
|
||||
mathjax2: {
|
||||
config: 'TeX-AMS_HTML-full',
|
||||
TeX: {
|
||||
Macros: {
|
||||
R: '\\mathbb{R}',
|
||||
set: [ '\\left\\{#1 \\; ; \\; #2\\right\\}', 2 ]
|
||||
set: ['\\left\\{#1 \\; ; \\; #2\\right\\}', 2],
|
||||
},
|
||||
},
|
||||
},
|
||||
*/
|
||||
|
||||
// MathJax4 configuration
|
||||
mathjax4: {
|
||||
tex: {
|
||||
inlineMath: [['$', '$'], ['\\(', '\\)']],
|
||||
displayMath: [['$$', '$$'], ['\\[', '\\]']],
|
||||
macros: {
|
||||
R: '\\mathbb{R}',
|
||||
set: ['\\left\\{#1 \\; ; \\; #2\\right\\}', 2]
|
||||
}
|
||||
},
|
||||
options: {
|
||||
skipHtmlTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code']
|
||||
},
|
||||
output: {
|
||||
font: 'mathjax-stix2',
|
||||
displayOverflow: 'linebreak',
|
||||
linebreaks: { // options for when overflow is linebreak
|
||||
inline: true, // true for browser-based breaking of inline equations
|
||||
width: '100%', // a fixed size or a percentage of the container width
|
||||
lineleading: .2, // the default lineleading in em units
|
||||
LinebreakVisitor: null // The LinebreakVisitor to use
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
// There are three typesetters available
|
||||
// There are four typesetters available
|
||||
// RevealMath.MathJax2 (default)
|
||||
// RevealMath.MathJax3
|
||||
// RevealMath.MathJax4
|
||||
// RevealMath.KaTeX
|
||||
//
|
||||
// This example uses MathJax4 with macros support
|
||||
// More info at https://revealjs.com/math/
|
||||
plugins: [ RevealMath.MathJax2 ]
|
||||
plugins: [ RevealMath.MathJax4 ]
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user