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.

Graphics <strong>with</strong> <strong>PSTric</strong>ksGetting the pointsDrawing DotsSimple LinesEnds of LinesThere are also commands to draw isoceles triangles (that is, triangles inwhich two sides are equal) and rhombuses (diamonds). The commandBent Lines and PolygonsSimple Curves\pstriangle((x, y)(b, h))draws an isoceles triangle <strong>with</strong> its base horizontal, the mid-point of its baseat (x, y), length of base b and height h while the command\psdiamond((x, y)(d 1 , d 2 ))draws a rhombus <strong>with</strong> its diagonals along the horizontal and the vertical,which meet (x, y) and have lengths 2d 1 and 2d 2 . Thus\begin{center}\begin{pspicture}(0,0)(5,5)\pstriangle(1,0)(2,3)\pstriangle*(4,1)(2,1.732)\psdiamond(3,4)(2,1)\end{pspicture}\end{center}givesOnline L A T E X TutorialPart II – Graphicsc○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!