wrong point units in latex output

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

Bug Description

Hi,

- 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:

\documentclass[a4paper]{scrreprt}
\usepackage{graphicx}
\begin{document}
  \newsavebox{\meinebox}%
  \sbox{\meinebox}{\includegraphics{image.pdf}}%
  \newlength{\width}%
  \settowidth{\width}{\usebox{\meinebox}}%
  Width = \the\width
\end{document}

you will get 284.52682pt

http://www.golatex.de/wiki/index.php?title=LaTeX-Einheiten

The Inkscape output should be 'bp' and not 'pt':
\setlength{\unitlength}{283.46455078bp}

Lebostein

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