Long equations in assemblage in HTML

29 views
Skip to first unread message

Sean Fitzpatrick

unread,
May 1, 2026, 9:20:59 AMMay 1
to pretext...@googlegroups.com
An issue in APEX reported by Karl-Dieter:

We have a quick reference in the appendix with various formulas, etc. Right now each item is in an assemblage. (Maybe this isn't the best choice?)

When an equation is long, it spills out of the box drawn around the assemblage, as seen here: 

Assemblage: Simpson’s Rule:

If the screen is narrow (e.g. on mobile) the equation fits into a slider that's contained in the bounding box, but as soon as the screen widens, the equation spills out. 

Is this something than can be fixed in CSS?

Or is this a case where the answer is either "don't author long formulas" or "don't use assemblage"?

Rob Beezer

unread,
May 1, 2026, 9:37:41 AMMay 1
to pretext...@googlegroups.com
Just don't author assemblage, don't author long equations, and don't use MathJax 3.

Seriously, MathJax 4 is going to roll out over the next few weeks. I think it has new features for line-breaking. No idea if they will be useful, or if we will configure them. But I'm not too interested in pursuing this while we are still on MJ3.

But do remind me to pursue this soon after a CLI release has MJ4, and perhaps we can do some testing with some debugging switches? Can you wait?

Rob

Sean Fitzpatrick

unread,
May 1, 2026, 9:41:03 AMMay 1
to pretext...@googlegroups.com
I can wait. Reported by KDC yesterday but my experience has been that half my students don't even realize the appendix exists. 

The issue is aesthetic and doesn't affect usability.

--
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/MTAwMDA0NC5iZWV6ZXI.1777642658%40pnsh.

kcri...@gmail.com

unread,
May 1, 2026, 7:48:30 PMMay 1
to PreTeXt support
I can wait. Reported by KDC yesterday but my experience has been that half my students don't even realize the appendix exists. 

The issue is aesthetic and doesn't affect usability.


Indeed!  Only faculty look at appendices.   I only reported on the Apex GH because I didn't realize it was a more general issue, so I'm glad Sean reached out here. 

Sean Fitzpatrick

unread,
May 27, 2026, 12:26:38 PM (2 days ago) May 27
to pretext...@googlegroups.com
An update on this: I've got a version using MathJax 4 live here: 


By default, the equation still overflows the bounding box. But the MathJax menu has options: Math Settings --> Wide Expressions

Testing using Firefox on Linux: 
- line break works, and works fairly well, although I tried it twice and got different break points
- scale also works
- truncate and scroll seem to do nothing

The default on mobile is scroll. 

Now, given that the default on a laptop is overflow, perhaps I should still edit these equations to manually set the line breaks? I'm not sure. 

I suspect that the casual reader will be unaware that they can access the MathJax menu to change the display settings.

--
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.

Sean Fitzpatrick

unread,
May 27, 2026, 12:32:14 PM (2 days ago) May 27
to pretext...@googlegroups.com
For equations that are only slightly too long, the line breaking is poor.

If your equation is something like

f(x)=(some slightly long expression) 

MathJax breaks before the equals sign, and leaves f(x) orphaned (and centred!) on it's own line. It looks like

                        f(x)
=(some slightly long expression)
Reply all
Reply to author
Forward
0 new messages