I'm interested in using Functional MetaPost on Mac OS X:
http://cryp.to/funcmp/
I'm looking for a tutorial like:
http://haskell.org/haskellwiki/Haskell_in_5_steps
but for a trivial FuncMP example, i.e. using GHC, I can compile something simple such as:
import FMP
myPicture = text "blah"
main = generate "foo" 1 myPicture
but I ...
I'm learning metapost and i want to know how to generate a figure like a polygon number http://en.wikipedia.org/wiki/Polygonal_number , i got triangular numbers but not hexagonal.
Thanks for help.
...
I feel that the LaTeX syntax is quite easy to use. However, I'm starting to include diagrams in my document. I've discovered the exciting world of MetaPost! The thing is, the MetaPost syntax looks a little more intense than LaTeX... So I figured I'd buy a book on it. I'm wondering though, whether it's better to buy a generalised book tha...
I have two metapost files:
% test1.mp
beginfig(1):
% foobar code
% code specific to test1
endfig;
end;
% test2.mp
beginfig(1):
% foobar code
% code specific to test2
endfig;
end;
As a programmer, I naturally hate duplication. Is there a way of moving the "foobar code" into a foobar.mp file, and then including this file i...