(texdraw)Drawing size


Next: Initial current position Prev: Scaling coordinates Up: Drawing Segments and Scaling
Enter node , (file) or (file)node

3.5 Drawing size
================

The effective size of the drawing is determined by the maximum
excursions of the coordinates supplied to TeXdraw commands.  The minimum
and maximum scaled X and Y coordinates are tallied.  Note that '\move'
commands contribute to the determination of the calculated size of the
drawing, even though they do not generate visible lines.  The circle and
ellipse commands add a compensation for the radii of circles and
ellipses.  The final TeXdraw drawing is placed in a TeX box with lower
lefthand corner corresponding to '('X-min Y-min')' and upper righthand
corner at '('X-max Y-max')'.

   Text generated by '\htext', '\vtext' or '\rtext' can spill outside
the box as determined above.  Only the text reference point is
guaranteed to be in the drawing box.  Arcs can also spill outside the
drawing box.  Note also that the widths of lines, and the sizes of
arrowheads do not affect the size of the drawing.  The calculated size
of the drawing will never be larger than the actual size of the drawing.
In extreme cases in which text or lines extend far outside the drawing,
extra '\move' commands should be used to establish the size of the
drawing so that the TeXdraw box includes all of the drawing.

   TeXdraw provides the '\drawbb' command to draw a box which indicates
the effective size of the drawing.  Whenever '\drawbb' is invoked, a
ruled box is drawn around the drawing as it has been sized up to that
point.  Normally '\drawbb' is invoked just before the end of a drawing
to indicate the effective size of the final drawing.

'\drawbb'
     Draw a ruled box around the effective size of a drawing produced by
     TeXdraw commands.


automatically generated by info2www version 1.2.2.9