Bug 159589 - Math baseline alignment doesn't work
Summary: Math baseline alignment doesn't work
Status: RESOLVED DUPLICATE of bug 159302
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.2.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2024-02-06 08:15 UTC by Dorange-Pattoret Didier
Modified: 2024-02-13 17:41 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Screen copy 1 (6.34 KB, image/png)
2024-02-06 08:18 UTC, Dorange-Pattoret Didier
Details
Screen copy 2 (14.57 KB, image/png)
2024-02-06 08:18 UTC, Dorange-Pattoret Didier
Details
Sample ODT with Inline Fractions[LO24.2.0] (15.33 KB, application/vnd.oasis.opendocument.text)
2024-02-06 09:41 UTC, Tex2002ans
Details
Inline Fractions Aligning in LO Math 24.2.0 (15.34 KB, image/png)
2024-02-06 09:53 UTC, Tex2002ans
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dorange-Pattoret Didier 2024-02-06 08:15:35 UTC
Description:
Formulas are not vertically aligned with text.
The problem comes with new LO 24.2

Steps to Reproduce:
1. Insert some formulas, write some text and see the result.
2.
3.

Actual Results:
Formulas are not vertically aligned with text.

Expected Results:
Formulas vertically aligned with text.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 24.2.0.3 (X86_64) / LibreOffice Community
Build ID: da48488a73ddd66ea24cf16bbc4f7b9c08e9bea1
CPU threads: 4; OS: Linux 5.19; UI render: default; VCL: gtk3
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Calc: threaded

Same problem under Windows.
Comment 1 Dorange-Pattoret Didier 2024-02-06 08:18:14 UTC
Created attachment 192420 [details]
Screen copy 1
Comment 2 Dorange-Pattoret Didier 2024-02-06 08:18:48 UTC
Created attachment 192421 [details]
Screen copy 2
Comment 3 Tex2002ans 2024-02-06 09:41:51 UTC
Created attachment 192425 [details]
Sample ODT with Inline Fractions[LO24.2.0]

Attaching sample ODT with your 3 example equations/text.

> The problem comes with new LO 24.2

I suspect previous version of LO (7.6), it worked fine? (Which version were you last using where it worked?)

- - -

I confirm my Writer ODT looks like your screenshot in:

Version: 24.2.0.3 (X86_64) / LibreOffice Community
Build ID: da48488a73ddd66ea24cf16bbc4f7b9c08e9bea1
CPU threads: 8; OS: Windows 10.0 Build 22631; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

- - -

To find these maths options in Writer, go to:

- Tools > Options
- LibreOffice Writer > Formatting Aids

and under "Layout Assistance", you'll see:

- Math baseline alignment

Right now, under LO 24.2.0, turning it ON or OFF made no difference.

- - -

Note #1: I also recreated the same exact text in LibreOffice Math, and it does look like it's properly "vertically centering/aligning" the fractions+text+variable there.
Comment 4 Tex2002ans 2024-02-06 09:53:01 UTC
Created attachment 192426 [details]
Inline Fractions Aligning in LO Math 24.2.0

In LO Math, you'd type:

> {1 over 10} "and" {10 over x} "and" vec{u}.

(See attached PNG of results.)

I suspect that's how Writer's text USED to look/align? So:

- the "fraction lines" would align with the middle of the "and". 
- the bottom of "u-hat" would align with the bottom of "and".
Comment 5 Dorange-Pattoret Didier 2024-02-06 10:12:37 UTC
I tried with LO 7.6.4.1 and it works fine.

Version: 7.6.4.1 (X86_64) / LibreOffice Community
Build ID: e19e193f88cd6c0525a17fb7a176ed8e6a3e2aa1
CPU threads: 2; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: Skia/Raster; VCL: win
Locale: fr-FR (fr_FR); UI: fr-FR
Calc: threaded
Comment 6 Julien Nabet 2024-02-06 10:55:12 UTC
Let's put back Writer and indicate it's a regression since it was ok in 7.6.4
Also since it's been reproduced by someone else, let's put this one to NEW.
Comment 7 Tex2002ans 2024-02-06 12:32:57 UTC
(In reply to Dorange-Pattoret Didier from comment #5)
> I tried with LO 7.6.4.1 and it works fine.

Fantastic. Thanks. :)

So definitely a regression.

Since it happened very recently, hopefully it'll get found/squished fast.

Great catch. :)

(In reply to Julien Nabet from comment #6)
> Also since it's been reproduced by someone else, let's put this one to NEW.

Thanks, Julien.
Comment 8 Dorange-Pattoret Didier 2024-02-06 14:09:20 UTC
Same problem under Mac

Version: 24.2.0.3 (X86_64) / LibreOffice Community
Build ID: da48488a73ddd66ea24cf16bbc4f7b9c08e9bea1
CPU threads: 4; OS: macOS 14.2.1; UI render: Skia/Metal; VCL: osx
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Calc: threaded
Comment 9 Regina Henschel 2024-02-07 01:49:49 UTC
Duplicate to bug 159302?
Comment 10 Alex Thurgood 2024-02-07 10:05:12 UTC

*** This bug has been marked as a duplicate of bug 159302 ***