"--export-latex" does not escape underscores

Bug #1454749 reported by Baradé on 2015-05-13
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
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) on 2015-05-13
tags: added: exporting latex pdf
su_v (suv-lp) on 2015-05-13
description: updated
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers