Latex formula rendered upside down

Bug #571373 reported by mycae on 2010-04-28
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Inkscape
Medium
Unassigned

Bug Description

Very minor: Formulae get rendered upside down if you open an EPS file, then attempt to render a latex formula. This is easily worked around by just flipping it.

Everything works fine for normal SVG editing however.

mycae (mycae) wrote :
jazzynico (jazzynico) wrote :

Confirmed on Ubuntu 9.10, Inkscape 0.47 and bzr rev. 9388.
The latex formula is rendered upside down if you open the EPS file (with File>Open), but not if you import it (File>Import or drag and drop).

Changed in inkscape:
importance: Undecided → Medium
status: New → Confirmed
jazzynico (jazzynico) wrote :

The opened EPS drawing main layer has a transform attribute containing: matrix(1.25,0,0,-1.25,0,990), which invert the y axis. If you remove this attribute (with the XML editor) the formula is rendered as expected, but the EPS file is upside down...

Workarounds (if you don't want to flip your formula): create a new layer above the original one, or import the EPS file in a new SVG file instead of opening it directly.

jazzynico (jazzynico) wrote :

Related bug (and probably duplicate or very close):
Bug #169126 "Text boxes appear upside-down after PDF import". (Fix released).

Reappearance of an old bug?

tags: added: importing ps
jazzynico (jazzynico) wrote :

Also reproduced after opening a PDF document.
The only difference with Bug #169126 is that normal text (created with the text tool) is not affected.

tags: added: pdf
su_v (suv-lp) wrote :

Comment #7 in related bug #259329 describes the fix for the text tool as «a hack to set a matrix attribute which "disables" group's matrix by adding reverse matrix» (I haven't figured out the revision that added the 'hack' to the text tool). Can a similar approach be used when inserting the rendering of the LaTeX formula (take into account that PS/PDF and SVG use different coordinate systems, or handle the transformation matrix of the parent group/layer)?

This problem seems to affect other extensions too:
- measure a path in Graph0.eps: the text is inserted upside down
- measure the area of a newly created rectangle: the measurement string is inserted way outside the measured area, upside down as well.

tags: added: eps
removed: ps
su_v (suv-lp) wrote :
Beluga (buovjaga) wrote :

EPS refuses to load with

Traceback (most recent call last):
  File "ps2pdf-ext.py", line 25, in <module>
    from run_command import run
  File "/usr/share/inkscape/extensions/run_command.py", line 66
    except Exception, inst:
                    ^
SyntaxError: invalid syntax

Arch Linux 64-bit, KDE Plasma 5
Inkscape 0.92pre1 15054 (GTK3)

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers