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.

Custom Graphics333Simple customizationHigher level customization22211100 1 2 3 400 1 2 3 400 1 2 3 4liftpen=0liftpen=1liftpen=2The last picture may need some explanation; note that when we instruct an“open” curve to be “filled”, then the first and the last points are joined tomake a closed region, which is then filled.8.2.4. Other tricksBefore discussing some other techniques, we must take a closer look at theway POSTSCRIPT handles <strong>graphics</strong>. When we give instructions to draw apath in POSTSCRIPT, it is not immediately drawn; we will also have to giveinstructions to draw it, or stroke it in POSTSCRIPT terminology. Again, we willhave to give explicit commands to fill a region. The command \pscustomautomatically does the stroking and filling at the end, subject to the variouslinestyle and fillstyle options. But <strong>with</strong>in \pscustom we ourselves canstroke or fill using the commands \stroke or \fill. We can also use thecommand \newpath to clear the current path and current point. Look at theexample below:Online L A TEX TutorialPart II – Graphics<strong>PSTric</strong>ksE 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 15/23

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

Saved successfully!

Ooh no, something went wrong!