wrong point units in latex output

Bug #792384 reported by Lebostein
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
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)
description: updated
Lebostein (lebostein)
description: updated
description: updated
description: updated
su_v (suv-lp)
tags: added: exporting latex pdf
Lebostein (lebostein)
description: updated
Revision history for this message
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....

Revision history for this message
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)
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.