wrong point units in latex output

Bug #792384 reported by Lebostein on 2011-06-03
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Johan Engelen

Bug Description


- create an Inkscape image with 100 mm width
- export the image with latex output
- check the pdf_tex file, you can see: \setlength{\unitlength}{283.46455078pt}

That is wrong!
* Inkscape use the postscript point unit (1 millimeter = 2.83464567 PostScript points = Big Point)
* LaTeX use the normal point unit (1 millimeter = 2.84528 pt)
--> The Inkscape generated width is to small!

If you measure this 100 mm image with latex:

  Width = \the\width

you will get 284.52682pt


The Inkscape output should be 'bp' and not 'pt':


Lebostein (lebostein) on 2011-06-03
description: updated
Lebostein (lebostein) on 2011-06-03
description: updated
description: updated
description: updated
su_v (suv-lp) on 2011-06-03
tags: added: exporting latex pdf
Lebostein (lebostein) on 2011-06-03
description: updated
Lebostein (lebostein) wrote :

The difference seems small, but you can see this!

I had been wondering why my text is not centered exactly.
After changing from 'pt' to 'bp' in pdf_tex file, the text was centered exactly!!


I think you can fix this bug in few seconds....

Johan Engelen (johanengelen) wrote :

Thanks a lot for the detailed report and solution. Indeed a 2 second fix :-)
(backported to 0.48.2)

Changed in inkscape:
assignee: nobody → Johan Engelen (johanengelen)
milestone: none → 0.48.2
status: New → Fix Committed
Ted Gould (ted) on 2011-09-07
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers