Yes, now I see, but isn’t there sth missing in the export from JFreeSVG, that were supposed to fill in between the semicolons? If not, why don’t you just post-process, if possible … … sth like > gsed ’s/;;/;/g' in.svg > out.svg ;-) > On 9. May 2022, at 17:42, Thangalin wrote: > > Hi Heinrich, > > Use the SVG I provided. R and Renjin use two different SVG generators. Renjin uses JFreeSVG when exporting as SVG. As you pointed out, there are no issues with R because it will export an SVG file without any double semicolons. > > In other words, try this: > > \startbuffer[svg] > > style="stroke:rgb(0,0,0);;fill:none" /> > > \stopbuffer > > \starttext > \placefigure{}{\includesvgbuffer[svg][conversion=mp]} > \stoptext > > If you get a black square, that's the bug. If you get a white square, then there's something different about our environment setups. > > Cheers! > > > On Mon, May 9, 2022 at 1:55 AM Heinrich Paeßens > wrote: > Hi there > > I can compile your example without any tweaks, hence could not reproduce any error. > > cheers > Heinrich > > ——— > > R version 4.2.0 (2022-04-22) -- "Vigorous Calisthenics" > Copyright (C) 2022 The R Foundation for Statistical Computing > Platform: x86_64-apple-darwin17.0 (64-bit) > > [R.app GUI 1.78 (8075) x86_64-apple-darwin17.0] > > > svg("/Users/hp/filename.svg"); > > plot(rnorm(200)); > > dev.off() > null device > 1 > > > > ——— > > % !TEX program = lmtx > > \starttext > \externalfigure[/Users/hp/filename.svg][conversion=mp] > \stoptext > > ——— > > > > >> On 9. May 2022, at 08:10, Thangalin via ntg-context > wrote: >> >> Here's a screenshot comparing ConTeXt's PDF output (left) with KeenWrite's preview for the same SVG document: >> >> https://i.ibb.co/68nqwrg/render-r-plot.png >> >> I've filed a bug against Renjin's SVG exporter. >> >> Any guidance on how to fix this is greatly appreciated. >> >> ___________________________________________________________________________________ >> If your question is of interest to others as well, please add an entry to the Wiki! >> >> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context >> webpage : http://www.pragma-ade.nl / http://context.aanhet.net >> archive : https://bitbucket.org/phg/context-mirror/commits/ >> wiki : http://contextgarden.net >> ___________________________________________________________________________________ >