Adjusting whitespace in math mode

27 views
Skip to first unread message

Kyle Monette

unread,
Apr 26, 2026, 2:19:24 AM (13 days ago) Apr 26
to PreTeXt support
This is a question half pretext and half MathJax involved.

In the generated HTML pages, sometimes the <md> with <mrow>'s, analogously to \begin{align} in LaTeX,  have subsequent lines are very close together. If one line has a fraction, for example, the following one may overlap too much.

A quick fix in LaTeX is to put \\[1em], for example, at the end of the line. Or, globally, one can set \addtolength{\jot}{1em}.

The 'lineleading' setting in MathJax seems to resolve this globally (another example), but my question is -- is there a way to do this in PreTeXt?
I know you could add the \addtolength command for the latex preamble, if building to pdf, but my question regards the HTML documents online.

As a followup question: I like to increase \thinmuskip, \medmuskip, etc in latex which adds more space around binary symbols. Can this be done in the HTML output?

Thanks!
Kyle

Mitch Keller

unread,
Apr 26, 2026, 1:41:52 PM (13 days ago) Apr 26
to pretext...@googlegroups.com
Have you tried putting the adjustments you’d like to make into the macros for your PreTeXt project? That will get loaded in both HTML and LaTeX conversions. If the things you are trying to do are supported by MathJax, then you should be OK. 

--
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/6ae6efd8-e2a2-4986-8845-d62ea13735f5n%40googlegroups.com.


Kyle Monette

unread,
Apr 26, 2026, 3:12:55 PM (13 days ago) Apr 26
to pretext...@googlegroups.com
I don’t believe these are supported in MathJax, other than perhaps using the ‘line leading’ command described below, which seems to be the problem I think. Perhaps the lineleading option can be set in the MJ script in Pretext, but I’m not sure this can be done?


You received this message because you are subscribed to a topic in the Google Groups "PreTeXt support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pretext-support/4tzKvi_ze54/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pretext-suppo...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pretext-support/B04DF2AC-A131-41EE-AF1D-DF7746CFE7C1%40rellek.net.
Reply all
Reply to author
Forward
0 new messages