Search Locate Previous Next Contents

Adding Extra Paper Sizes

NewLeaf stores information for several standard paper sizes in the three-column nested matrix nl‘papers:

     nl‘papers[1 8 9;]
1 US Letter 612 792 
8 A3 842 1191 
9 A4 595 842

There is one row for each paper size. The columns contain:

  1. An integer scalar, the unique numeric identifier.
  2. A mixed-case text vector, the unique name of the paper (e.g., ‘A4’, ‘US Letter’).
  3. A two-element numeric vector, the width and height, respectively, of the paper in points (72 points = 1 inch).

The optional pg type object in a NewLeaf page layout can contain values for the paper and orientation properties of the document. When the paper property is specified explicitly, NewLeaf looks in the second column of nl‘papers to find a matching name. The values in column three of the corresponding row are then used as the paper size. If there is no match, or if no explicit value is given for the paper property, NewLeaf uses the paper size associated with the current printer. To include a new paper size, run nlDefinePaper giving a unique name, and the width and height:

nlDefinePaper 'Causeway' (72×7 11)

This adds the new data (width and height in points) to the bottom of this matrix. Remember to re-apply any changes whenever you upgrade NewLeaf.



Continue to: Adding Extra Fonts
© Copyright Causeway Graphical Systems Ltd 2001