Created attachment 65144 [details] This is how the system looks like Problem description: wrong equation alignment inside matrix cell. Steps to reproduce: 1. Open Libreofffice Writer 2. Go to Insert-> Formula, and insert a Math Object 3. In the command window, paste the following lines: left none matrix { alignr{3 x + 2 y} # "" = "" # alignl{2} ## alignr{-x- 7 y} # "" = "" # alignl{5} } right rbrace Current behavior: second system's equation doesn't align to the rigth. Expected behavior: second system's equation should be aligned to the rigth (as you will get by deleting the '-' sign). Platform (if different from the browser): Ubuntu GNU/Linux, 12.04 LTS, 64 bit. Browser: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1
I reproduce this behavior with LO 3.6.0 under Ubuntu 11.10 It seems that Math can't distinguish between minus (unitary) and subtraction operators. There is a workaround: add an small space before the minus sign. If you want that the minus sign to be smaller than the subtraction operator, you can add the keyword uoper (unitary operator) in front of it. Side note: there is a "left none" missing in front of your formula. left none {matrix { alignr{3 x + 2 y} # "" = "" # alignl{2} ## alignr{`uoper-x - 7 y} # "" = "" # alignl{5} }} right rbrace
Jean-Baptiste: (1) Thank you very much for your comment. However, I think your idea is not a real solution. Of course, such an opinion is not a real contribution to the LibreOffice project, but sometimes I feel Math being treated as a 'secondary tool' inside the whole suite.For example,if you check out the 3.6 features, all you'll find for Math are some help buttons. (2) There isn't a missed "left none" in my formula. See above the "matrix" command. Kind regards. Roberto.
I have the same problem For example: left( alignr matrix{ -1 # 2 ## 0 # 1} right) -> bad If you add {} before "-" it works fine now: left( alignr matrix{ {}-1 # 2 ## 0 # 1} right) -> good I use LibreOffice 3.5.5 in Linux
Please, do not change version number, it designed to be the oldest version in which the bug has been observed. Best regards. JBF
*** This bug has been marked as a duplicate of bug 47813 ***