Issue 104005 - Matrix fractional alignment error
Matrix fractional alignment error
 Status: CLOSED DUPLICATE of issue 5998 None Math Application ui (show other issues) OOo 3.1 All All P3 Trivial with 2 votes (vote) --- michael.ruess issues@sw

 Reported: 2009-08-04 17:33 UTC by earthtone 2009-08-05 09:38 UTC (History) 2 users (show) eric.savary issues DEFECT --- ---

Attachments
Example 1 (4.97 KB, application/vnd.oasis.opendocument.formula)
2009-08-04 17:34 UTC, earthtone
no flags Details
Example 2 (5.12 KB, application/vnd.oasis.opendocument.formula)
2009-08-04 17:34 UTC, earthtone
no flags Details

 Note You need to log in before you can comment on or make changes to this issue.
 earthtone 2009-08-04 17:33:27 UTC ```I'm having an issue trying to format formulas. Using a matrix is a good approach when you want to line up equations (e.g. aligned on the = sign), but a problem arises when you have fractions, such as this example: matrix { alignr a over {c+b} # {}={} # alignl c over{a+b} } The fractions will follow the alignment of the matrix cell, which is problematic because they should be displayed centered. The following fixes the problem for simple expressions: matrix { alignr {alignc a over {c+b}} # {}={} # alignl {alignc c over{a+b}} } This uses brackets to group the fraction expressions and preserve their centered alignment. However, if one of the expressions has more content in it, it stretches the column and centers the fraction, ignoring the "alignl" parameter: matrix { alignr {alignc a over {c+b}} # {}={} # alignl {alignc c over{a+b}} ## alignr {alignc a over {c+b}} # {}={} # alignl {alignc c over{a+b}} "The same example with extra text" } Using parentheses instead of brackets seems to provide a workaround, but it adds unnecessary characters to the expressions: matrix { alignr {alignc a over {c+b}} # {}={} # alignl (alignc c over{a+b}) ## alignr {alignc a over {c+b}} # {}={} # alignl {alignc c over{a+b}} "Notice the proper alignment above" } Is this a bug? Am I missing something obvious? We should be able to use brackets consistently in this regard as a way to group expressions without displaying extra code and have the formula respect the layout.``` earthtone 2009-08-04 17:34:19 UTC ```Created attachment 63954 [details] Example 1``` earthtone 2009-08-04 17:34:51 UTC ```Created attachment 63955 [details] Example 2``` eric.savary 2009-08-04 19:40:59 UTC `Not a P1.` michael.ruess 2009-08-05 09:37:46 UTC ```This problem is already tracked as issue 5998. See also issue 20398 - maybe there you find additional information to "fine tune" the workaround you already found. *** This issue has been marked as a duplicate of 5998 ***``` michael.ruess 2009-08-05 09:38:15 UTC `Closing duplicate.`