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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to