[NTG-context] Re: how to include an an svg file?

2024-03-16 Thread Jean-Pierre Delange
Dear CTX wizards, The commands given by Hans don't work properly in my case (with CTX on Windows 11). I am probably ignorant of how to implement \startMPpage. I'm not a "MetaPost lover", but I'd like to understand something; especially as I know how to make simple frames to include summaries.

[NTG-context] Re: how to include an an svg file?

2024-03-15 Thread seyal zavira
Thanks you and harban for all your thorough explanation. On Fri, 15 Mar 2024, 23:11 Hans Hagen via ntg-context, wrote: > On 3/13/2024 9:16 AM, Henning Hraban Ramm wrote: > > Am 12.03.24 um 23:59 schrieb seyal zavira: > >> You are correct. when i convert this svg to pdf via inkscape it works >

[NTG-context] Re: how to include an an svg file?

2024-03-15 Thread Hans Hagen via ntg-context
On 3/13/2024 9:16 AM, Henning Hraban Ramm wrote: Am 12.03.24 um 23:59 schrieb seyal zavira: You are correct. when i convert this svg to pdf via inkscape it works like a charm. But what is standard way of including an svg file with context if we want to inkscape render the images?

[NTG-context] Re: how to include an an svg file?

2024-03-13 Thread Jean-Pierre Delange
Hraban, Thank a lot for these clarifications ! Jean-Pierre > Le 13 mars 2024 à 13:41, Henning Hraban Ramm a écrit : > > Am 13.03.24 um 13:14 schrieb Jean-Pierre Delange: >> Hi Hraban & Seyal >> I can confirm that converting the *.svg file into a *.pdf file displays the >> colour shades

[NTG-context] Re: how to include an an svg file?

2024-03-13 Thread Henning Hraban Ramm
Am 13.03.24 um 13:14 schrieb Jean-Pierre Delange: Hi Hraban & Seyal I can confirm that converting the *.svg file into a *.pdf file displays the colour shades correctly ... (I used Gimp to export the smile.svg file to a smile03.pdf file). Gimp is a really bad choice in this case, since it

[NTG-context] Re: how to include an an svg file?

2024-03-13 Thread Jean-Pierre Delange
Hi Hraban & Seyal I can confirm that converting the *.svg file into a *.pdf file displays the colour shades correctly ... (I used Gimp to export the smile.svg file to a smile03.pdf file). The MWE below works correctly, even if you have to make finer adjustments to place the figure in a

[NTG-context] Re: how to include an an svg file?

2024-03-13 Thread Henning Hraban Ramm
Am 12.03.24 um 23:59 schrieb seyal zavira: You are correct. when i convert this svg to pdf via inkscape it works like a charm. But what is standard way of including an svg file with context if we want to inkscape render the images? \externalfigure[smile] without any other settings, but

[NTG-context] Re: how to include an an svg file?

2024-03-12 Thread seyal zavira
Thanks. I appreciate your work You are correct. when i convert this svg to pdf via inkscape it works like a charm. But what is standard way of including an svg file with context if we want to inkscape render the images? On Tue, 12 Mar 2024, 21:51 Hans Hagen, wrote: > On 3/12/2024 2:53 PM,

[NTG-context] Re: how to include an an svg file?

2024-03-12 Thread Hans Hagen
On 3/12/2024 2:53 PM, seyal zavira wrote: thanks for your reply yes but i don't have problem with regular svgs but when svgs has gradient color it does not produce any color in output. you can see my svg in attachment. svg gets worse and worse (esp the inheritance model) ... anyway, i can

[NTG-context] Re: how to include an an svg file?

2024-03-12 Thread Jean-Pierre Delange
Yes, the code given by Seyal gives only the circle vith eyes and mouth without colors (on my computer). But, It seems that one have to deal with a more complex lines of code. If I'm not mistaken, MetaPost alone natively supports only the 3 colours red, green and blue. To support CMYK colour

[NTG-context] Re: how to include an an svg file?

2024-03-12 Thread Henning Hraban Ramm
Am 12.03.24 um 14:53 schrieb seyal zavira: > when i want to put some SVGs in my document the svg does not render properly here is the code: > > \starttext > \startMPcode > draw lmt_svg [ > filename = "smile.svg"] > \stopMPcode > \stoptext I can

[NTG-context] Re: how to include an an svg file?

2024-03-12 Thread seyal zavira
thanks for your reply yes but i don't have problem with regular svgs but when svgs has gradient color it does not produce any color in output. you can see my svg in attachment. On Tue, Mar 12, 2024 at 9:43 AM Jean-Pierre Delange wrote: > Hi ! > > Did you have a look at this : > >

[NTG-context] Re: how to include an an svg file?

2024-03-12 Thread Jean-Pierre Delange
Hi ! Did you have a look at this : https://wiki.contextgarden.net/SVG Le 12/03/2024 à 14:36, seyal.zav...@gmail.com a écrit : hi all. when i want to put some SVGs in my document the svg does not render properly here is the code: \starttext \startMPcode draw lmt_svg [ filename =