Display math markup

24 views
Skip to first unread message

Sean Fitzpatrick

unread,
May 15, 2026, 5:08:30 PM (11 days ago) May 15
to PreTeXt support
My understanding of the updated syntax for display math markup is that what used to be <me> is now <md>.

I have an inline exercise (structured by task) with the following introduction:

    <introduction>
      <p>
        We know that the geometric series expansion
        <md>
          f(x)=\frac{1}{1-x} = \sum_{n=0}^\infty x^n
        </md>
        is valid for <m>\abs{x}\lt 1</m>. We also know that we can integrate and differentiate a power series term-by-term.
      </p>

      <p>
        Use these observations, and <xref ref="thm_series_alg"/>, to answer the following.
      </p>
    </introduction>

The display math is missing in HTML with the latest version of the pretext CLI.

Do I still need an <mrow> when there is only one equation?

Oscar Levin

unread,
May 15, 2026, 6:56:23 PM (11 days ago) May 15
to pretext...@googlegroups.com
You should not need an mrow.  I suppose it is possible that there is a bug with this in the particular case you have...

--
You received this message because you are subscribed to the Google Groups "PreTeXt support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-suppo...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pretext-support/7023ab92-2fa5-4ea6-b105-4a301c7d466fn%40googlegroups.com.

Sean Fitzpatrick

unread,
May 15, 2026, 7:04:50 PM (11 days ago) May 15
to PreTeXt support
Here is the HTML generated for that bit of PreTeXt. (No live example since I didn't want to publish buggy HTML.)

<div class="para">We know that the geometric series expansion</div> <div class="displaymath process-math" id="APEX-PROTEUS-taylor-series-1-v1-2-1-1"> \begin{gather*} \end{gather*} </div> <div class="para">is valid for <span class="process-math">\(\abs{x}\lt 1\text{.}\)</span> We also know that we can integrate and differentiate a power series term-by-term.</div>

If I use <me> instead of <md>, the HTML that is generated uses the same div class, but inside the div uses \begin{equation*} instead of \begin{gather*}, and of course there is content.

Rob Beezer

unread,
May 15, 2026, 7:07:00 PM (11 days ago) May 15
to pretext...@googlegroups.com
Your source looks good.

I pasted it over an existing #introduction in the sample article and series
expansion rendered in HTML just fine with very latest of pretext/pretext
script. (Except it doesn't know your \abs macro.)

So I am stumped. Put it into the minimal article? You could add an #mrow just
for kicks, but as Oscar notes, it should not be necessary.

Are you *sure* you have the latest CLI? No output would be the expectation for
an #md with no #mrow in the olden times.

Rob
> email to pretext-suppo...@googlegroups.com <mailto:pretext-
> support+u...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/pretext-
> support/7023ab92-2fa5-4ea6-b105-4a301c7d466fn%40googlegroups.com <https://
> groups.google.com/d/msgid/pretext-support/7023ab92-2fa5-4ea6-
> b105-4a301c7d466fn%40googlegroups.com?utm_medium=email&utm_source=footer>.
>
> --
> You received this message because you are subscribed to the Google Groups
> "PreTeXt support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to pretext-suppo...@googlegroups.com <mailto:pretext-
> support+u...@googlegroups.com>.
> CAOU9BaUdZ1qdbCA9HT6eByiJmNTxZVuE2bwvKbsh68bYTbrnWw%40mail.gmail.com <https://
> groups.google.com/d/msgid/pretext-support/
> CAOU9BaUdZ1qdbCA9HT6eByiJmNTxZVuE2bwvKbsh68bYTbrnWw%40mail.gmail.com?
> utm_medium=email&utm_source=footer>.

Sean Fitzpatrick

unread,
May 15, 2026, 7:16:02 PM (11 days ago) May 15
to PreTeXt support
pretext --version is returning 2.39.0.

I did a pip install pretext --upgrade just before building.
Just in case, I uninstalled and reinstalled pretext, and got the same version.
(The pretext upgrade command doesn't work on Windows. It mostly breaks a lot of things.)

Chrissy Safranski

unread,
May 15, 2026, 8:10:40 PM (11 days ago) May 15
to PreTeXt support
It rendered in PreTeXt.plus just fine.  Using Chrome on windows.

Sean Fitzpatrick

unread,
May 15, 2026, 8:17:31 PM (11 days ago) May 15
to pretext...@googlegroups.com
Weird. I don't have a pretext plus but I'll try building on Linux. CLI is the latest but it seems to be using old xsl somehow. 

To unsubscribe from this group and stop receiving emails from it, send an email to pretext-suppo...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pretext-support/7ce28e53-c66f-4fd3-9e44-b5fb0766280an%40googlegroups.com.

Oscar Levin

unread,
May 15, 2026, 8:35:21 PM (11 days ago) May 15
to pretext...@googlegroups.com
You could try deleting the .ptx folder in your home directory.  That would force an update to the xsl.

Unless you are using custom xsl??

Sean Fitzpatrick

unread,
May 16, 2026, 6:28:08 PM (10 days ago) May 16
to pretext...@googlegroups.com
I deleted the .ptx folder (and cleaned up some other cruft) and now it's working. 

Reply all
Reply to author
Forward
0 new messages