1 2 3 4 5 6
suanpan.mp is the macro file, and abacus.mp is the user file. To process abacus.mp, write metapost abacus.mp The macros are released under the LPPL.