update packages and add valign

This commit is contained in:
2026-04-05 20:00:27 +02:00
parent b062fb98e3
commit 03fb00e374
640 changed files with 109768 additions and 39311 deletions

View File

@@ -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} &amp; = \sigma(y-x) \\
\dot{y} &amp; = \rho x - y - xz \\
@@ -169,38 +171,67 @@
\[L^2(\R) = \set{u : \R \to \R}{\int_\R |u|^2 &lt; +\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>