File: manual_37.html

package info (click to toggle)
ipe 6.0pre30-5
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 5,100 kB
  • ctags: 5,419
  • sloc: cpp: 30,430; ansic: 1,045; xml: 845; makefile: 78; sh: 5
file content (65 lines) | stat: -rw-r--r-- 4,436 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- XML file produced from file: manual.tex
     using Hyperlatex v 2.6 (c) Otfried Cheong
     on Emacs 21.4.1, Sun Dec 24 00:03:24 2006 -->
<head>
<title>Ipe Manual -- 14.2 The page element</title>

<style type="text/css">
.maketitle { align : center }
div.abstract { margin-left: 20%; margin-right: 10%; }
h3.abstract  { align : center }
div.verse, div.quote, div.quotation {
  margin-left : 10%; 
  margin-right : 10%;
}
</style>

<meta http-equiv="Content-Type" 
        content="text/html; charset=UTF-8">
</head>
<body bgcolor="#ffffe6">
<table width="100%" cellpadding=0 cellspacing=2><tr><td bgcolor="#99ccff"><a href="manual_38.html"><img border="0" alt="14.3 Ipe object elements" src="next.png"></a></td><td bgcolor="#99ccff"><a href="manual_35.html"><img border="0" alt="14 The Ipe file format" src="up.png"></a></td><td bgcolor="#99ccff"><a href="manual_36.html"><img border="0" alt="14.1 The elements of an Ipe XML file" src="previous.png"></a></td><td align="center" bgcolor="#99ccff" width="100%"><b>14.2 The page element</b></td></tr></table>
<h2>14.2 The <code>&lt;page&gt;</code> element</h2>
<p>The <code>&lt;page&gt;</code> tag has the optional attributes <code>gridsize</code>,
<code>title</code>, <code>section</code>, and <code>subsection</code>.  The
<code>gridsize</code> indicates the last grid size 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 title is displayed
on the page in a format described in the style sheet.  The value of
<code>section</code> and <code>subsection</code> is the title of a section
starting on this page. If the attribute is not present, this page
continues the section of the previous page.  If the attribute is
present, but its value is an empty string, then the contents of the
<code>title</code> attribute is used instead.
<p>The contents of the <code>&lt;page&gt;</code> element consists, in this order, of
possibly empty sequences of <code>&lt;layer&gt;</code> elements, <code>&lt;view&gt;</code>
elements, and Ipe object elements.
<p>The <code>&lt;layer&gt;</code> tag takes a required attribute <code>name</code>, and two
optional attributes <code>visible</code> and <code>edit</code>.  The <code>name</code>
has to be unique within the page, and must not contain spaces.  If the
value of <code>visible</code> is <code>dim</code>, the layer is displayed dimmed
on the screen (<em>not</em> in the PDF output).  The value of
<code>edit</code> should be <code>yes</code> or <code>no</code> 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.
<p>If a page contains no layer element, Ipe automatically adds a default
layer named "alpha", visible and editable. 
<p>The <code>&lt;view&gt;</code> tag takes a required attribute <code>layers</code>, and
three optional attributes, <code>duration</code>, <code>transition</code>, and
<code>effect</code>.  The value of <code>layers</code> must be a sequence of layer
names defined in this page, separated by white space.  The value of
<code>duration</code> and <code>transition</code> must be a real number, the value
of <code>effect</code> must be an integer between&nbsp;0 and&nbsp;16 (see
<code>IpeView::TEffect</code> for the exact meaning of those).  The
parameters translated directly into the page transition effect in PDF.
<p>It is okay for a page not to contain any <code>&lt;view&gt;</code> element. Such a
page will be saved to PDF including all its layers, with no special
effect.
<p>The remaining elements of the <code>&lt;page&gt;</code> are Ipe objects.
<hr />
<table width="100%" cellpadding=0 cellspacing=2><tr><td bgcolor="#99ccff"><a href="manual_38.html"><img border="0" alt="14.3 Ipe object elements" src="next.png"></a></td><td bgcolor="#99ccff"><a href="manual_35.html"><img border="0" alt="14 The Ipe file format" src="up.png"></a></td><td bgcolor="#99ccff"><a href="manual_36.html"><img border="0" alt="14.1 The elements of an Ipe XML file" src="previous.png"></a></td><td align="center" bgcolor="#99ccff" width="100%"><b>14.2 The page element</b></td></tr></table></body></html>