Aligning equation label with the last line of multi-line equation

21 views
Skip to first unread message

KAWAKUBO Toru

unread,
Oct 19, 2016, 1:33:33 PM10/19/16
to mathja...@googlegroups.com
Hi,

Is there any way to align an equation label with a baseline of the last line of a multi-line equation?


Using flexbox, an equation label can be aligned with a baseline of a single-line equation (A).
In the case of a multi-line equation, however, flexbox fails to align the label properly.
With ‘align-items: baseline’, the label aligns with the baseline of the first line of the equation (B),
whereas with ‘align-self: flex-end’, the label aligns at the bottom of a bounding box of the equation (C).
Using ‘mlabeledtr’ with ‘rowalign=baseline / bottom’ leads to the same results (D, E).
If the equation is split into lines and each of them is put into ‘mtr’ and ‘mlabeledtr’,
the label can obviously be aligned to the baseline of the last line (F), but fixing the line breaking position beforehand is not ideal.

I want the equation to be broken into lines automatically *and* the label to be aligned to the baseline of the last line of the equation.
Is this possible with current MathJax?


-- 
Toru Kawakubo (川久保 亮)
Vivliostyle Inc.
http://vivliostyle.com

Peter Krautzberger

unread,
Oct 24, 2016, 3:49:32 AM10/24/16
to mathja...@googlegroups.com
Hi Toru,

I want the equation to be broken into lines automatically *and* the label to be aligned to the baseline of the last line of the equation.
> Is this possible with current MathJax?

I think the answer is unfortunately "no" because MathML does not have any facilities for this. 

I made a note on GitHub for this use case for future work though.

Best regards,
Peter.




--
You received this message because you are subscribed to the Google Groups "MathJax Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mathjax-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages