| Search Locate Previous Next | Contents |
If you are preparing output for double-sided printing, you may require different layouts for left and right pages, for example to leave a large inside margin for spiral binding of the finished report.
To set up a sequence of pages, first design them as normal, being careful to get the measurements balanced:
plDesign 'left' plDesign 'right'
Then set up a sequence of pages:
nlUse left right © NB no quotes here!!
If you set up a list of two pages, NewLeaf will simply alternate them. If you provide a longer list NewLeaf will use them from the left until only two remain, which will then alternate as before. This allows the possibility of a set of custom opening pages, perhaps for contents or copyright details, followed by alternating masters.
Of course you can simply supply a vector of layouts to accommodate the entire report, if you know exactly how much space your text will require and are willing to do all page throws under application control. Otherwise, call nlSwitch to change layout in flight when you need to.
Booklets
If you need to prepare a report for duplex printing as a booklet (e.g. pages 8-9 facing, backed by pages 10-7 and so on) you can spool the report and use nlInclude with nlFetch to assemble it. See the Booklet example in the NewLeaf workspace.
nlUse ''
nlPlace 645½txt
nlNumPages ''
13
qqnlSpool 'temp' © NOT the default name!
psView qq
OK
Booklet qq © Generates 2 new spool files