Bug 140751 - Formula Editor: Subscript wrongly placed
Summary: Formula Editor: Subscript wrongly placed
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Formula Editor (show other bugs)
Version:
(earliest affected)
7.0.4.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-02 00:27 UTC by Max Schmidt
Modified: 2021-03-02 14:08 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Expected behaviour (2.89 KB, image/jpeg)
2021-03-02 00:30 UTC, Max Schmidt
Details
Formula: original and amended (9.33 KB, image/png)
2021-03-02 10:40 UTC, nutka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Max Schmidt 2021-03-02 00:27:05 UTC
Description:
The subscript is not placed after the absolute sign but before it, although it is written correctly by the math formula. 

For more information see the actual/expected behaviour description.

Steps to Reproduce:
1.Create a new formula: abs{ G_O(j %omega) }_dB
2.Leave the editing mode and view the rendered formular

Actual Results:
The rendered formula contains the dB subscript within (left) of the absolute value 
|..._dB|.

Expected Results:
However, as in the formula noted, the dB-subscript is right of the closing bracket of the absolute term. 

So it is expected to have |...|_dB


Reproducible: Always


User Profile Reset: No



Additional Info:
I don't know whether the
Comment 1 Max Schmidt 2021-03-02 00:30:36 UTC
Created attachment 170165 [details]
Expected behaviour

See this image. I want to create a formula like this, but the decibel-unit is always placed within the absolute symbols.
Comment 2 Max Schmidt 2021-03-02 00:33:10 UTC
*Sorry, the sentence in "more information" has been interrupted*

Additional Info:
I don't know whether the bug also occurs with other operators than the absolute value.
Comment 3 nutka 2021-03-02 10:39:32 UTC
I don't think it's a bug.

If you expect your formula to have |...|_dB
it has to be written as follows:

{ abs{ G_O(j %omega) } }_dB


See the attached image.
Comment 4 nutka 2021-03-02 10:40:35 UTC
Created attachment 170176 [details]
Formula: original and amended
Comment 5 [REDACTED] 2021-03-02 11:08:07 UTC
(In reply to nutka from comment #3)
> I don't think it's a bug.
> 
> If you expect your formula to have |...|_dB
> it has to be written as follows:
> 
> { abs{ G_O(j %omega) } }_dB
> 

Of course this is working. However, selecting "Formats/Subscript right" from the "Elements" sidebar inserts a "<?>_{<?>}" pattern, which makes one assume the curly brackets left of the underscore are not required. I'd expect a "{<?>}_{<?>}" in that case.
Comment 6 Max Schmidt 2021-03-02 11:24:28 UTC
Hello, 

sorry for that confusion! You are right, its working with the "{<?>}_{<?>}" pattern. Yeah, because of the template "<?>_{<?>}", I assumed that the curly brackets left of the underscore were not required.

I will close this bug report.
Comment 7 nutka 2021-03-02 14:08:32 UTC
(In reply to Uwe Auer from comment #5)
> (In reply to nutka from comment #3)
> > I don't think it's a bug.
> > 
> > If you expect your formula to have |...|_dB
> > it has to be written as follows:
> > 
> > { abs{ G_O(j %omega) } }_dB
> > 
> 
> Of course this is working. However, selecting "Formats/Subscript right" from
> the "Elements" sidebar inserts a "<?>_{<?>}" pattern, which makes one assume
> the curly brackets left of the underscore are not required. I'd expect a
> "{<?>}_{<?>}" in that case.

I beg to differ. I'd expect a "{<?>}_{<?>}" to work in that case
only if "abs" became a more complex function in the "Elements" windows
(with additional placeholder). Example: "lim from to".