missing "%" characters in pdf_tex file

Bug #687344 reported by Oscar
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
Low
Johan Engelen

Bug Description

inkscape version: 0.48
operating system: Fedora 14

Some of the LaTeX commands in pdf_tex files are not terminated by "%" characters. LaTeX therefore adds unwanted space characters to its output.

Example 1:
* Open box.svg
* Save as pdf to generate box.pdf and box.pdf_tex
* Include box.pdf_tex in a LaTeX file (example: test.tex) and draw an fbox around it.
* Process test.tex to obtain test.pdf.
* There will be a gap between the fbox and the figure (see test.pdf).
* Add some "%" charaters to box.pdf_tex as in box+.pdf_tex
* Including box+.pdf_tex in the LaTeX file will give the desired result.

Example 2:
* Open tree.svg
* Save as pdf to generate tree.pdf and tree.pdf_tex
* Include tree.pdf_tex in a LaTeX file (example: test.tex).
* Process test.tex to obtain test.pdf.
* Lines A-E will be centered, but lines F-H won't (see test.pdf).
* Add some "%" charaters to tree.pdf_tex as in tree+.pdf_tex
* Including tree+.pdf_tex in the LaTeX file will give the desired result.

The "%" characters added manually in the above examples should be added automatically by inkscape when generating the pdf_tex files.

Revision history for this message
Oscar (oscar.) wrote :
su_v (suv-lp)
tags: added: exporting latex pdf
Revision history for this message
su_v (suv-lp) wrote :

Is this the same as bug #643849 “export to eps/ps/pdf+LaTeX - unexpected width of figure in LaTeXed document (0.48.0)” or a more generic report and bug #643849 describes a sub-set of the same issue?

«This can be avoided by adding % at every end-of-line of the .xxx_tex-file. Some lines already end with %, but all should do.»
<https://bugs.launchpad.net/inkscape/+bug/643849>

Revision history for this message
Oscar (oscar.) wrote :

Example 1 probably describes the same bug as #643849 which I hadn't been aware of.
Example 2 possibly points out a different bug which could either be resolved by adding "%" characters or by omitting newline characters.

Revision history for this message
su_v (suv-lp) wrote :

@Johan - could you take a look?

Changed in inkscape:
assignee: nobody → Johan Engelen (johanengelen)
Revision history for this message
Johan Engelen (johanengelen) wrote :

Note that in Example 2, there are enters at the end of the text objects in Inkscape. So an easy fix is to remove these. But it did point me to another bug in trunk (not in 0.48.x), so thanks for that :P

Revision history for this message
Johan Engelen (johanengelen) wrote :

fixed and committed (and committed to 0.48.2 too)

Changed in inkscape:
importance: Undecided → Low
milestone: none → 0.48.2
status: New → Fix Committed
Revision history for this message
su_v (suv-lp) wrote :

Inkscape trunk: r10154 and 10155
Inkscape 0.48.x: r9773

Ted Gould (ted)
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.

Duplicates of this bug

Other bug subscribers

Bug attachments