1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3
"DTD/xhtml1-transitional.dtd">
4
<html xmlns="http://www.w3.org/1999/xhtml">
5
<!-- XML file produced from file: manual.tex
6
using Hyperlatex v 2.6 (c) Otfried Cheong
7
on Emacs 22.2.1, Wed Dec 9 15:44:23 2009 -->
9
<title>Ipe Manual -- 9.1 The <ipe> element</title>
11
<style type="text/css">
12
.maketitle { text-align : center }
13
div.abstract { margin-left: 20%; margin-right: 10%; }
14
h3.abstract { text-align : center }
15
div.verse, div.quote, div.quotation {
21
<link rel="stylesheet"
22
href="manual.css" type="text/css"><meta http-equiv="Content-Type"
23
content="text/html; charset=UTF-8">
25
<body bgcolor="#ffffe6">
26
<table width="100%" cellpadding=0 cellspacing=2><tr>
27
<td bgcolor="#99ccff"><a href="manual_43.html"><img border="0" alt="9.2 The <page> element" src="next.png"></a></td><td bgcolor="#99ccff"><a href="manual_41.html"><img border="0" alt="9 The Ipe file format" src="up.png"></a></td><td bgcolor="#99ccff"><img alt="" src="blank.png"></td><td align="center" bgcolor="#99ccff" width="100%"><b>9.1 The <tt><ipe></tt> element</b></td></tr></table>
28
<h2>9.1 The <tt><ipe></tt> element</h2>
30
<h4><a name="id1">Attributes</a></h4>
31
<dl><dt><b>version</b><dd> (required) The value (a number, e.g. 70103 for
32
Ipelib 7.1.3) indicates the earliest Ipelib version that can
33
interpret the document. Ipe will refuse to load documents that
34
require a version larger than its own, and may refuse to load
35
documents that are too old (and which will have to be converted
36
using a separate program).
37
<dt><b>creator</b><dd> (optional) indicates the program that created the file
38
and is not interpreted by Ipe at all.
41
<h4><a name="id2">Contents</a></h4>
42
<ol><li>An <code><info></code> element (optional),
43
<li>a <code><preamble></code> element (optional),
44
<li>a series of <code><bitmap></code> and <code><ipestyle></code> elements
46
<li>a series of <code>page</code> elements.
48
<p>The <code><ipestyle></code> elements form a "cascade", with the
49
<em>last</em> <code><ipestyle></code> element becoming the <em>top-level</em>
50
style sheet. When symbolic names are looked up, the style sheets are
51
checked from top to bottom. Ipe always appends the built-in standard
52
style sheet at the bottom of the stack.
54
<h3><a name="id3">9.1.1 The <tt><info></tt> element</a></h3>
56
<h4><a name="id4">Attributes</a></h4>
57
<dl><dt><b>title</b><dd> (optional) document title,
58
<dt><b>author</b><dd> (optional) document author,
59
<dt><b>subject</b><dd> (optional) document subject,
60
<dt><b>keywords</b><dd> (optional) document keywords,
61
<dt><b>pagemode</b><dd> (optional) the only value understood by Ipe is
62
<code>fullscreen</code>, which causes the document to be opened in full
63
screen mode in PDF readers.
64
<dt><b>created</b><dd> (optional) creation time in PDF format,
65
e.g. "D:20030127204100".
66
<dt><b>modified</b><dd> (optional) modification time in PDF format,
67
<dt><b>numberpages</b><dd> (optional) if the value is <code>yes</code>, then Ipe
68
will save PDF documents with visible page numbers on each page.
70
<p>This element must be empty.
72
<h3><a name="id5">9.1.2 The <tt><preamble></tt> element</a></h3>
73
<p>This element has no attributes. Its contents is LaTeX source code,
74
to be used as the LaTeX preamble when running LaTeX to process
75
the text objects in the document. It should <em>not</em> contain a
76
<code>\documentclass</code> command, but can contain <code>\usepackage</code>
77
commands and macro definitions.
79
<h3><a name="id6">9.1.3 The <tt><bitmap></tt> element</a></h3>
80
<p>Each <code><bitmap></code> element defines a bitmap to be used by
81
<code><image></code> objects.
83
<h4><a name="id7">Attributes</a></h4>
84
<dl><dt><b>id</b><dd> (required)
85
the value must be an integer that will define the bitmap throughout
87
<dt><b>width</b><dd> (required) integer width in pixels,
88
<dt><b>height</b><dd> (required) integer height in pixels,
89
<dt><b>ColorSpace</b><dd> (required) possible values are "DeviceGray",
90
"DeviceRGB", and "DeviceCMYK",
91
<dt><b>BitsPerComponent</b><dd> (required) value must be <i>8</i>,
92
<dt><b>ColorKey</b><dd> (optional) an RGB color in hexadecimal, indicating the
93
transparent color (only suppored for "DeviceRGB" color space),
94
<dt><b>length</b><dd> (required unless there is no filter) the number of bytes
96
<dt><b>Filter</b><dd> (optional) possible values are "FlateDecode" or
97
"DCTDecode" to indicate a compressed image (the latter is used for
99
<dt><b>encoding</b><dd> (optional) possible value is "base64" to indicate
100
that the image data is base64-encoded (not in hexadecimal).
102
<p>The contents of the <code><bitmap></code> element is the image data, either
103
base64-encoded or in hexadecimal format. White space between bytes is
104
ignored. If no filter is specified, pixels are stored row by row,
105
with rows padded to a full byte boundary.
106
<p>Note that images with color maps are not supported, and such support
107
is not planned. (The <em>Insert image</em> ipelet does allow you to
108
insert images with color maps, but they are stored as 24-bit images.
109
Since the data is compressed, this does not seriously increase the
112
<table width="100%" cellpadding=0 cellspacing=2><tr>
113
<td bgcolor="#99ccff"><a href="manual_43.html"><img border="0" alt="9.2 The <page> element" src="next.png"></a></td><td bgcolor="#99ccff"><a href="manual_41.html"><img border="0" alt="9 The Ipe file format" src="up.png"></a></td><td bgcolor="#99ccff"><img alt="" src="blank.png"></td><td align="center" bgcolor="#99ccff" width="100%"><b>9.1 The <tt><ipe></tt> element</b></td></tr></table></body></html>