Description of problem: When I run klatexformula (eitehr klatexformula-4.0.0-1.mga6 or klatexformula-4.0.0-4.mga7) The window in which latex writes the compiled formula is too small for the written text. Thus {1\over r} looses almost all of the 1, e^{ix} looses all except the very lowest part of the "ix". This is useless. Version-Release number of selected component (if applicable): How reproducible: Always. The program is useless as it stands. It may well be that it is a problem with latex, or with the way klatex calls latex. It works find in Mageia 6. It is completely broken in Mga7 Steps to Reproduce: Always 1. 2. 3.
Created attachment 11024 [details] Picture of the bad output of klatexforumla As can be seen the display "window" is too small for the formula cutting off, in this case the "1". I made the background colour of the display white rather than transparent so one could see the background.
Assigning to the registered maintainer.
Assignee: bugsquad => mageiaCC: (none) => marja11
I have discovered that if I uncheck the ToggleShirnkExpandMode->Settings->Latex&Image-> RecalculateBoundingBox then things seem to work correctly. That this item was checked was either a holdover of past (eg Mga6) useage, or it was the default. While checking this box works in Mga6, it does not work in Mga7. Mga needs to make sure that unticked of this box is the default. (I suppose ghostscript is behaving differently in the two versions)
According to the author Philippe Faist, this is a bug in ghostscript 2.97 (used on Mageia 7) https://sourceforge.net/p/klatexformula/bugs/46/ It is apparently fixed in ghostscript git, but is not yet in any distribution of ghostscript. So at present the best "fix" is to make sure that by default klatexformula has that option in comment 3 unchecked in the Mageia 7 distribution.
This is claimed to be solved in ghostscript 9.27~dfsg-2 on debian buster
Created attachment 11250 [details] Patch included in Debian ghostscript-9.27~dfsg-2 to fix this problem Debian claims that the patch included in Buster ghostscript-9.27~dfsg-2 fixes this problem of ghostscript creating the wrong bounding box. The Debian patch is included here.
Patch added for Cauldron and also for mga7 in 7/Core/updates_testing repo! Please test it to see if it fixes your issue, thanks in advance!
CC: (none) => geiger.david68210
Depends on: (none) => 25294
An update for this issue has been pushed to the Mageia Updates repository. https://advisories.mageia.org/MGASA-2019-0236.html
Resolution: (none) => FIXEDCC: (none) => tmbStatus: NEW => RESOLVED