12.07.2015 Views

graphics with PSTric..

graphics with PSTric..

graphics with PSTric..

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

picture is drawn after the T E X compilation) and so the dots were drawn overthe text. (if you look closely, you can see that the dots are over the letters).This brings up an important point to be kept in mind: most of the <strong>PSTric</strong>kscommands produce 0-dimensional boxes in T E X. So, we must ensure that T E Xleaves enough space for the pictures to be drawn, by enclosing the picturein a T E X box of suitable size. <strong>PSTric</strong>ks itself provides a convenient methodof doing this, in the form of the pspicture environment. See how we canmodify the previous example:Graphics <strong>with</strong> <strong>PSTric</strong>ksGetting the pointsDrawing DotsSimple LinesEnds of LinesBent Lines and PolygonsSimple Curves\begin{pspicture}(-0.5,0)(2.5,1)\psdots(0,0)(2,0)(1,1)\end{pspicture}This gives the outputOnline L A T E X TutorialPart II – GraphicsHere the pairs (-0.5,0) and (2.5,1) are the coordinates of the bottom-leftand top-right corners of a box which encloses the picture as shown in thefigure below:Look at these dots(2.5,1)(–0.5,0)¡¡forming the vertexes of a triangle.In fact, the first pair of coordinates is optional and defaults to (0,0). Thusfor example,...c○2002, The Indian T E X Users GroupThis document is generated by PDFT E X <strong>with</strong>hyperref, pstricks, pdftricks and pdfscreenpackages in an intel PC running GNU/LINUXand is released under LPPLThe Indian T E X Users GroupFloor iii, sjp Buildings, Cotton HillsTrivandrum 695014, indiahttp://www.tug.org.in

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!