PDF+LaTeX incorrectly replaces \\ (two backslashes) by a newline
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
New
|
Medium
|
Unassigned | ||
inkscape (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I have an SVG file which contains text like such, the important part being the double backslash:
$\sboundary f =
\left[\
\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(
\left[
\gamma_1 = [ (e^\circ, \top) ]
\gamma_2 = [ (e^\circ, \top) ]
\end{
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>
l.64 \end{array}
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(
\left[\
\gamma_1 = [ (e^\circ, \top) ] \\
\gamma_2 = [ (e^\circ, \top) ]
\end{array}
tags: | added: exporting extensions-plugins latex pdf |
Changed in inkscape: | |
importance: | Undecided → Medium |
PDF export