support mixed typesetting