Template-based Typesetting Tool