The MathJax JavaScript library contains a command that lets you create LaTeX slideshows, namely the \toggle
command.
I would find it incredibly useful to produce the same effect in a PDF file, most prominently to consecutively draw complicated commutative diagrams. Hence, my questions:
- Can modern PDF documents contain slideshow elements of some kind?
- If so, is there a LaTeX package that allows me to create this effect in a PDF document?
Edit: By popular request, here's an example:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Toggle Math</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Toggle Math">
<meta name="author" content="Jesko">
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [['$', '$' ]],
displayMath: [['\\[','\\]'], ['$$','$$']],
processEscapes: true
},
TeX: {
equationNumbers: { autoNumber: "AMS" },
extensions: ["AMSmath.js", "AMSsymbols.js","action.js" ]
}
});
</script>
<script type="text/javascript"
src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
</head>
<body>
<script type="math/tex">
\toggle{x=1}{x=2}{x=3}\endtoggle
</script>
</body>
</html>
Just put that in a .html file and check it out.
beamer
orpowerdot
: see Which package to use for presentations ? Beamer, Prosper, or Other. Inbeamer
what you describe is called an 'overlay action', and generates one PDF page per 'effect'.beamer
, but that's not what I am looking for. In particular, 'change page' is not really a solution =/.