Includesvg with % sign

The error appears to be in inkscapes combined tex/pdf export as it fails to quote the % in text. It is also hard to use \catcode to make % a normal chanacter that does not need quoting as it inserts a % at the end of almost every line.

the simplest fix it to edit svg-inkscape/filename_svg-tex.pdf_tex (which is generated after the first run)

\put(-0.11824539,0.01843611){\color[rgb]{0,0,0}\makebox(0,0)[lt]{\lineheight{1.25}\smash{\begin{tabular}[t]{l}\textit{%}\end{tabular}}}}%

changing % to \% to get

   \put(-0.11824539,0.01843611){\color[rgb]{0,0,0}\makebox(0,0)[lt]{\lineheight{1.25}\smash{\begin{tabular}[t]{l}\textit{\%}\end{tabular}}}}%

the package does not over-write the file on later runs so it will be included without error if you re-run latex on the main file.

Tags:

Svg

Characters