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.

Placing ThingsCPlacing and rotating <strong>PSTric</strong>ks objectsPlacing and rotating T E X objectsPutting labelsA45 ◦Bwhere the labels sort of stick to the points referred to. So, to \rput labels,we have to compute the coordinates of points a little away from the pointsreferred to. The command \uput saves us this trouble. Thus the command\uput[dirangle](coordinates){label}puts label at a distance of 5 pt away from the point <strong>with</strong> the specified coordinatesin the direction specified by dirangle. thus the first figure above isproduced byOnline L A T E X TutorialPart II – Graphics<strong>PSTric</strong>ks\begin{center}\begin{pspicture}(0,-1)(6,3.5)\psset{linecolor=Blue}\psline(0,0)(5,0)\SpecialCoor\psline(0,0)(5;45)\uput[180](0,0){\color{Red} $A$}\uput[0](5,0){\color{Red} $B$}\uput[45](5;45){\color{Red} $C$}\psarc[linecolor=Red](0,0){0.6}{0}{45}\uput[30](0.6;22.5){\color{Red} $45ˆ\circ$}\end{pspicture}\end{center}The distance between the point and the label is controlled by the parameterlabelsep. We can change its default value (5 pt) by using psset. We canE 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£ ¡ ¢ ¤ ¥ ¦ © 17/22

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

Saved successfully!

Ooh no, something went wrong!