Drawing medical formulas: cogwheel