<div><b>Chapter 5 - Producing Mathematical Graphics</b><br></div><div><b>5.1 Overview</b><br></div><div>Although programming pictures directly in LaTeX is severely restricted, and often rather tiresome, there are still reasons for doing so.<br></div><div><br></div><div><b>5.2 The picture Environment</b><br></div><div>As mentioned above the picture environment is part of standard LaTeX and it is great for simple tasks and also if you want to control the exact positioning of individual elements on a page.<br></div><div><br></div><div><b>5.2.1 Basic Commands</b><br></div><div>A picture environment is created with one of the two commands<br></div><div><div><br></div><div><span data-mathml="<math xmlns=&quot;http://www.w3.org/1998/Math/MathML&quot; display=&quot;block&quot;><merror><mtext>\begin{picture}(x,y)\end{picture}</mtext></merror></math>"><span><span>\begin{picture}(x,y)\end{picture}</span></span><span><math><merror>\begin{picture}(x,y)\end{picture}</merror></math></span></span><br></div><div>\begin{picture}(x,y)\end{picture}<br></div><br></div><div>or<br></div><div><div><br></div><div><span data-mathml="<math xmlns=&quot;http://www.w3.org/1998/Math/MathML&quot; display=&quot;block&quot;><merror><mtext>\begin{picture}(x,y)(x0,y0)\end{picture}</mtext></merror></math>"><span><span>\begin{picture}(x,y)(x0,y0)\end{picture}</span></span><span><math><merror>\begin{picture}(x,y)(x0,y0)\end{picture}</merror></math></span></span><br></div><div>\begin{picture}(x,y)(x0,y0)\end{picture}<br></div><br></div><div>The first pair, (x,y), effects the reservation, within the document, of rectangular space for the picture. &nbsp;The optional second pair, (x0,y0), assigns arbitrary coordinates to the bottom left corner of the reserved rectangle.<br></div><div>Most drawing commands have one of two forms<br></div><div>\put(x,y){object}<br></div><div>or<br></div><div>\multiput(x,y)(DeltaX,DeltaY){n}{object}<br></div><div><br></div><div><b>5.2.2 Line Segments</b><br></div><div>Line segments are drawn with the command&nbsp;<br></div><div>\put(x,y){\lineP(x1,y1){length}}<br></div><div><br></div><div>The \line command has two arguments:<br></div><ol><li><div>a direction vector,<br></div></li><li><div>a length.<br></div></li></ol><div><br></div><div><b>5.2.3 Arrows</b><br></div><div><b></b><br></div>