12.07.2015 Views

graphics with PSTric..

graphics with PSTric..

graphics with PSTric..

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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Placing Thingsthe object to place and the coordinates (3;60) is position to place the point(0, 0) of the line (that is the object).As another example, let’s draw a figure we did in the last chapter byshifting the origin this time using the \rput command:Placing and rotating <strong>PSTric</strong>ks objectsPlacing and rotating T E X objectsPutting labels\begin{pspicture}(0,-0.5)(6,4.5)\begin{pspicture}(0,0)(6,4)\pspolygon[linestyle=dotted,%dotsep=1pt,%linecolor=Blue]%(0,0)(4,0)(1,3)\rput(2,1){%\pspolygon[linecolor=Blue]%(0,0)(4,0)(1,3)}\end{pspicture}\end{pspicture}Online L A T E X TutorialPart II – Graphics<strong>PSTric</strong>ksIt must be carefully noted that <strong>with</strong>in a command \rput(coordinates), anew coordinate system is used, <strong>with</strong> origin at the point <strong>with</strong> the specified coordinates.In other words, what the command \rput(coordinates){object}does is to draw the object <strong>with</strong> reference to a new coordinate system <strong>with</strong>the axes translated to the point <strong>with</strong> coordinates as the origin. The examplebelow illustrates this:E Krishnan, CV Radhakrishnan and AJ Alexconstitute the <strong>graphics</strong> tutorial team.Comments and suggestions may be mailed totutorialteam@tug.org.inc○2002, 2003, 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£ ¡ ¢ ¤ ¥ ¦ © 4/22

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

Saved successfully!

Ooh no, something went wrong!