mrpiggi / svg

Handling SVG pictures in LaTeX documents using Inkscape, ImageMagick and/or Ghostscript
Other
65 stars 11 forks source link

Compilation fails for specific images #56

Closed nameiwillforget closed 9 months ago

nameiwillforget commented 9 months ago

I've been using this package for some time now and never had any issues but now when I use it to include some svg images in a file the compiler complains about misplaced syntax. I'm a bit confounded by this because the compiler doesn't complain about other very similar images and I can't really see what distinguishes some from others. My only possible explanation is that it is perhaps about some of the symbols used in some images. I've included the images for which compilation fails. For the first image, called layer3.svg, the compiler says

ERROR: Missing } inserted.

--- TeX said ---
<inserted text> 
}
l.89 ...smash{\begin{tabular}[t]{l}}\end{tabular}}}}
                                                  %

about the line

\put(0.77545014,0.14246878){\color[rgb]{0,0,0}\makebox(0,0)[lt]{\lineheight{1.25}\smash{\begin{tabular}[t]{l}}\end{tabular}}}}%

Similarly, for the second image, DEmacs C-1.svg, the compiler complains about a missing } bracket in the line

\put(0.51608735,0.16528667){\color[rgb]{0,0,0}\makebox(0,0)[t]{\lineheight{1.25}\smash{\begin{tabular}[t]{c}{[\\Cite\\]}\end{tabular}}}}%   

and similar for the other images. Compilation happened on Emacs 30.0.5 using LuaLaTeX and a recently upgraded texlive-distribution.

layer3 DEmacs C-1 DEmacs C-3 DEmacs C-6

If these images are commented out, compilation succeeds though there are lots of similar images in the document.