Operator \horizontal_rectangle defines four new edges associated
to four vertices named by the operator parameters (symbols). Edges are
built circularly taking two consecutive symbols. The first symbol of
the parameter list binds the upper left corner of the square. Second
symbol is linked to the upper right corner, the third one names the
lower right corner and the fourth is associated to the lower left
vertex. The type of the four edges created is border. A
fifth parameter is added, it gives the ratio between width and height
of the rectangle. A possibility exists to specify a well known paper
format like `dollar' or `A' (ISO format:
).
Numeric ratio is given as a percentage, 200 means a rectangle as
taller as a square and twice wider. If the ratio value is lesser than
100, a horizontal rectangle is still defined with a width equal to the
normal square size but the height is reduce to fit the ratio.
This
operator should only appear within a step block.
\horizontal_rectangle(a, b, c, d, dollar); % a horizontal dollar paper \horizontal_rectangle(A, B, C, D, 200); % 1x2 double square size on X \horizontal_rectangle(A, B, C, D, 50); % 1x2 half square size on Y
\horizontal_rectangle(VERTEX_1, VERTEX_2, VERTEX_3, VERTEX_4, RATIO); \horizontal_rectangle(VERTEX_1, VERTEX_2, VERTEX_3, VERTEX_4, PAPER_TYPE);
VERTEX_1 Description : Name symbol used for the left top corner. Type : Symbol. Allowed values : Any vertex identifier not already defined. VERTEX_2 Description : Name symbol used for the right top corner. Type : Symbol. Allowed values : Any vertex identifier not already defined. VERTEX_3 Description : Name symbol used for the right bottom corner. Type : Symbol. Allowed values : Any vertex identifier not already defined. VERTEX_4 Description : Name symbol used for the left bottom corner. Type : Symbol. Allowed values : Any vertex identifier not already defined. RATIO Description : Percentage between width and height. Type : Integer. Allowed values : Any positive integer values (expect zero). PAPER_TYPE Description : Name of a predefined paper format. Type : Symbol. Allowed values : One of values [A, dollar] .