Apache OpenOffice (AOO) Bugzilla – Issue 66848
distortion of [] in matrix
Last modified: 2021-01-15 07:54:27 UTC
When writing a large matrix enclosed between [] the horizontal part of the [ is verticaly distorted as shown in joined png caption. Example of math code : left [ matrix { a # b ## a # b ## a # b ## a # b ## a # b ## a # b ## a # b ## a # b ## a # b ## a # b ## a # b ## a # b ## a # b ## a # b ## a # b ## a # b ## a # b ## a # b ## a # b ## a # b ## a # b ## a # b## a # b ## a # b ## a # b ## a # b ## a # b ## a # b ## a # b ## a # b ## a # b ## a # b ## a # b ## a # b ## a # b ## a # b ## a # b ## a # b ## a # b ## a # b ## a # b ## a # b } right ] JBF
Created attachment 37408 [details] distortion of [] in matrix formula
If it is about the blots at the top and bottom of scaled brackets that can't be helped. For the time being the bracket size is obtained by stretching the character in one axis only and this of course makes the horizontal line part at the top and bottom that thick. What would be need here is a way to brack up that large bracket in a sinlge top and bottom part and mutliple middle parts that can be use to achieve the required length. A problem here is that Math uses a different mapmode for calculating positions than the one used for drawing. Need to discuss with HDU if anything can be improved here.
In previous version, I think 1.1.3 but in 2004, the distortion of brackets was not so huge. See attached caption of pdf export of an 1.1.x version af the formula.
Created attachment 37410 [details] 1.1.x version of the formula
If I use the formula left [ matrix { 1 ## 2 ## 3 ## 4 ## 5 ## 6 ## 7 ## 8 ## 9 ## 10 ## 11 ## 12 } right ] which has 12 line which is about the same number of lines as the matrices in your sample image, this one looks quite similar to your image from 1.1.3. Thus please update to OOo 2.0.3 and see if it is fine there. (I think OOo 2.0.1 or 2.0.2 had a problem with large fonts, as would be used with that large scaled brackets.) If the result is not sufficient please state the OS as well. Also please provide the formula code e.g. for the outer right matrix. It is inconvenient to use a different formula as example than the one you used to make the screenshots.
Created attachment 37413 [details] Sample image from SRC680 m172, Windows XP
It is the same thing in 2.0.3 RC7 (FR) under w2k sp4 (FR) the code of the formula in caption is : left[ matrix{ alignl matrix{R_M # S_M # ~~~# ~~~}# matrix{~#~#~#~}#matrix{~#~#~#~}## matrix {~ # ~~1# -e_1 # -d_1 ## ~ # ~# R_2 # S_2}#matrix {~#~#~#~##~#~#~#~}#matrix {~#~#~#~##~#~#~#~}## matrix {~#~#~#~##~#~#~#~}#matrix {~#~#~#~##~#~#~#~}#matrix {~#~#~#~##~#~#~#~}## matrix {~#~#~#~##~#~#~#~}#matrix {~ # 1# -e_i # -d_i ## ~ # ~# R_{i+1} # S_{i+1}}#matrix {~#~#~#~##~#~#~#~}## matrix {~#~#~#~##~#~#~#~}#matrix {~#~#~#~##~#~#~#~}#matrix {~#~#~#~##~#~#~#~}## matrix {~#~#~#~##~#~#~#~}#matrix {~#~#~#~##~#~#~#~}#matrix {~ # 1# -e_{N-1} # -d_{N-1} ## ~ # ~# R_N # S_N}## matrix {~#~#~#~}#matrix {~#~#~#~}#matrix{~#~#R_V#~~~S_V} } right] times left[ alignl stack{%DELTA Q_1 # %DELTA Z_1 # %DELTA Q_2#~~~#~~~# %DELTA Z_i # %DELTA Q_{i+1}#~~~#~~~#%DELTA Z_{N-1} # %DELTA Q_N# %DELTA Z_N} right] = left[ alignl stack{T_M # f_1 # T_2#~~~#~~~# f_i # T_{i+1}#~~~#~~~#f_{N-1} # T_N# %T_V} right]
The above formula looks fine with 680m172, Windows XP.
It's not god in OOo2.0.3RC7-fr in a Mandriva 2006. (I can't test with my mandriva cooker because we can't install OOo2.0.3RC in a cooker :( )
TL->jbfaure, troumad: please both of you state what OOo version and which OS you are using. Also use the formula left [ matrix { 1 ## 2 ## 3 ## 4 ## 5 ## 6 ## 7 ## 8 ## 9 ## A ## B ## C } right ] export it to PDF and attach the resulting files to this issue. Thanks!
Created attachment 37414 [details] matrix by OOo2.0.3RC7 under w2k sp4 FR
If I use StarSymbol it is like that from tl, if I use OpenSymbol it is like that from jbfaure. OOo2.0.3rc7de on German WinXP.
What do you mean by "when I use OpenSymbol"? Usually you'll have an StarSymbol or OpenSymbol font installed depending on what program you installed... I just explicitly removed the StarSymbol font thus leaving only the OpenSymbol font and it still looks fine for me. :-/
I just installed OOo 2.0.3 (680m7) which should be the same as OOo2.0.3rc7de, Windows XP and still have the StarSymbol font removed. And the result is fine. I wonder where the difference is...
I changed it in the font-replacement-table in Tools-Options. But it is the same, if I remove the StarSymbol-Font from the Windows Fonts-folder and OOo therefore uses the OpenSymbol font. I have got OpenSymbol version 1.9 date 2005-03-22.
Created attachment 37428 [details] matrix with opensymbol 1.9
add me to cc
The new problem is a result of the changes for 22312. Hinting at least for the simple glyphs could solve several problems at the same time.
TL->IH: Please have a look if it is possible to solve this problem in OOo 2.x Thanks!
IH->Radek: It looks a little bit like our linespacing problem - so please take also care of this one here.
according to release status meeting -> 3.x
+ me on CC ..
It is better with OOo 3.2rc2 under Ubuntu 8.04. I do know why. Please see attachment. Regards. JBF
Created attachment 67244 [details] matrix in OOo 3.2rc2
Seems to be connected to issue 35783.
Yes, this is a duplicate of issue 35783. *** This issue has been marked as a duplicate of 35783 ***