Exercise typesetting