Issue 74858 - Incorrect vertical alignment of "nested" matrices using mline
Summary: Incorrect vertical alignment of "nested" matrices using mline
Alias: None
Product: Math
Classification: Application
Component: ui (show other issues)
Version: OOo 2.0.4
Hardware: All All
: P3 Trivial with 25 votes (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Depends on:
Reported: 2007-02-25 18:28 UTC by dma2002
Modified: 2013-08-07 14:54 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---

Example (5.27 KB, application/vnd.oasis.opendocument.formula)
2007-02-25 18:30 UTC, dma2002
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description dma2002 2007-02-25 18:28:47 UTC
Type for example:
left ( matrix{1#2##3#4} mline matrix{5 over 7##6} right )
In the first line the vertical alignment is correct. In the second line it
fails. The vertical line is used for example to write an extended matrix. So in
my example "3", "4" and "6" should be on the same height.
Comment 1 dma2002 2007-02-25 18:30:30 UTC
Created attachment 43359 [details]
Comment 2 michael.ruess 2007-02-26 11:04:58 UTC
MRU->TL: it looks, that the parser does not recognize, that these two matrices
are not really independent from each other.
Comment 3 kpalagin 2007-09-18 14:44:04 UTC
Dear developers,
please consider this issue for 2.4.
Thanks a lot.
Comment 4 dma2002 2008-04-17 19:44:24 UTC
Any progress?
Comment 5 dma2002 2008-04-17 20:45:49 UTC
Any progress?
Comment 6 thomas.lange 2008-04-18 08:16:41 UTC
Well, if you look at the targert (OOo later) - No.
We are currently working on OOo 3.0 issues.
Comment 7 kpalagin 2009-03-25 16:57:23 UTC
Any chance of targeting this issue for 3.2?
Comment 8 helenrussian 2009-05-11 07:03:50 UTC
21 votes for this issue. Can you correct problem in 3.2?

Comment 9 thomas.lange 2009-05-11 08:25:29 UTC
This sounds much more easy than it is. Even the reference product does not align
those lines.

What for example should be done if the right side would be a 4 row matrix/stack?
What lines should align? 1st left with 1st right and 2nd left with 4 4th right?
Or should it be 1st left with 2nd right and 2nd left with 3rd right?
Coming to details there are many questions to be solved about this one.

The most easiest way would be to introduce something new like "heightof" that
takes the height of its argument but no with. With something like that it will
be up to the user to make this work, e.g. by writing a formula like
 left ( matrix{ heightof{ 5 over 7} 1#2##3#4} mline matrix{5 over 7##6} right )

Anyone knows if MathML provides something like this?
It would be easier to argue implementing it if MathML has the same.
The first solution is probably out of the question since it will take much more
time. And for that you need to discuss the topic with QA and I would need
approval to spend a larger amount of time with maybe questionable results.

Thus less me first ask: would you be content with the second way, i.e.
introducing something like "heightof"? And as said references of similar
formatting in MathML would be helpful in argumentation as well.
Comment 10 bigandy 2009-05-12 08:06:10 UTC
i mean 21 vote is quite enable to repair this bug... 
Comment 11 thomas.lange 2009-05-12 08:35:51 UTC
tl->bigandy: that would apply if we had not limited resources for developing. As
it is one always has to weigh one issue against others and make decisions about
the ones to be fixed... And be reminded that most of us need to work in more
than one project. 
Comment 12 vvzh 2010-05-15 13:21:41 UTC
IMHO "heightof" is a good idea since it could be generally useful as an
alternative for "phantom" in cases where width must not be affected. Thus it can
help to solve not only this particular problem but other not-yet-revealed
problems too.

For now, the problem could be worked around like this:
left ( matrix{1#2 phantom{{}over{}}##3#4 ``} mline matrix{5 over 7##6} right )
Comment 13 syzygy 2010-06-06 18:20:41 UTC
Solving this problem is really important. Working with matrices will be easier.