[NTG-context] beta

Hans Hagen j.hagen at xs4all.nl
Tue Oct 29 14:21:36 CET 2019


On 10/28/2019 10:00 PM, Floris van Manen wrote:
> 
> 
> On 28-10-2019 19:20, Hans Hagen wrote:
>>
>> As a teaser ... it is also possible to embed svg code, as in:
>>
>> \startbuffer[svgtest]
>> <svg>
>>      <circle
>>          cx="50" cy="50" r="40"
>>          stroke="green" stroke-width="10" stroke-opacity="0.3"
>>          fill="red" fill-opacity="0.3"
>>      />
>>      <circle
>>          cx="150" cy="50" r="40"
>>          stroke="green" stroke-width="10"
>>          fill="red"
>>          opacity="0.3"
>>      />
>> </svg>
>> \stopbuffer
>>
>> \startTEXpage
>>      \includesvgbuffer[svgtest]
>> \stopTEXpage
>>
>> \startTEXpage
>>      \includesvgbuffer[svgtest][offset=2bp]
>> \stopTEXpage
> 
> Nice !
> It seems that it does not retains the <g> grouping and layering in
> place. e.g. everything ends up in one layer and one group.
You mean: produce pdf layers? Well, imo usage of <g> is so messy and 
inconsistent that it doesn't pay off, apart from overhead. But grouping 
as way of combining properties is supported.

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list