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.

we can use \colgrid every time we need the grid of these specifications.The syntax of the general command is:Custom GraphicsSimple customizationHigher level customization\newpsobject{name}%{object}%{parameter1=value1}%parameter1=value1. . . . . . . . . . . . }Where name is the name we give to the variant object (such as colgrid inthe example above), object is the name of the <strong>graphics</strong> object predefinedin <strong>PSTric</strong>ks that we want to tweak (such as psgrid in the example) andParameter1, parameter2 are the parameters whose values we set by assigningvalues value1, value2 and so on.Once an object is defined using \newpsobject, we can change its parametersthe usual way by enclosing the new values <strong>with</strong>in square brackets. Theexamples below illustrates this:Online L A TEX TutorialPart II – Graphics<strong>PSTric</strong>ks\newpsobject{bigdots}%{psdots}%{dotsize=1 0,%linecolor=Red}\begin{pspicture}(-0.5,-0.5)(1.5,1.37)\bigdots(0,0)(1,0)(0.5,0.866)\end{pspicture}\vspace{1cm}\begin{pspicture}(-0.5,-0.5)(1.5,1.37)\bigdots[linecolor=Green](0,0)\bigdots[linecolor=Blue](1,0)\bigdots(0.5,0.866)\end{pspicture}••••••E Krishnan, CV Radhakrishnan and AJ Alexconstitute the <strong>graphics</strong> tutorial team. Commentsand suggestions may be mailed totutorialteam@tug.org.inc○2004, The Indian TEX Users GroupThis document is generated by PDFTEX <strong>with</strong>hyperref, pstricks, pdftricks and pdfscreenpackages in an intel PC running GNU/LINUXand is released under LPPLThe Indian TEX Users GroupFloor III, SJP Buildings, Cotton HillsTrivandrum 695014, INDIAhttp://www.tug.org.in 4/23

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

Saved successfully!

Ooh no, something went wrong!