Upgrade Reveal.js version?

14 views
Skip to first unread message

Mitch Keller

unread,
Jun 25, 2026, 2:39:36 PMJun 25
to PreTeXt development
In prepping some things for a workshop Oscar and I facilitated this week, I discovered that the version of Reveal.js that PreTeXt uses is pretty old (4.1.2 vs the 6.x series being out). It's also relying on MathJax 2. I tried a bit of hacking with the XSL to use the latest version but did not succeed at getting things working. Before I invest any more time into trying to get an upgrade sorted out, I wanted to post here to see if any anyone is conversant enough in Reveal.js that they could figure out how to upgrade to something more recent, including using MathJax 4?

Rob Beezer

unread,
Jun 26, 2026, 12:29:47 PMJun 26
to prete...@googlegroups.com
> if anyone is conversant

Well, I guess I am. ;-)

I'd think an update to a newer release should be doable, and welcome.

The MathJax support is a bit odd - it is just a shim to get it CDN-style. I had
once hoped that we could make offline slides (since at the time wifi at JMM was
always suspect). We could proably do that now with offline MathJax to make
SVGs, like we do for EPUB, and now XSL-FO. But that is off-topic and hijacking
this thread.

I can't recall if the MathJax version is hardwired into Reveal.js? I'm less
optimistic about that, since I think maybe we would have started with v3?.
Anyway, I can take a look, but it'll need to go onto the stack, so it won't
happen right away.

Rob
> --
> You received this message because you are subscribed to the Google Groups
> "PreTeXt development" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to pretext-dev...@googlegroups.com <mailto:pretext-
> dev+uns...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/pretext-
> dev/6cecf1dd-1444-41c6-ac7d-b240a40726dan%40googlegroups.com <https://
> groups.google.com/d/msgid/pretext-dev/6cecf1dd-1444-41c6-ac7d-
> b240a40726dan%40googlegroups.com?utm_medium=email&utm_source=footer>.

Mitch Keller

unread,
Jun 26, 2026, 12:47:57 PMJun 26
to prete...@googlegroups.com

I can't recall if the MathJax version is hardwired into Reveal.js?  I'm less optimistic about that, since I think maybe we would have started with v3?.

With 6.0, you can choose the math typesetting library in how Reveal.js is configured: https://revealjs.com/math/#typesetting-libraries

Current XSL hardwires in MathJax 2.7.8. Comment suggests that this was based on a recommendation from Reveal.js at the time.

Reveal.js Javascript and CSS are loaded here. In rooting around on the CDN, some of the filenames have changed for 6.0.1, so it’s not quite as simple as changing the value of $reveal-root to point to a newer version.

If I get done with my work on Desmos and descriptions for interactive before you get a chance to look at this and no one else has sorted it out, I can give it a closer look. Thought I’d drop some breadcrumbs of what I tracked down on Wednesday here in case it inspires someone to give it a look before. 

One additional motivation for upgrading to 6.0.1, beyond the MJ upgrade, is that it looks like the print to PDF feature works better in 6.0.1 than it did in 4.1.2. decktape had been the most reliable solution for making PDF slides if you wanted to annotate on a tablet, but it turns out making decktape work inside a devcontainer may be a lot of hassle. Before Oscar and I go down that path, it would be good to see if the print to PDF provided by Reveal.js inside Chrome works better across platforms with 6.0.1.

Anyway, I can take a look, but it'll need to go onto the stack, so it won't happen right away.

Rob




On 6/25/26 11:39, Mitch Keller wrote:
In prepping some things for a workshop Oscar and I facilitated this week, I discovered that the version of Reveal.js that PreTeXt uses is pretty old (4.1.2 vs the 6.x series being out). It's also relying on MathJax 2. I tried a bit of hacking with the XSL to use the latest version but did not succeed at getting things working. Before I invest any more time into trying to get an upgrade sorted out, I wanted to post here to see if any anyone is conversant enough in Reveal.js that they could figure out how to upgrade to something more recent, including using MathJax 4?
--
You received this message because you are subscribed to the Google Groups "PreTeXt development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-dev...@googlegroups.com <mailto:pretext- dev+uns...@googlegroups.com>.
To view this discussion visit https://groups.google.com/d/msgid/pretext- dev/6cecf1dd-1444-41c6-ac7d-b240a40726dan%40googlegroups.com <https:// groups.google.com/d/msgid/pretext-dev/6cecf1dd-1444-41c6-ac7d- b240a40726dan%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
You received this message because you are subscribed to the Google Groups "PreTeXt development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-dev...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pretext-dev/MTAwMDA0My5iZWV6ZXI.1782491383%40pnsh.


Rob Beezer

unread,
Jun 26, 2026, 2:30:16 PMJun 26
to prete...@googlegroups.com
That all sounds good, Mitch. Especially print-to-PDF. Thanks for the rundown
and the breadcrumbs.

Rob

On 6/26/26 09:47, Mitch Keller wrote:
>
>
>> I can't recall if the MathJax version is hardwired into Reveal.js?  I'm less
>> optimistic about that, since I think maybe we would have started with v3?.
>
> With 6.0, you can choose the math typesetting library in how Reveal.js is
> configured: https://revealjs.com/math/#typesetting-libraries <https://
> revealjs.com/math/#typesetting-libraries>
>
> Current XSL hardwires <https://github.com/PreTeXtBook/pretext/
> blob/73e61ec2c3f91468a80a12ce249fa69a734e6d26/xsl/pretext-revealjs.xsl#L219> in
> MathJax 2.7.8. Comment suggests that this was based on a recommendation from
> Reveal.js at the time.
>
> Reveal.js Javascript and CSS are loaded here <https://github.com/PreTeXtBook/
> pretext/blob/73e61ec2c3f91468a80a12ce249fa69a734e6d26/xsl/pretext-
> revealjs.xsl#L132>. In rooting around on the CDN <https://cdnjs.com/libraries/
> reveal.js/6.0.1>, some of the filenames have changed for 6.0.1, so it’s not
> dev/2A9D3F8C-9A71-4B65-80C1-60C59E01A014%40rellek.net <https://
> groups.google.com/d/msgid/pretext-
> dev/2A9D3F8C-9A71-4B65-80C1-60C59E01A014%40rellek.net?
> utm_medium=email&utm_source=footer>.

Rob Beezer

unread,
Jul 10, 2026, 2:55:47 PM (13 hours ago) Jul 10
to prete...@googlegroups.com
Dear Mitch,

Have not forgotten this one. But I have been busy keeping up with my assistant
before fables become more costly Sunday night.

And now we are fully onto MathJax 4, so we can concentrate efforts around that
version.

Rob

On 6/26/26 09:47, Mitch Keller wrote:
>
>
>> I can't recall if the MathJax version is hardwired into Reveal.js?  I'm less
>> optimistic about that, since I think maybe we would have started with v3?.
>
> With 6.0, you can choose the math typesetting library in how Reveal.js is
> blob/73e61ec2c3f91468a80a12ce249fa69a734e6d26/xsl/pretext-revealjs.xsl#L219> in
> MathJax 2.7.8. Comment suggests that this was based on a recommendation from
> Reveal.js at the time.
>
> Reveal.js Javascript and CSS are loaded here <https://github.com/PreTeXtBook/
> pretext/blob/73e61ec2c3f91468a80a12ce249fa69a734e6d26/xsl/pretext-
> revealjs.xsl#L132>. In rooting around on the CDN <https://cdnjs.com/libraries/
> reveal.js/6.0.1>, some of the filenames have changed for 6.0.1, so it’s not
Reply all
Reply to author
Forward
0 new messages