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

Bug #628677 reported by Damien Cassou
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Confirmed
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)
[...]

Revision history for this message
Damien Cassou (cassou) wrote :
Revision history for this message
Damien Cassou (cassou) wrote :
su_v (suv-lp)
tags: added: exporting pdf
removed: pdflatex tex
Changed in inkscape:
assignee: nobody → Johan Engelen (johanengelen)
Revision history for this message
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)

Revision history for this message
Damien Cassou (cassou) wrote :

I confirm the work-around. Thank you

Changed in inkscape:
status: New → Confirmed
Revision history for this message
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.

Revision history for this message
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
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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