[metapost] svg_out like ps_out?

Taco Hoekwater taco at elvenkind.com
Thu Aug 9 10:08:01 CEST 2012


On 08/09/2012 09:58 AM, Taco Hoekwater wrote:
>
> Hi,
>
> On 08/08/2012 09:00 AM, Shriramana Sharma wrote:
>> Currently it is possible to generate PS code for MP figures using
>> mp_ps_ship_out and access it from mp_run_data's ps_out member. (About
>> this I have a few questions which I will separately ask.) Can the
>> developers please add svg_out and mp_svg_ship_out to generate and
>> access SVG code likewise?
>
> I do not see why not. As you guessed, it should be very simple indeed.

In fact, you should be able to call

	int mp_svg_ship_out (mp_edge_object *hh, int prologues);

already, after #include "mplibsvg.h". The only odd thing about it
is that it reuses the ps_out output channel (which is somewhat
inappropriately named).

Best wishes,
Taco




More information about the metapost mailing list