Issue 120304 - Bad alignment inside math matrices
Summary: Bad alignment inside math matrices
Status: REOPENED
Alias: None
Product: Math
Classification: Application
Component: code (show other issues)
Version: 3.4.0
Hardware: All All
: P3 Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-18 06:39 UTC by Luc P.
Modified: 2015-12-04 12:45 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Alignment In Math Matrix With OOo3.4 & OOo3.3 (83.58 KB, application/pdf)
2012-07-18 06:39 UTC, Luc P.
no flags Details
Document with one matrix with alignr and alignl (6.82 KB, application/vnd.oasis.opendocument.formula)
2012-07-18 10:22 UTC, Regina Henschel
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Luc P. 2012-07-18 06:39:09 UTC
Created attachment 78675 [details]
Alignment In Math Matrix With OOo3.4 & OOo3.3

The « alignr » math formula command is no more efficient since OOo 3.4 when used for aligning to the right the objects inside a column of a math matrix (a math matrix is a table with columns and rows).

Look at the two pdf attachments : one has been compiled and exported with OOo 3.4, the other one with OOo 3.3.

This bug arises only with the new version of OOo – so it is a « regression ».
It is a « release_blocker » because I will get rid of OOo 3.4 and re-install OOo 3.3 (which is inoperant since I've intalled OOo 3.4). 

I've joined (hybrid) pdf formats to make sure you see the differences between those two versions.

Luc P.
Comment 1 Regina Henschel 2012-07-18 10:21:18 UTC
The wrong alignment is caused by the minus sign. A plus sign produces the wrong alignment too. The alignment is wrong too for alignl. The error is only in a matrix, not in a stack.

It seems, that the position is shifted one place to the left.


Workaround: Add an empty text "" or an empty operand {} before the minus sign.
Comment 2 Regina Henschel 2012-07-18 10:22:40 UTC
Created attachment 78678 [details]
Document with one matrix with alignr and alignl
Comment 3 Regina Henschel 2012-07-18 13:08:01 UTC
The alignment is OK in DEV300m93 (around 2010-11-15) and broken in DEV300m94 (around 2010-12-03).
Comment 4 Luc P. 2012-07-18 13:35:28 UTC
I surely prefer to use OpenOffice 3.3 and LibreOffice 3.3.4 instead of OO 3.4 or LO 3.5.5 when having to write matrices, which means quite often while teaching linear algebra.

The syntax was then fairly easy and clear : writing the « alignr » command only once before the matrix command was enough.
And also that simple with « alignc » and « alignl » if necessary.

Now, with the new versions, would we have to write the alignment commands erratically with a lot of symbols (`,~," " ) to adjust spacing ? Doesn't it become "monstruous" and annoying ? I mean, this workaround is not a real solution : there IS a real bug over there.

I observe regression occurs.
I hope it will be corrected in the next version.
It is an obstacle to convincing my math colleagues to quit Micro$oft for OO or LO.
And using "old" versions is a risk on security, it seems.

Incidently, the installation of OO 3.4 destroyed my "old" 3.3 version.

After having lost hours of web researches, I finally found the OO 3.3 and the LO 3.4 versions.
One at http://www.openoffice.org/download/legacy/index.html ,
the other at http://downloadarchive.documentfoundation.org/libreoffice/old/
Don't forget to uninstall OO 3.4 before a clean re-install of OO 3.3.
Comment 5 Luc P. 2014-10-01 20:55:32 UTC
Here is the easy way I found to resolve this problem I pointed out 2 years ago.

Inside the matrix code (in Math module), negative numbers should be written with the large minus sign « – », instead of the narrow one « - ».

On an Apple mac keyboard, the large minus sign is obtained via simultaneous keys [alt][maj][+=], where [maj] stands for the (majuscule) capital letters key.

The output in Text (out of Math module) is the same large minus sign, but the alignment (left, center, right) is now respected.

Tested on LO 4.2.6.2 and OO 4.1.1 (running under Mavericks).
Comment 6 Regina Henschel 2015-12-04 12:45:30 UTC
This is not fixed. Using a minus as text is only a workaround for using a negative number. This workaround works the same as putting an empty string before the number.

A "fix" needs a change in the core.