12.3.25. Page

A special type of canvas that represents a page, adding some commodities as margins, headers and page numbers.

Pages often work as the outmost canvas, to which the @silk measures refer (see silk reference)

Pages are used for displaying several figures. for text, use the report object

See also: canvas, frontPage, report

12.3.25.1. Parameters

  • size: the size of the page. a vector of size 2 or one of the constants in this list below.
  • margins: sizes of the margins, as a vector with top, left, bottom, right margin distances, or percentages of page width (for vertical margins too).
  • margin.inner: size of inner margin
  • margin.outer: size of outer margin
  • margin.top: size of top margin
  • margin.bottom size of bottom margin
  • margin.left: size of left margin
  • margin.right: size of right margin
  • header : header to write in all the pages
  • header.odd : header for odd pages
  • header.even : header for even pages
  • footer.odd : footer for odd pages
  • footer.even : footer for even pages

It’s an error to define header and header.odd or header.even at the same time. Same goes for footer

  • active-area : a rectangle with the active area, where
  • number: number of the page

12.3.25.2. Methods

.asdf

12.3.25.3. Toponymics

Page produce the following toponymics

  • active-area: rectangle with the coordinates of the active area

12.3.25.4. Examples

example 1: printing an icosahedron and a cube on a A4:

p = page: .size A4
a, b = p.divide 0 2   # divide the page in two canvases
d = icosahedron : .diameter 200cm : .canvas a
c = cube : .diameter 100cm : .canvas b
p.save icosahedron.pdf

Example 2: mixing text with some

12.3.25.5. List of predefined page sizes

The following list is the scopped constants to which the parameter size can be set.

sizes of A format pages

A sizes

  • ~4A0:
  • ~2A0:
  • ~A0: A0 size , 841 x 1189 mm
  • ~A1: A1 size , 594 x 841 mm
  • @A2: A2 size , 420 x 594 mm
  • @A3: A3 size , 1000x1000 mm
  • @A4: A4 size , 1000x1000 mm
  • @A5: A5 size , 1000x1000 mm
  • @A6: A6 size , 1000x1000 mm
  • @A7: A7 size , 1000x1000 mm
  • @A8: A8 size , 1000x1000 mm
  • @B0: A0 size , 1000x1000 mm
  • @B1: A1 size , 1000x1000 mm
  • @B2: A2 size , 1000x1000 mm
  • @B3: A3 size , 1000x1000 mm
  • @B4: A4 size , 1000x1000 mm
  • @B5: A5 size , 1000x1000 mm
  • @B6: A6 size , 1000x1000 mm
  • @B7: A7 size , 1000x1000 mm
  • @B8: A8 size , 1000x1000 mm
  • @C0: A’ size , 1000x1000 mm
  • @C1: A1 size , 1000x1000 mm
  • @C2: A2 size , 1000x1000 mm
  • @C3: A3 size , 1000x1000 mm
  • @C4: A4 size , 1000x1000 mm
  • @C5: A5 size , 1000x1000 mm
  • @C6: A6 size , 1000x1000 mm
  • @C7: A7 size , 1000x1000 mm
  • @C8: A8 size , 1000x1000 mm