| computersci.org | |
|
|
|
Table of Contents |
Picture Environment« Paragraph Environments | Table of Contents | Table Environments »
\begin{picture}(width,height)(x offset,y offset)
.
.
picture commands
.
.
\end{picture}
You tell LaTeX where to put things in the picture by specifying their coordinates. A coordinate is a number that may have a decimal point and a minus sign — a number like 5, 2.3 or −3.1416. A coordinate specifies a length in multiples of the unit length A position is a pair of coordinates, such as (2.4,−5), specifying the point with x-coordinate 2.4 and y-coordinate −5. Coordinates are specified in the usual way with respect to an origin, which is normally at the lower-left corner of the picture. Note that when a position appears as an argument, it is not enclosed in braces; the parentheses serve to delimit the argument. The picture environment has one mandatory argument, which is a position. It specifies the size of the picture. The environment produces a rectangular box with width and height determined by this argument’s x- and y-coordinates. The picture environment also has an optional position argument, following the size argument, that can change the origin. (Unlike ordinary optional arguments, this argument is not contained in square brackets.) The optional argument gives the coordinates of the point at the lower-left corner of the picture (thereby determining the origin). For example, if \begin{picture}(100,200)(10,20)
produces a picture of width 100 millimeters and height 200 millimeters, whose lower-left corner is the point (10,20) and whose upper-right corner is therefore the point (110,220). When you first draw a picture, you will omit the optional argument, leaving the origin at the lower-left corner. If you then want to modify your picture by shifting everything, you just add the appropriate optional argument. The environment’s mandatory argument determines the nominal size of the picture. This need bear no relation to how large the picture really is; LaTeX will happily allow you to put things outside the picture, or even off the page. The picture’s nominal size is used by LaTeX in determining how much room to leave for it. Everything that appears in a picture is drawn by the \put (11.3,-.3){…}
puts the object specified by The \circleCommand: \circle[*]{diameter}
The Note that only circles up to 40 pt can be drawn. \dashboxCommand: \dashbox{dash-length}(width,height){…}
Draws a box with a dashed line. The \frameCommand: \frame{…}
The \frameboxCommand: \framebox(width,height)[position]{…}
The The \lineCommand: \line(x-slope,y-slope){length}
The Note that LaTeX can only draw lines with slope = x/y, where x and y have integer values from −6 through 6. \linethicknessCommand: \linethickness{dimension}
Declares the thickness of horizontal and vertical lines in a picture environment to be dimension, which must be a positive length. It does not affect the thickness of slanted lines and circles, or the quarter circles drawn by \makeboxCommand: \makebox(width,height)[position]{…}
The t - Moves the item to the top of the rectangle
b - Moves the item to the bottom
l - Moves the item to the left
r - Moves the item to the right .
\multiputCommand: \multiput(x-coord,y-coord)(delta-x,delta-y){number of copies}{object}
The \ovalCommand: \oval(width,height)[portion] The t - Selects the top portion
b - Selects the bottom portion
r - Selects the right portion
l - Selects the left portion
\putCommand: \put(x-coord,y-coord){ … }
The \shortstackCommand: \shortstack[position]{… \\ … \\ …}
The r - Moves the objects to the right of the stack
l - Moves the objects to the left of the stack
c - Moves the objects to the center of the stack (default)
\vectorCommand: \vector(x-slope,y-slope){length}
The |
|
Page last
modified on February 24, 2009, at 11:36 AM
|