"--export-latex" does not escape underscores

Bug #1454749 reported by Baradé
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
New
Undecided
Unassigned

Bug Description

I have the following problem: http://tex.stackexchange.com/questions/237691/how-to-escape-underscores-in-the-resulting-pdf-tex-file

It seems that inkscape does not escape underscores in the resulting file. I would have to replace them everytime I generate the file.

Copied from stackexchange question:
===================================
Since my original SVG file contains a class diagram it has many identifiers like "size_t" with underscores I get many errors.

When using the proposed statement to include the graphics it says: Missing $ .... for the line:

    \put(0.00768156,0.29678743){\color[rgb]{0,0,0}\makebox(0,0)[lb]{\smash{+ prepareSpawns(parent : Task*, count : std::size_t)}}}%

How can the underscores in the generated file be replaced?

edit: Using Inkscape 0.48.4 r9939

su_v (suv-lp)
tags: added: exporting latex pdf
su_v (suv-lp)
description: updated
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.