I am interested in using Functional MetaPost on Mac OS X:
http://cryp.to/funcmp/
I am looking for a tutorial, for example:
http://haskell.org/haskellwiki/Haskell_in_5_steps
but for a trivial FuncMP example, that is, using GHC, I can compile something simple, for example:
import FMP
myPicture = text "blah"
main = generate "foo" 1 myPicture
but i can't figure out how to view this output foo.1.mp. (It gives a runtime error without finding "virmp", my MetaPost build is "mpost", I can’t figure out how to override this parameter or what my .FunMP file is or should do ...) I can run mpost, but the output (foo.1.1) is what, PostScript? EPS? How to use it? (I think I just need a simple LaTeX file with an EPS drawing in it, or something else ...)
Preferably, I would like to generate output (.ps or .pdf that I can view), so I actually get somewhere with Functional MetaPost, studying it, playing with it, without banging my head on the path and the binaries and shell of the command .
source
share