(texdraw)TeXdraw coordinates


Next: Coordinate specification Prev: Command syntax Up: TeXdraw Commands
Enter node , (file) or (file)node

2.3 TeXdraw coordinates
=======================

The TeXdraw coordinate system has increasing X to the right and
increasing Y upward.  The coordinates (without the unit) are floating
point numbers.  Integer values can be written without a decimal point.
The size of the drawing is determined by the maximum excursions of the
coordinates specified in TeXdraw commands.

   Consider the following example of TeXdraw commands to draw a simple
figure.
     \centertexdraw{
       \drawdim cm  \linewd 0.02
       \move(2 2) \lvec(3 3) \lvec(2 4) \lvec(1 3) \lvec(2 2)
       \textref h:C v:C \htext(2 3){$\sum \rho_n$}
     }
   This drawing uses units of centimetres, with a line width of 0.02 cm.
The X coordinate ranges between 1 and 3 while the Y coordinate ranges
between 2 and 4.  When included into a document, the size of the drawing
is 2 cm by 2 cm.  The drawing is placed in a TeX box, with the lower
lefthand corner of the box corresponding to TeXdraw coordinate '(1 2)'
and the upper righthand corner at '(3 4)'.  The '\centertexdraw' command
centers the drawing horizontally.  The '\textref' command controls the
centering of the text.  The text in this drawing is centered (both
horizontally and vertically) at the coordinate '(2 3)'.


automatically generated by info2www version 1.2.2.9