Re: Previewing an SVG generated by METAPOST
William Adams <[email protected]> Fri, 10 May 2019 09:51:44 -0400
| Newsgroups | gmane.comp.tex.metapost |
|---|---|
| Message-ID | <CAENrYJDmgGLoGEu7s_UZo7SpVY7f+dBJtnAJ5Zs-=ScUv-pt_Q@mail.gmail.com> |
I believe that what I should conclude is that the extent of a graphic is only calculated from the centerline of a graphic and that the clipping is to be expected if I don't explicitly adjust for it. Thanks! I'll begin to do so. William On Fri, May 10, 2019 at 9:47 AM luigi scarso <[email protected]> wrote: > > > On Thu, May 9, 2019 at 9:13 PM William Adams <[email protected]> > wrote: > >> With v1.8, METAPOST allows one to create an SVG --- unfortunately, there >> aren't any TeX / code editors which have SVG previewers as far as I can >> tell. >> >> Found: >> >> https://code.google.com/archive/p/file-monitor/ >> >> but it seems to be broken in Windows 10 --- one has to switch to its >> window and press F5 --- is there an updated version of this program, or >> some other easy way to preview an SVG? >> >> An application with nice tools for this would be welcome. >> >> BTW, the file: >> >> outputtemplate := "%j-%c.svg"; prologues := 3; outputformat := "svg"; >> beginfig(1); z0 = (0,0); z1 = (60,40); z2 = (40,90); z3 = (10,70); z4 = ( >> 30,45); draw z0..z1..z2..z3--z4--cycle endfig; end >> >> >> is clipped at the top --- should it be? >> >> William >> >> >> the pen ? > > prologues := 3; > outputformat := "svg"; > beginfig(1); > z0 = (0,0); z1 = (60,40); > z2 = (40,90); z3 = (10,70); > z4 = (30,45); > > draw z0..z1..z2..z3--z4--cycle withpen pencircle scaled 0.001pt; > endfig; > end > > > -- > luigi > -- > http://tug.org/metapost/ -- http://tug.org/metapost/