My eye is not so tuned in to these small differences, but I can sorta see when I
look hard. It'd be good to do a careful look through some of the "paragraph
level" markup in the sample article, there are some crazy constructions.
1. Might we reduce the margin/padding around the inline #c snippets? I think
we have messed with this before. I see this presentation often other places,
but I can't say I am a huge fan - its very busy when there is a lot of it. Are
there alternatives folks like? Is just a bit of monospace not enough? (That's
the LaTeX treatment I guess.)
2. Does the math "2.6" look a bit big to anybody else? It'd be interesting to
see a "regular" 2.6 close by. Im pretty sure we had something like an 85% scale
factor in the MJ config a long time ago (its in the git history somewhere!).
Rob
On 6/15/26 10:31, Alex Jordan wrote:
> Not exhaustive testing, but here is a before shot, where I put a tall inline matrix:
>
> Screenshot 2026-06-15 at 10.25.12 AM.png
>
>
> And here is an after shot (after adding that additional CSS):
>
> Screenshot 2026-06-15 at 10.24.58 AM.png
>
> I don't detect any difference where the matrix is. Down in the second paragraph
> the "2.6" bits of math make an impact, and the added CSS improves things.
>
>
> FWIW, I also doctored things so that one line of the paragraph would be only
> inline math content. Just in case setting that CSS to zero would collapse the
> entire line. But it did not.
>
>
> On Mon, Jun 15, 2026 at 8:31 AM Andrew Scholer <
asch...@chemeketa.edu
> <mailto:
asch...@chemeketa.edu>> wrote:
>
> LaTeX looks like an easy change.
>
>
> MathJax might be an easy fix... it looks like MJ3 had a line-height 0
> on .mjx-container. MJ4 does not. Adding that back appears to have the
> desired effect. But, that is a change that was made in MathJax. Was it made
> to accommodate some other change? Are there situations in which setting
> line-height 0 would cause overlap? If someone wants to exhaustively test,
> just add some custom CSS with:
>
> mjx-container {
> line-height: 0;
> }
>
>
> The other spacing issue is coming from the "code" blocks. The padding/border
> on them causes them to take up more vertical space. Forcing them not to
> leads to a bit of crowding when consecutive lines both contain blocks:
> image.png
>
> But that is probably better than the current behavior.
>
>
> I can PR LaTeX and code blocks if desired. I can envision more ways for
> MathJax spacing to go wrong, so would prefer to have someone do some testing
> on that one and report back.
>
> Andrew
>
>
>
> On Mon, Jun 15, 2026 at 6:57 AM 'Rob Beezer' via PreTeXt development
> <
prete...@googlegroups.com <mailto:
prete...@googlegroups.com>> wrote:
>
> Can't really dig in too much right now, but the MathJax config once had
> a scale
> factor for the math. Maybe that explains the n and n-1? Have you found an
> experimental solution to that situation? Some of these are unavoidable, I
> think, like the dropped E in LaTeX.
>
> Rob
>
> On 6/14/26 21:02, Alex Jordan wrote:
> > Consider the lines in the paragraphs here:
> > Subsection 7.2: Displayed Mathematics <
https://pretextbook.org/
> examples/sample- <
https://pretextbook.org/examples/sample->
>
dev%2Bunsu...@googlegroups.com> <mailto:
pretext- <mailto:
pretext->
> >
dev+uns...@googlegroups.com
> <mailto:
dev%2Bunsu...@googlegroups.com>>.
> pretext-dev/ <
https://groups.google.com/d/msgid/pretext-dev/>
> > CA%2BR-
> jrf8%2BYvW40V0_1HA9jDjbkN9FwJ_7C%2B0mA8_nmn8VPiQaw%
40mail.gmail.com
> <
http://40mail.gmail.com>
> > <
https://groups.google.com/d/msgid/pretext-dev/CA%2BR- <https://
>
groups.google.com/d/msgid/pretext-dev/CA%2BR->
> > jrf8%2BYvW40V0_1HA9jDjbkN9FwJ_7C%2B0mA8_nmn8VPiQaw%
40mail.gmail.com
> <
http://40mail.gmail.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 <mailto:
pretext-
>
dev%2Bunsu...@googlegroups.com>.
> dev/MTAwMDAyMS5iZWV6ZXI.1781531832%40pnsh <
https://groups.google.com/d/
> msgid/pretext-dev/MTAwMDAyMS5iZWV6ZXI.1781531832%40pnsh>.
>
> --
> 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
> CACm44N9B45B_9QfmcoTnLOiwc35xOnWjgRiCcRd%2B2BXOYTxQmw%
40mail.gmail.com
> <
https://groups.google.com/d/msgid/pretext-dev/
> CACm44N9B45B_9QfmcoTnLOiwc35xOnWjgRiCcRd%2B2BXOYTxQmw%
40mail.gmail.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
> CA%2BR-jrdCbHC89Tq20t1yS7vCm1pLmYz-fWkbi3HBcbO77CdC1A%
40mail.gmail.com <https://
>
groups.google.com/d/msgid/pretext-dev/CA%2BR-jrdCbHC89Tq20t1yS7vCm1pLmYz-
> fWkbi3HBcbO77CdC1A%
40mail.gmail.com?utm_medium=email&utm_source=footer>.