last line of a multlined cut off

61 views
Skip to first unread message

Michael Shulman

unread,
Jan 29, 2026, 9:42:19 PMJan 29
to pretext...@googlegroups.com
The last line of a "multlined" environment is being cut off in the web display, as in the following screen shot:

image.png
The PreTeXt code is

          <md>
            <mrow>\frac{1}{x^3-x^2+2} \amp= \frac{\tfrac15}{x+1} - \frac{\tfrac{1+2i}{10}}{x-(1+i)} - \frac{\tfrac{1-2i}{10}}{x-(1-i)}</mrow>
            <mrow>\int \frac{1}{x^3-x^2+2} dx \amp = \begin{multlined}[t]\tfrac15 \log(x+1) - \tfrac{1+2i}{10} \log(x-(1+i)) \\  - \tfrac{1-2i}{10} \log(x-(1-i)) +C \text{.} \end{multlined}</mrow>
          </md>

It doesn't get cut off if I leave off the "[t]" on the multlined, but of course then it looks ugly:

image.png
Is this something that can be fixed in PreTeXt, or is there a better way to achieve wrapping of the RHS of an equation?

--
Michael Shulman
University of San Diego

"The role of the intellectual cannot be to excuse the violence of one
side and condemn that of the other."
        -- Albert Camus

Alex Jordan

unread,
Jan 29, 2026, 9:43:20 PMJan 29
to pretext...@googlegroups.com
Do you see this in multiple browsers?

--
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/CADYavpwzgj4Q6z66rkZ8pcCeXr4c2tBBR7kPsOhAJtZ9VQnB0g%40mail.gmail.com.

Alex Jordan

unread,
Jan 29, 2026, 9:47:03 PMJan 29
to pretext...@googlegroups.com
Another thing to look into is in the MathJax menu, toggling between SVG rendered math and chtml.

It has telltale signs of a web browser and MathJax bug. But hard to say more without a live example of the HTML to look into.

Rob Beezer

unread,
Jan 30, 2026, 12:16:51 AMJan 30
to pretext...@googlegroups.com
I would not use a "multilined" environment in this situation.

I would put the second half of the RHS in a new #mrow and use alignment to get the equals signs lined up as you have done, and then nudge the continuation a bit to the right of the alignment point with a \quad or two after the alignment. Not very semantic, but we only have so much control when we drop into LaTeX syntax.

Rob
>>> <https://home.sandiego.edu/~shulman/humans.html>
>>> University of San Diego
>>>
>>> "The role of the intellectual cannot be to excuse the violence of one
>>> side and condemn that of the other."
>>> -- Albert Camus
>>>
>>> --
>>> 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/CADYavpwzgj4Q6z66rkZ8pcCeXr4c2tBBR7kPsOhAJtZ9VQnB0g%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/pretext-support/CADYavpwzgj4Q6z66rkZ8pcCeXr4c2tBBR7kPsOhAJtZ9VQnB0g%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>

Eugene Boman

unread,
Jan 30, 2026, 4:57:36 PMJan 30
to pretext...@googlegroups.com

Michael,

I think you can get the display you're looking for without dropping into a LaTeX package with the following;

  <md>
    <mrow>\frac{1}{x^3-x^2+2} \amp= \frac{\tfrac15}{x+1} - \frac{\tfrac{1+2i}{10}}{x-(1+i)} - \frac{\tfrac{1-2i}{10}}{x-(1-i)}</mrow>

    <mrow>\int \frac{1}{x^3-x^2+2} dx \amp = \tfrac15 \log(x+1) - \tfrac{1+2i}{10} \log(x-(1+i))  </mrow>
    <mrow> \amp{}\ \ \ \ \ \ \ \ \ \ \ \  - \tfrac{1-2i}{10} \log(x-(1-i)) +C.</mrow>
  </md>

I'm not keen on using the "backslash space" so much but it seems to work. 

-- Bud

