Using ad hoc paper sizes

This snippet shows how to define custom paper sizes.