File: sec47.html

package info (click to toggle)
ts 9802-1
  • links: PTS
  • area: non-free
  • in suites: hamm
  • size: 2,348 kB
  • ctags: 1,468
  • sloc: tcl: 4,567; ansic: 3,389; makefile: 88; sh: 1
file content (122 lines) | stat: -rw-r--r-- 4,609 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<html>
<head><title>picture</title></head>
<body>
<h1>picture</h1>
<P>

</P>

<PRE>
 &#92;begin{picture}(width,height)(x offset,y offset)
  .
  .
  picture commands
  .
  .
 &#92;end{picture}
</PRE>

<P>
The <CODE>picture</CODE> environment allows you to create just about any kind
of picture you want containing text, lines, arrows and circles.  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 <CODE>5</CODE>, <CODE>2.3</CODE> or <CODE>-3.1416</CODE>.  A
coordinate specifies a length in multiples of the unit length
<CODE>&#92;unitlength</CODE>, so if <CODE>&#92;unitlength</CODE> has been set to <CODE>1cm</CODE>,
then the coordinate 2.54 specifies a length of 2.54 centimetres.  You
can change the value of <CODE>&#92;unitlength</CODE> anywhere you want, using the
<CODE>&#92;setlength</CODE> command, but strange things will happen if you try
changing it inside the picture environment.

</P>
<P>
A position is a pair of coordinates, such as <CODE>(2.4,-5)</CODE>, specifying
the point with x-coordinate <CODE>2.4</CODE> and y-coordinate <CODE>-5</CODE>.
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.

</P>
<P>
The <CODE>picture</CODE> environment has one mandatory argument, which is a
<CODE>position</CODE>.  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.

</P>
<P>
The <CODE>picture</CODE> environment also has an optional <CODE>position</CODE>
argument, following the <CODE>size</CODE> 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 <CODE>&#92;unitlength</CODE>
has been set to <CODE>1mm</CODE>, the command

<PRE>
   &#92;begin{picture}(100,200)(10,20)
</PRE>

<P>
produces a picture of width 100 millimetres and height 200
millimetres, 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.

</P>
<P>
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.

</P>
<P>
Everything that appears in a picture is drawn by the <CODE>&#92;put</CODE>
command. The command

<PRE>
   &#92;put (11.3,-.3){...}
</PRE>

<P>
puts the object specified by <CODE>...</CODE> in the picture, with its
reference point at coordinates (11.3,-.3).  The reference points for
various objects will be described below.

</P>
<P>
The <CODE>&#92;put</CODE> command creates an <STRONG>LR box</STRONG>.  You can put anything
in the text argument of the <CODE>&#92;put</CODE> command that you'd put into the
argument of an <CODE>&#92;mbox</CODE> and related commands.  When you do this, the
reference point will be the lower left corner of the box.

</P>
<P>
Picture commands:

<UL>
<LI><A href="sec48.html">&#92;circle</A>: Draw a circle.
<LI><A href="sec49.html">&#92;dashbox</A>: Draw a dashed box.
<LI><A href="sec50.html">&#92;frame</A>: Draw a frame around an object.
<LI><A href="sec51.html">&#92;framebox (picture)</A>: Draw a box with a frame around it.
<LI><A href="sec52.html">&#92;line</A>: Draw a straight line.
<LI><A href="sec53.html">&#92;linethickness</A>: Set the line thickness.
<LI><A href="sec54.html">&#92;makebox (picture)</A>: Draw a box of the specified size.
<LI><A href="sec55.html">&#92;multiput</A>: Draw multiple instances of an object.
<LI><A href="sec56.html">&#92;oval</A>: Draw an ellipse.
<LI><A href="sec57.html">&#92;put</A>: Place an object at a specified place.
<LI><A href="sec58.html">&#92;shortstack</A>: Make a pile of objects.
<LI><A href="sec59.html">&#92;vector</A>: Draw a line with an arrow.
</UL>



<p>--&gt;<a href="index.html">LaTeX index</a>
</body>
</html>