Go to the first, previous, next, last section, table of contents.


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.


Go to the first, previous, next, last section, table of contents.