![]() | ![]() | ![]() | 14.2 The page element |
<page> elementThe <page> tag has one optional attribute gridsize. The
gridsize indicates the default grid size to be used on this
page--Ipe remembers this as it is often advantageous to have the same
grid available that was used when making the page.
The contents of the <page> element consists, in this order, of
possibly empty sequences of <layer> elements, <view>
elements, and Ipe object elements.
The <layer> tag takes a required attribute name, and two
optional attributes visible and edit. The name
has to be unique within the page. The value of visible should
be yes, no, or dim, and indicates how the layer
is displayed on the screen (not in the PDF output--this is
determined by the <view> elements), the value of edit
should be yes or no and indicates whether the user can
select and modify the contents of the layer in the Ipe user interface
(of course the user can always modify the setting of the attribute).
The layer element must be empty.
If a page contains no layer element, Ipe automatically adds a default layer named "alpha", visible and editable.
The <view> tag takes a required attribute layers, and
three optional attributes, duration, transition, and
effect. The value of layers must be a sequence of layer
names defined in this page, separated by white space. The value of
duration and transition must be a real number, the value
of effect must be an integer between 0 and 16 (see
IpeView::TEffect for the exact meaning of those). The
parameters translated directly into the page transition effect in PDF.
It is okay for a page not to contain any <view> element. Such a
page will be saved to PDF including all its layers, with no special
effect.
The remaining elements of the <page> are Ipe objects.
![]() | ![]() | ![]() | 14.2 The page element |