On Thu, Feb 06, 2003 at 11:35:14PM +0100, Giuseppe Bilotta wrote:
Thursday, February 6, 2003 Jens-Uwe Morawski wrote:
JUM> as you know, PSTricks is a huge package, so where to start?
JUM> - what features are needed JUM> - who can write the TeX interface JUM> - i could help with some MP code
Ok, the precise set of features I need is the one used by the excellent Eukleides program (http://perso.wanadoo.fr/obrecht/); while I was trying to port it to MetaPost and begun converting the instructions I knew how to convert I realized that a full (or as complete as possible) PSTricks emulation would have been the best thing ---and that it could have already been implemented. Which is why I asked :)
In particular, there are a few things that I currently see as "missing" in (plain) MetaPost (and which I couldn't find in MetaFun either); for example, there is no macro that allows to "add" drawoptions; you can only replace them altogether. PSTricks, OTOH (at least for what I could see) has a default color, pensize and line style which can be changed singularly (MetaPost seems to only do this for the pen --currentpen; it doesn't have a currentcolor or currentstyle).
Hello, I suppose you have already had a look at metaobj? ftp://ftp.tex.ac.uk/tex-archive/graphics/metapost/contrib/macros/metaobj/ It implements many of pstricks' features (see pages 93 and following in the manual). If you develop something new, it is worth checking what ideas you could borrow from metaobj. At the end of the metaobj manual, there are also hints for a TeX interface. Denis