Add landscape option to the document

Automatically rotate the margins and swap rows with columns when using
landscape
added landscape example
fix format error
Add Avery6871