(texdraw)Command Listing
Appendix D Alphabetic listing of commands
*****************************************
'\arrowheadsize l:LENGTH w:WIDTH'
Set the arrowhead size to be LENGTH units long and WIDTH units
wide. The width is measured across the "base" of the arrowhead.
The initial arrowhead size has a LENGTH of 0.16 inches and a WIDTH
of 0.08 inches.
'\arrowheadtype t:TYPE'
Set the arrowhead type to TYPE, where TYPE is one of 'F', 'T', 'W',
'V', or 'H'. There are two kinds of arrowheads. The first kind is
a triangle. There are 3 variants: type 'T' is an empty triangle,
type 'F' is a filled triangle (using the current gray level for
lines), type 'W' is a triangle filled with white. The second kind
of arrowhead is an open ended Vee. There are 2 variants: type 'V'
has the stem continue to the tip, type 'H' has the stem stop at the
base of the arrowhead. The initial arrowhead type is 'T'.
'\avec (X Y)'
Draw a line with an arrowhead from the current position to '(X Y)'.
The new current position is '(X Y)'. The arrowhead is aligned with
the line, with the tip at '(X Y)'.
'\begin{texdraw}'
Start a TeXdraw drawing. The drawing is terminated with an
'\end{texdraw}' command. This command is for use with LaTeX.
'\bsegment'
Start a drawing segment. The coordinate system is shifted such
that the current position corresponds to the coordinate '(0 0)'.
Changes to scaling, position and line parameters stay local to the
drawing segment.
'\btexdraw'
Start a TeXdraw drawing. The drawing is terminated with an
'\etexdraw' command.
'\centertexdraw { ... }'
Center a TeXdraw box. The argument contains TeXdraw commands. The
resulting box has the horizontal size '\hsize' and height equal to
the height of the drawing.
'\clvec (X1 Y1)(X2 Y2)(X3 Y3)'
Draw a Bezier curve from the current position to the coordinate
'(X3 Y3)' which becomes the new current position. The coordinates
'(X1 Y1)' and '(X2 Y2)' serve as control points for the curve.
Only the last coordinate given is used to update the size of the
drawing.
'\drawbb'
Draw a ruled box around the effective size of a drawing produced by
TeXdraw commands.
'\drawdim DIM'
Set the units to DIM. The argument DIM can be any valid TeX
dimension unit. The units are used to interpret coordinate values.
Examples of valid units: 'cm', 'mm', 'in', 'pt', and 'bp'.
'\end{texdraw}'
End a TeXdraw drawing started with a '\begin{texdraw}' command.
The resulting TeXdraw drawing is placed in a box with height equal
to the height of the drawing and width equal to the width of the
drawing. The depth of the box is zero. This command is for use
with LaTeX.
'\esegment'
End a drawing segment. The current position in effect before the
corresponding '\bsegment' command is restored. The scaling and
line parameter values revert to those in effect before the
corresponding '\bsegment' was invoked.
'\etexdraw'
End a TeXdraw drawing started with a '\btexdraw' command. The
resulting TeXdraw drawing is placed in a box with height equal to
the height of the drawing and width equal to the width of the
drawing. The depth of the box is zero.
'\everytexdraw { ... }'
Specify TeXdraw commands to be executed at the beginning of every
TeXdraw drawing.
'\fcir f:LEVEL r:RADIUS'
Draw a filled circle with center at the current position. The
radius is specified by RADIUS. The circle is painted with the gray
level specified by LEVEL. A gray level of 1 corresponds to white,
with decreasing values getting darker. The level 0 is full black.
This command does not draw a line along the circumference. The
drawing size is increased if necessary to contain the circle.
'\fellip f:LEVEL rx:X-RADIUS ry:Y-RADIUS'
Draw a filled ellipse with center at the current position. The
radius in the X direction is specified by X-RADIUS. The radius in
the Y direction is specified by Y-RADIUS. The ellipse is painted
with the gray level specified by LEVEL. A gray level of 1
corresponds to white, with decreasing values getting darker. The
level 0 is full black. This command does not draw a line along the
boundary of the ellipse. The drawing size is increased if
necessary to contain the ellipse.
'\htext (X Y){TEXT}'
'\htext {TEXT}'
The first form of this command places the TeX text TEXT
horizontally with the text reference point at the coordinate '(X
Y)'. The new current position is '(X Y)'. The second form of this
command places the TeX text TEXT horizontally with the text
reference point at the current position. The text reference point
is set with the '\textref' command.
'\ifill f:LEVEL'
Close the current path and paint the interior of the region with
gray level LEVEL. The line around the path is not drawn. Gray
levels are real values from 0 (black) through intermediate values
(grays) to 1 (white).
'\larc r:RADIUS sd:START-ANGLE ed:END-ANGLE'
Draw a counterclockwise arc. The center of the arc is at the
current position. The radius is specified by RADIUS. The start
and end angles (in degrees) are specified by START-ANGLE and
END-ANGLE. This command does not affect the limits (size) of the
drawing.
'\lcir r:RADIUS'
Draw a circle with center at the current position. The radius is
specified by RADIUS. This command draws a line along the
circumference of the circle. The drawing size is increased if
necessary to contain the circle.
'\lellip rx:X-RADIUS ry:Y-RADIUS'
Draw an ellipse with center at the current position. The radius in
the X direction is specified by X-RADIUS. The radius in the Y
direction is specified by Y-RADIUS. The drawing size is increased
if necessary to contain the ellipse.
'\lfill f:LEVEL'
Close the current path, draw the line around the path using the
current grey level for lines and paint the interior of the region
with specified gray level LEVEL. Gray levels are real values from
0 (black) through intermediate values (grays) to 1 (white).
'\linewd WIDTH'
Set the line width to WIDTH units. Initially WIDTH is 0.01 inches
(corresponding to 3 pixels at 300 pixels to the inch).
'\lpatt (PATTERN)'
Set lines to have the pattern '(PATTERN)'. A pattern is a sequence
of on/off lengths separated by blanks and enclosed in parentheses.
The lengths alternately specify the length of a dash and the length
of a gap between dashes. Each length is interpreted using the
current scaling and drawing units. The pattern is used cyclically.
The empty pattern signifies a solid line. The initial line pattern
is a solid line, corresponding to the empty pattern '\lpatt ()'.
'\lvec (X Y)'
Draw a line from the current position to coordinate '(X Y)'. The
new current position is '(X Y)'.
'\move (X Y)'
Move to coordinate '(X Y)'. The new current position is '(X Y)'.
'\ravec (DX DY)'
Draw a line with an arrowhead from the current position, DX units
in the X direction and Y units in the Y direction. The final
position becomes the new current position. The arrowhead is
aligned with the line, with the tip at the new current position.
'\relsegscale VALUE'
Adjust the segment scale factor by multiplying by VALUE. This has
the effect of multiplying the current overall scale factor by the
same factor. The overall scaling factor is the product of the unit
scale factor and the segment scale factor.
'\relunitscale VALUE'
Adjust the unit scale factor by multiplying by VALUE. This has the
effect of multiplying the overall scale factor by the same factor.
The overall scaling factor is the product of the unit scale factor
and the segment scale factor.
'\rlvec (DX DY)'
Draw a line from the current position, DX units in the X direction
and DY units in the Y direction. The final position becomes the
new current position.
'\rmove (DX DY)'
Move from the current position, DX units in the X direction and DY
units in the Y direction. The final position becomes the new
current position.
'\rtext td:ANGLE (x y){TEXT}'
'\rtext td:ANGLE {TEXT}'
The first form of this command places the TeX text TEXT at an angle
with the text reference point at the coordinate '(X Y)'. The new
current position is '(X Y)'. The second form of this command
places the TeX text TEXT at an angle with the text reference point
at the current position. In both cases, the TeX text is placed in
a box and the box is rotated counterclockwise by ANGLE degrees
about the text reference point. The text reference point is set
with the '\textref' command.
'\savecurrpos (*PX *PY)'
Save the current position as the absolute position referenced by
'(*PX *PY)'.
'\savepos (X Y)(*PX *PY)'
Save the coordinate position '(X Y)' as the absolute position
referenced by '(*PX *PY)'. The coordinate '(X Y)' is interpreted
in the normal fashion as a coordinate relative to the current
segment, using the current scaling factors and drawing unit.
'\setgray LEVEL'
Set the gray level of lines. Gray levels are real values from 0
(black) through intermediate values (gray) to 1 (white). The
initial gray level is 0 corresponding to black.
'\setsegscale SCALE'
Set the segment scale factor. The argument SCALE is a real number
which is used to scale coordinate values. The overall scale factor
is the product of the unit scale factor and the segment scale
factor.
'\setunitscale SCALE'
Set the unit scaling to SCALE. The argument SCALE is a real number
which is used to scale coordinate values. The overall scaling
factor is the product of the unit scale factor and the segment
scale factor.
'\texdrawbox { ... }'
Create a TeXdraw box. The argument contains TeXdraw commands.
This macro returns a TeX box with height equal to the height of the
drawing and width equal to the width of the drawing. The depth of
the box is zero.
'\textref h:H-REF v:V-REF'
Set the text reference point for subsequent text commands. The
horizontal reference point H-REF is one of 'L', 'C' or 'R' (left,
center or right). The vertical reference point V-REF is one of
'T', 'C' or 'B' (top, center or bottom). For rotated text, the
reference point is determined before rotation. The initial text
reference point corresponds to '\textref h:L v:B'.
'\vtext (x y){TEXT}'
'\vtext {TEXT}'
The first form of this command places the TeX text TEXT vertically
with the text reference point at the coordinate '(X Y)'. The new
current position is '(X Y)'. The second form of this command
places the TeX text TEXT vertically with the text reference point
at the current position. In both cases, the TeX text is placed in
a box and the box is rotated counterclockwise by 90 degrees about
the text reference point. The text reference point is set with the
'\textref' command.
automatically generated by info2www version 1.2.2.9