To view this discussion visit https://groups.google.com/d/msgid/pretext-support/CA%2BR-jrcyxkYJaYVPzgFpkdT_wEcYG2Dk55ESMLzum1K2REaZWA%40mail.gmail.com.
-- 
The juvenile sea squirt wanders through the sea searching for a
suitable rock or hunk of coral to cling to and make its home for life.
For this task, it has a rudimentary nervous system. When it finds its
spot and takes root, it doesn't need its brain anymore, so it eats it!
(It's rather like getting tenure.)

    -- Daniel C. Dennett, in "Consciousness Explained"

Alex Jordan

unread,
Jan 30, 2026, 5:09:23 PMJan 30
to pretext...@googlegroups.com
Even if we have suggestions for how to achieve the layout differently, is it not a bug of some sort that the original example is clipped? 

You have to use the mathtools extension to get the "multlined" environment (not "multilined"). I recreated this and see it with CHTML MathJax rendering in Firefox. I do not see it if I switch to SVG rendering. Or if I switch to Chrome (and keep CHTML).

I do not see it if I use Firefox and CHTML, and just put that directly into the MathJax demo site. So I suspect a MathJax issue with CHTML rendering, in conjunction with Firefox (and more browsers?) and in some sort of conflict with PreTeXt js or css.

I see the same thing if I use the ams "aligned" environment instead of "multlined". So it's not isolated to the mathtools extension.

David W. Farmer

unread,
Jan 30, 2026, 5:13:42 PMJan 30
to pretext...@googlegroups.com

I often do lots of backslash-space as in Bud's example.

That strikes me as the correct PreTeXt way: that is what mrows are for,
to encode the multiline structure of the equation.

On Fri, 30 Jan 2026, Alex Jordan wrote:

> Even if we have suggestions for how to achieve the layout differently, is it not a bug of some sort that the original example is clipped? 
>
> You have to use the mathtools extension to get the "multlined" environment (not "multilined"). I recreated this and see it with CHTML MathJax
> rendering in Firefox. I do not see it if I switch to SVG rendering. Or if I switch to Chrome (and keep CHTML).
>
> I do not see it if I use Firefox and CHTML, and just put that directly into the MathJax demo site. So I suspect a MathJax issue with CHTML
> rendering, in conjunction with Firefox (and more browsers?) and in some sort of conflict with PreTeXt js or css.
>
> I see the same thing if I use the ams "aligned" environment instead of "multlined". So it's not isolated to the mathtools extension.
>
> On Fri, Jan 30, 2026 at 1:57 PM Eugene Boman <budb...@gmail.com> wrote:
>
> Michael,
>
> I think you can get the display you're looking for without dropping into a LaTeX package with the following;
>
>   <md>
>     <mrow>\frac{1}{x^3-x^2+2} \amp= \frac{\tfrac15}{x+1} - \frac{\tfrac{1+2i}{10}}{x-(1+i)} -
> \frac{\tfrac{1-2i}{10}}{x-(1-i)}</mrow>
>     <mrow>\int \frac{1}{x^3-x^2+2} dx \amp = \tfrac15 \log(x+1) - \tfrac{1+2i}{10} \log(x-(1+i))  </mrow>
>     <mrow> \amp{}\ \ \ \ \ \ \ \ \ \ \ \  - \tfrac{1-2i}{10} \log(x-(1-i)) +C.</mrow>
>   </md>
>
> I'm not keen on using the "backslash space" so much but it seems to work. 
>
> -- Bud
>
> On 1/29/26 21:43, Alex Jordan wrote:
> Do you see this in multiple browsers?
>
> On Thu, Jan 29, 2026, 6:42 PM 'Michael Shulman' via PreTeXt support <pretext...@googlegroups.com> wrote:
> The last line of a "multlined" environment is being cut off in the web display, as in the following screen shot:
>
> image.png
> The PreTeXt code is
>
>           <md>
>             <mrow>\frac{1}{x^3-x^2+2} \amp= \frac{\tfrac15}{x+1} - \frac{\tfrac{1+2i}{10}}{x-(1+i)} -
> \frac{\tfrac{1-2i}{10}}{x-(1-i)}</mrow>
>             <mrow>\int \frac{1}{x^3-x^2+2} dx \amp = \begin{multlined}[t]\tfrac15 \log(x+1) - \tfrac{1+2i}{10} \log(x-(1+i)) \\
>  - \tfrac{1-2i}{10} \log(x-(1-i)) +C \text{.} \end{multlined}</mrow>
>           </md>
>
> It doesn't get cut off if I leave off the "[t]" on the multlined, but of course then it looks ugly:
>
> https://groups.google.com/d/msgid/pretext-support/CA%2BR-jreWO95RVYWihDGADLOQRCSJ3C5SceeQPPBHz2drzC%2BpPQ%40mail.gmail.com.
>
>

Alex Jordan

unread,
Jan 30, 2026, 5:31:03 PMJan 30
to pretext...@googlegroups.com
Well, I don't think it's the correct accessible way. Although it may be something to live with for now.

The message is supposed to be:
A = B
and when one navigates across the equals sign, they should hear/read the entirety of B. But when you put half of B into the next mrow, only the first half of B will be heard/read after crossing that = sign. Then it will be awkward navigation for the screen reader user who thinks it is natural to move to the next row, where they first hit an empty cell, before hitting the second half of B. They will have to deduce what was intended.

Is anyone hearing me though that there is a technical bug with any of the MathJax being clipped? Regardless of whether we feel the LaTeX should have been done differently?

David W. Farmer

unread,
Jan 30, 2026, 5:34:32 PMJan 30
to pretext...@googlegroups.com

Alex: thanks, I missed that point.

Space Math markup for that does group things in a way that
preserves teh information. But now I don't know how to convert
that into accessible output.

There needs to ne a distinction between a "line" that is a logical
line, and a line that is really a continuation.
> https://groups.google.com/d/msgid/pretext-support/CA%2BR-jrc%3DOh%2BWVQEsSmCHg0MjnZE1oVQoWG-sdnZa1-gy6k2Uag%40mail.gmail.com.
>
>

Alex Jordan

unread,
Jan 30, 2026, 5:50:33 PMJan 30
to pretext...@googlegroups.com
To make the point visually, here at the top is Mike's example, where I navigated into the last cell:

Screenshot 2026-01-30 at 2.46.10 PM.png
And here is one of the ways that puts content into a third row, after getting past that second equals sign:

Screenshot 2026-01-30 at 2.46.47 PM.png


There is no good way for me to navigate to the content of the third row. I have to navigate up the tree first to the root of the second row, then slide over to the root of the third row, then down into one of its descendents.


Note: no clipping in these screenshots because they are from Chrome. There is still the clipping issue in Firefox and CHTML rendering that should not happen. (And may or may not be something PreTeXt can address.)


Rob Beezer

unread,
Jan 30, 2026, 6:00:05 PMJan 30
to pretext...@googlegroups.com
Yes, Alex, I do hear you! Just not at my keyboard 10 hours a day right now. ;-)

