![]() | ![]() | ![]() | 10.4 The <ipestyle> element |
The contents of the <ipestyle>
element is a series of style
definition elements, in no particular order. These elements are
described below.
transformations="translations"
, and will be ignored if
any of the symbol parameters (that is, stroke, fill, pen, or size)
are used. Setting this attribute will cause the PDF output to be
significantly smaller for a complicated symbol that is used often
(for instance, a complicated background used on every page).
The contents of the <symbol>
element is a single Ipe object.
See the <preamble> elements inside <ipe>
elements.
style
attribute of <text>
elements),
label
or minipage
(the default).
It defines the layout of the frame on the paper and the paper size.
crop
is yes
, Ipe
will create a CropBox
attribute when saving to PDF.
It defines the appearance of the page title on the page.
<text>
elements).
<text>
elements).
<text>
elements).
It defines the appearance of page numbers on the page. The contents of the element is a template for a text object.
<text>
elements). The default is normal.
<text>
elements).
<text>
elements).
It defines padding around text objects for the computation of bounding boxes. The four required attributes are left, right, top, and bottom.
It defines the default setting for path objects.
<path>
elements.
<path>
elements.
<path>
elements.
The opacity
element defines a possible opacity value (also
known as an alpha-value). All opacity values used in a document must
be defined in the style sheet.
opacity
attribute of a text
or path
element.
The gradient
element defines a gradient pattern.
<gradient>
gradient
attribute of <path>
elements).
axial
and radial
.
yes
or no
(the default).
Indicates whether the gradient is extended beyond the boundaries.
x1 y1 x2 y2
). For radial
shading: the center and radius of both circles (in the order
cx1 cy1 r1 cx2 cy2 r2
).
The contents of the <gradient>
element are <stop>
elements defining the color stops of the gradient. There must be at
least two stops. Stops must be defined in increasing offset order.
It is not necessary that the first offset is 0.0 and the last one
is 1.0.
<stop>
The tiling
element defines a tiling pattern. Only very simple
patterns that hatch the area with a line are supported.
tiling
attribute of <path>
elements).
Here, width
and step
are measured in the y-direction
if the absolute value of angle
is less than 45 degrees, and in
the y-direction otherwise.
The effect
element defines a graphic effect to be used during a
PDF page transition. Acrobat Reader supports these effects, but not
all PDF viewers do.
effect
attribute of <view>
elements).
ipe::Effect::TEffect
for the exact meaning).
The remaining style definition elements are:
<color>
Defines a symbolic color. The value must be an
absolute color, that is either a single gray value (between 0 and
1), or three components (red, green, blue) separated by space.
<dashstyle>
Defines a symbolic dashstyle. The value must
be a correct dashstyle description, e.g. [3 5 2 5] 0
.
<pen>
Defines a symbolic pen width. The value is a single
real number.
<textsize>
Defines a symbolic text size. The value is a
piece of LaTeX source code selecting the desired font size.
<textstretch>
Defines a symbolic text stretch factor. The
symbolic name is shared with <textsize>
elements. The value
is a single real number.
<symbolsize>
Defines a symbolic size for symbols. The value
is a single real number, and indicates the scaling factor used for
the symbol.
<arrowsize>
Defines a symbolic size for arrows. The value
is a single real number.
<gridsize>
Defines a grid size. The symbolic name cannot
actually be used by objects in the document — it is only used to
fill the grid size selector in the user interface.
<anglesize>
Defines an angular snap angle. The symbolic
name cannot actually be used by objects in the document — it is
only used to fill the angle selector in the user interface.