Hi Ethan, Thanks for your comments. I changed the file accordingly: it now includes your code for ending a rectangle by "--cycle;" (ticket 2738), my code for implementing the "template" option, including help texts (feature request 580---this thread), a change in MP_set_font() solving a bug that prevented simple.dem from running correctly, and a small cleanup of the MP_put_text() code; nothing else. I'll have a look at your last request on user-specified colors and polygon fill. Best regards, Edgar...
Hi Ethan, A working version is available, see the attachments. In it I implemented the "template" option with a mandatory argument. I also fixed the bug on the font problem, so running simple.gp in the demo directory should now run smoothly, at least it does so at my side. The documentation is also updated accordingly. When you're fine with this, I can upload the file metapost.trm to sourcefourge. Best regards, Edgar On Friday, 11 October 2024 20:16:32 CEST you wrote: The font problem makes sense...
Hi Ethan, Thanks for looking into this. I see it doesn't work for me either, but that has nothing to do with the 'template' boolean; it's due to the simple.dem file. It specifies font ",20" and metapost chokes on that, because the name of the font (which is "" then) was not recognised. Removed it, and everything went smooth. I indeed cut a corner by setting outputtemplate:="%j.mps"; multiple plots are then written to the same file, effectively erasing all but the last. I had better set something...
mp: insert "outputtemplate" line
incorrect border for term mp
Hi Ethan, I checked the patch: it works, in the sense that the ugly corner is turned into a nice one now. It still has the repetition of the initial point, which is not necessary (in the postscript and pdf terminals this is solved by "re"), but I can imagine that solving that as well in mp is too complicated. Why, by the way, is the border specified twice (halfway and at the end)?