Q: PreTeXt will provide an overall "aligned" environment or similar. Is it correct to nest other environments inside?

I would suggest adding this to the MathJax 4 issue and only addressing it if it persists.

<aside>
I'm very disappointed we missed our window to upgrade to MJ4 over the break between semesters.

I have a (substantial) AI-generated upgrade of our offline script, which i am unqualified to upgrade myself without assistance. I'll be testing that new version soon.
</aside>

Rob

Rob Beezer

unread,
Jan 30, 2026, 6:43:47 PMJan 30
to pretext...@googlegroups.com
We could mark an #mrow as a continuation, but I have no idea if that could be conveyed to MJ, or if we could fashion LaTeX that would behave better.

MJ4 is suppose to have some sort of line-breaking facility. Experiments with that could probably be undertaken now with the debugging switch fir v4 and some configuration editing? But then PDF output will need some work?

Rob
>> https://groups.google.com/d/msgid/pretext-support/CA%2BR-jrcyxkYJaYVPzgFpkdT_wEcYG2Dk55ESMLzum1K2REaZWA%40mail.gmail.com
>> .
>> > >
>> > > --
>> > > The juvenile sea squirt wanders through the sea searching for a
>> > > suitable rock or hunk of coral to cling to and make its home for
>> life.
>> > > For this task, it has a rudimentary nervous system. When it
>> finds its
>> > > spot and takes root, it doesn't need its brain anymore, so it
>> eats it!
>> > > (It's rather like getting tenure.)
>> > >
>> > > -- Daniel C. Dennett, in "Consciousness Explained"
>> > >
>> > > --
>> > > 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/07d667c0-3f19-4f4b-8e36-3872c9fc835e%40gmail.com
>> .
>> > >
>> > > --
>> > > 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/CA%2BR-jreWO95RVYWihDGADLOQRCSJ3C5SceeQPPBHz2drzC%2BpPQ%40mail.gmail.com
>> .
>> > >
>> > >
>> >
>> > --
>> > 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/80fa13ad-703f-5270-df-613a9752eb1c%40aimath.org
>> .
>> >
>> > --
>> > 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/CA%2BR-jrc%3DOh%2BWVQEsSmCHg0MjnZE1oVQoWG-sdnZa1-gy6k2Uag%40mail.gmail.com
>> .
>> >
>> >
>>
>> --
>> 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/fa3d7f7a-3792-28a8-d17a-18de897a1920%40aimath.org
>> .
>>
>
Reply all
Reply to author
Forward
0 new messages