Zulip Chat Archive

Stream: general

Topic: Verso math mode not working


Niels Voss (Apr 05 2025 at 08:09):

I was fiddling around with Verso by getting it to generate a simple website. One page is generated with the following:

import VersoBlog
open Verso Genre Blog

#doc (Page) "A Test Site" =>

This is a test page
$$x^2 = y^2$$

but this shows up as
image.png
Single dollar signs have a similar problem. How can I get math mode to be displayed properly?

I downloaded the Verso documentation as a html bundle, and it says this about math mode:
image.png
so presumably the Verso manual itself has the same problem.

Niels Voss (Apr 05 2025 at 08:11):

Here's the generated HTML in case it's relevant:

Header

And here's the main file in which the blog is defined (it was copied from one of the Verso examples):

Header

so it seems that adding the dollar signs does result in jsdelivr.net scripts being loaded in.

Niels Voss (Apr 05 2025 at 08:14):

As a side question: If Verso-generated websites load in external scripts from jsdelivr.net, does this mean that if jsdelivr.net goes down, the documentation stops working? And what if someone downloads the HTML website locally and then later opens it without an internet connection?

Eric Wieser (Apr 05 2025 at 11:45):

I think the syntax for math in verso is $`x^2 + y^2`

Eric Wieser (Apr 05 2025 at 11:46):

Niels Voss said:

As a side question: If Verso-generated websites load in external scripts from jsdelivr.net, does this mean that if jsdelivr.net goes down, the documentation stops working? And what if someone downloads the HTML website locally and then later opens it without an internet connection?

jsdelivr surely requests aggressive client-side caching, so there is a good chance your browser uses a previously downloaded version if you already have one.

Niels Voss (Apr 05 2025 at 17:45):

Ohh, I guess I didn't read the syntax close enough and just assumed that latex's syntax would work. Now my code works. It still doesn't explain why the Verso manual has broken formatting, but that's not super important right now.


Last updated: May 02 2025 at 03:31 UTC