← Back to team overview

ubuntustudio-bugs team mailing list archive

[Bug 1679487] Re: PDF+LaTeX incorrectly replaces \\ (two backslashes) by a newline

 

** Also affects: inkscape
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Studio Bugs, which is subscribed to inkscape in Ubuntu.
Matching subscriptions: Ubuntu Studio Bugs
https://bugs.launchpad.net/bugs/1679487

Title:
  PDF+LaTeX incorrectly replaces \\ (two backslashes) by a newline

Status in Inkscape:
  New
Status in inkscape package in Ubuntu:
  New

Bug description:
  I have an SVG file which contains text like such, the important part
  being the double backslash:

  $\sboundary f = 
  \left[\begin{array}{c} 
  \gamma_1 = [ (e^\circ, \top) ] \\
  \gamma_2 = [ (e^\circ, \top) ]
  \end{array}\right]$

  Using Inkscape 0.91 r13725, on Kubuntu 16.04 64bits, PDF+LaTeX
  converts the text to the following, that is, replaces the double
  backslashes by a newline!

  
      \put(0.50170692,0.32122315){\color[rgb]{0,0,0}\makebox(0,0)[b]{\smash{$\sboundary f = 
    \left[\begin{array}{c} 
    \gamma_1 = [ (e^\circ, \top) ] 
   
    \gamma_2 = [ (e^\circ, \top) ]
    \end{array}\right]$}}}%

  Which makes LaTeX crash with the error:

  Runaway argument?
  {$\sboundary f = \left [\begin {array}{c} \gamma _1 = [ (e^\circ , \top \ETC.
  ! Paragraph ended before \makesm@sh was complete.
  <to be read again> 
                     \par 
  l.64   \end{array}\right]$}}}
                               %

  I do need the backslashes so that the array environment knows where
  the next row starts. It seems Inkscape is trying to be too smart. In a
  previous version of Inkscape (sorry, I don't know which), this text
  used to be correctly exported as the following:

      \put(0.50170692,0.32122315){\color[rgb]{0,0,0}\makebox(0,0)[b]{\smash{$\sboundary f = 
  \left[\begin{array}{c} 
  \gamma_1 = [ (e^\circ, \top) ] \\
  \gamma_2 = [ (e^\circ, \top) ]
  \end{array}\right]$}}}%

To manage notifications about this bug go to:
https://bugs.launchpad.net/inkscape/+bug/1679487/+subscriptions


References