Inkscape 0.48 with LaTeX: Paragraph ended before \Grot@box@std was complete

Bug #628677 reported by Damien Cassou on 2010-09-02
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Undecided
Johan Engelen

Bug Description

Compiling the attached tex master file (which included attached very simple svg file) with pdflatex results in the following output:

  (./test.pdf_tex
  <test.pdf, id=1, 34.33789pt x 8.54823pt> <use test.pdf>
  Runaway argument?
  {\makebox (0,0)[b]{\smash {Simulated environment
  ! Paragraph ended before \Grot@box@std was complete.
  <to be read again>
                     \par
  l.53 }}}}
           %
  ?

I'm using 'Inkscape 0.48+devel r8974' from ubuntu.cafuego.net on Ubuntu 10.4.

$ pdflatex --version
pdfTeX 3.1415926-1.40.10-2.2 (TeX Live 2009/Debian)
[...]

Damien Cassou (cassou) wrote :
su_v (suv-lp) on 2010-09-02
tags: added: exporting pdf
removed: pdflatex tex
Changed in inkscape:
assignee: nobody → Johan Engelen (johanengelen)
Johan Engelen (johanengelen) wrote :

Thanks for finding this bug. As a temporary work-around: delete all enters at the end of the text. (you cannot see them in the UI but they are there. simply go to the end of the text and press 'del' 5 times)

Damien Cassou (cassou) wrote :

I confirm the work-around. Thank you

Changed in inkscape:
status: New → Confirmed
Andreas Becker (abecker) wrote :

The \makebox should be replaced by a \parbox or even a minipage. Not just newlines work in a parbox, but also complex formatting like lists etc.

Johan Engelen (johanengelen) wrote :

I agree it is a pity that the export functionality uses \makebox for unflowed text, such that \\ and other LaTeX commands do not work. However, if you want me to 'fix' it, please provide a detailed way how. Simply replacing \makebox with \parbox does not work, of course.
Note that flowed textboxes (look up the difference if you do not know) use minipage and allow you to do all kinds of fancy things.

tags: removed: pdf
Johan Engelen (johanengelen) wrote :

The reason parbox doesn't work (or minipage), is that you have to specify a width for such a box. The width cannot be known during LaTeX export, because the fontsize is not known (as an example, think about exporting right-aligned text).
What may work is \shortstack. But then how to do the vertical alignment? (baseline of inkscape text is same as baseline of the first line in final output after latex compilation)

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

Other bug subscribers