Structured Editing Of Handwritten Mathematics