Page one

This document uses @page book:left and @page book:right so that facing pages get mirrored inner margins, the way a printed book is laid out.

The left/right template pair is expanded into an alternating cycle by PmlBaseDoc.handle_nextPageTemplate. A stray sys.exit() in that branch used to terminate the calling process outright, so this feature never worked.

Page two

The content frame on this page starts at a different horizontal offset than the previous one. If the templates stop alternating, this page shifts and the rendered output changes.

Page three

Back to the first offset of the cycle.

Page four

And back to the second. Four pages are enough to show the cycle repeating rather than merely being applied once.