A search for spur gear design leads to more info. This is from a search for spur gear kinematics:
Fellows Gear shaper the art of Generating Gears
http://www.youtube.com/watch?v=A3X8cuJKyns
I'm guessing if you are looking for spacing, you should probably look more into gear design - it's got a lot of formulas, but it isn't very difficult.