Bug 44902

Summary: Make it easier to align equations on a particular character (especially equal sign)
Product: LibreOffice Reporter: Anonymous Helper <anonymous>
Component: Formula EditorAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: enhancement CC: 79045_79045, bwechner, dante19031999, himajin100000, iamtester8, ilmari.lauhakangas, mikekaganski, xiscofauli
Priority: medium    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard: VOTE
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 39750    

Description Anonymous Helper 2012-01-18 07:31:17 UTC
According to the LibreOffice Math Guide, Math does not have a command for aligning equations on a particular character, but
you have to use a matrix to do it. This is not very easy, the code becomes confusing, and it does not work well with the graphical editor. 

I think a simple command (similar to alignc) with which you can mark the character on which the lines should be aligned should be introduced. (I don't know whether there is a command defined in ODF.)

So instead of

matrix{
alignr x+y # {}={} # alignl 2 ##
alignr x # {}={} # alignl 2-y
}

one could write

x+y alignhere(=) 2 newline
x alignhere(=) 2-y

(or the like)
Comment 1 tester8 2012-01-25 03:09:11 UTC
It should be great improvement.
Comment 2 QA Administrators 2014-10-24 03:18:19 UTC Comment hidden (obsolete)
Comment 3 QA Administrators 2015-12-20 16:18:56 UTC Comment hidden (obsolete)
Comment 4 Buovjaga 2016-09-21 19:38:04 UTC
*** Bug 101715 has been marked as a duplicate of this bug. ***
Comment 5 Buovjaga 2016-09-21 19:39:01 UTC
Please also see the description in bug 101715
Comment 6 dante19031999 2020-06-28 12:01:05 UTC
How should it react if you use it multiple times in a single line?
Comment 7 Roman Kuznetsov 2020-07-01 07:44:30 UTC
(In reply to dante19031999 from comment #6)
> How should it react if you use it multiple times in a single line?

Possibly it should be a different sign like ^=^ or <=> that will be as simple = but Math will align lines of equations by it

Mike, any idea about Dante's question?
Comment 8 Roman Kuznetsov 2020-07-01 07:48:54 UTC
(In reply to dante19031999 from comment #6)
> How should it react if you use it multiple times in a single line?

Dante or do you mean if we'll use that "align symbol" in several place in one line?
Comment 9 Mike Kaganski 2020-07-01 08:12:37 UTC
(In reply to Roman Kuznetsov from comment #8)
> (In reply to dante19031999 from comment #6)
> > How should it react if you use it multiple times in a single line?
> 
> Dante or do you mean if we'll use that "align symbol" in several place in
> one line?

I suppose the latter. And I don't think it's a problem, given that there's an existing implementation (LaTeX) with this feature, where we can borrow the rules for disambiguation.
Comment 10 Xisco FaulĂ­ 2021-02-09 14:07:29 UTC
Dear Dante,
This bug has been in ASSIGNED status for more than 3 months without any
activity. Resetting it to NEW.
Please assign it back to yourself if you're still working on this.
Comment 11 dante19031999 2021-02-09 16:02:42 UTC
(In reply to Xisco FaulĂ­ from comment #10)
> Dear Dante,
> This bug has been in ASSIGNED status for more than 3 months without any
> activity. Resetting it to NEW.
> Please assign it back to yourself if you're still working on this.

I have no clue about how to introduce this and keep it compatible with mathml.