editor: support @paperwidth, @type