Bug 128414 - underbrace in math formula is displayed incorrectly without additional sm brackets
Summary: underbrace in math formula is displayed incorrectly without additional sm bra...
Status: RESOLVED WONTFIX
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Formula Editor (show other bugs)
Version:
(earliest affected)
6.3.2.2 release
Hardware: All All
: medium trivial
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Formula-Editor
  Show dependency treegraph
 
Reported: 2019-10-27 14:48 UTC by AdamWysokinski
Modified: 2023-03-01 09:43 UTC (History)
3 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 AdamWysokinski 2019-10-27 14:48:10 UTC
Description:
In the formula:
{ left [  matrix { a_11 # a_12 # a_13 # a_14 ## a_21 # a_22 # a_23 # a_24 ## bold {a_31} # bold{a_32} # bold{a_33} # bold{a_34}## a_41 # a_42 # a_43 # a_44} right ] } underbrace {A} times{ left [ matrix { b_11 # b_12 # b_13 # bold{b_14} ## b_21 # b_22 # b_23 # bold{b_24} ## b_31 # b_32 # b_33 # bold{b_43} ## b_41 # b_42 # b_43 # bold{b_44} } right ] } underbrace {B}
underbrace B is displayed incorrectly: should be under the second matrix, is displayed below both matrices

Steps to Reproduce:
1. Enter the formula:
{ left [  matrix { a_11 # a_12 # a_13 # a_14 ## a_21 # a_22 # a_23 # a_24 ## bold {a_31} # bold{a_32} # bold{a_33} # bold{a_34}## a_41 # a_42 # a_43 # a_44} right ] } underbrace {A} times{ left [ matrix { b_11 # b_12 # b_13 # bold{b_14} ## b_21 # b_22 # b_23 # bold{b_24} ## b_31 # b_32 # b_33 # bold{b_43} ## b_41 # b_42 # b_43 # bold{b_44} } right ] } underbrace {B}
2. check preview

Actual Results:
underbrace B under both matrices

Expected Results:
underbrace B under the second matrix


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 6.3.2.2
Build ID: 98b30e735bda24bc04ab42594c85f7fd8be07b9c
CPU threads: 4; OS: Mac OS X 10.14.6; UI render: GL; VCL: osx; 
Locale: en-GB (en_GB.UTF-8); UI-Language: en-US
Calc: threaded
Comment 1 V Stuart Foote 2019-10-27 17:57:57 UTC
Confirmed on Windows 10 Heme 64-bit en-US (1903) with
Version: 6.3.2.2 (x64)
Build ID: 98b30e735bda24bc04ab42594c85f7fd8be07b9c
CPU threads: 4; OS: Windows 10.0; UI render: default; VCL: win; 
Locale: en-US (en_US); UI-Language: en-US
Calc: threaded

The sm nodes for the initial matrix and underbrace are evaluated correctly, following the '{} times {}' node, the same syntax for the second matrix and underbarce is not--and the underbrace is applied to both sm matrix nodes. 

Simple workaround of entering the the starmath formula with extra grouping of additonal bracket pairs correctly formats the nodes.

{{ left [  matrix { a_11 # a_12 # a_13 # a_14 ## a_21 # a_22 # a_23 # a_24 ## bold {a_31} # bold{a_32} # bold{a_33} # bold{a_34}## a_41 # a_42 # a_43 # a_44} right ] } underbrace {A}} times {{ left [ matrix { b_11 # b_12 # b_13 # bold{b_14} ## b_21 # b_22 # b_23 # bold{b_24} ## b_31 # b_32 # b_33 # bold{b_43} ## b_41 # b_42 # b_43 # bold{b_44} } right ] } underbrace {B}}

Similar to bug 89865 should not need it but we do.

@Regina, does ODF and MathML require more rigorous handling?
Comment 2 QA Administrators 2021-10-27 03:44:28 UTC Comment hidden (obsolete)
Comment 3 Buovjaga 2023-03-01 09:43:26 UTC
This was discussed in the dev chat recently and Mike Kaganski said:
"changing that would break any *existing* formulas relying on this, while keeping it as it is would only require people to use proper bracing => WF IMO"

So let's close.