Bug 44902 - Make it easier to align equations on a particular character (especially equal sign)
Summary: Make it easier to align equations on a particular character (especially equal...
Status: ASSIGNED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Formula Editor (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium enhancement
Assignee: dante19031999
URL:
Whiteboard: VOTE
Keywords:
: 101715 (view as bug list)
Depends on:
Blocks: Formula-Editor
  Show dependency treegraph
 
Reported: 2012-01-18 07:31 UTC by Anonymous Helper
Modified: 2020-07-02 11:25 UTC (History)
8 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.