%!PS-Adobe %%DocumentFonts: Times-Roman Times-Bold Times-Italic %%Title: PostScript Reference Card %%Creator: Glenn Trewitt, trewitt@amadeus.stanford.edu %%CreationDate: Aug 1, 1986 %%Pages: 2 %%EndComments % Copyright 1987 (c) Glenn Trewitt % Please redistribute but do not sell. % This notice must remain intact. /in {72 mul} def /col-width 3.25 in def /col-dx 3.5 in def /newpage { showpage grestore SV restore /SV save def gsave } bind def /column { grestore col-dx 0 translate gsave newpath 0 0 moveto col-width 0 lineto 1 setlinewidth stroke /Times-Bold findfont 11 scalefont setfont 3 3 moveto show /Times-Italic findfont 8 scalefont setfont 3.25 in 3 add 3 moveto (PostScript Reference Card) dup stringwidth neg exch 10 add neg exch rmoveto show 0 dy neg moveto /ypos dy neg def } bind def /bold /Times-Bold findfont 7 scalefont def /roman /Times-Roman findfont 7 scalefont def /italic /Times-Italic findfont 7 scalefont def % Each line looks like: % before OP after /horiz-op 85 def % Left edge of OP field /space 10 def % Space on either side of OP /dy 8.5 def % Line spacing % mark (operator) (before) (after) ln % or % mark (operator) (before) (after) (comment) ln /ln { counttomark 4 ge dup /docomment exch def { /comment exch def } if /after exch def /before exch def /op exch def roman setfont before stringwidth pop space add neg horiz-op add 0 rmoveto before show op length 0 gt { bold setfont space 0 rmoveto op show roman setfont space 0 rmoveto /last-after currentpoint pop def } { last-after ypos moveto } ifelse after show docomment { italic setfont col-width comment stringwidth pop sub ypos moveto comment show } if /ypos ypos dy sub def 0 ypos moveto } bind def /skip { /ypos ypos dy .5 mul sub def 0 ypos moveto } bind def /null (\261) def 90 rotate .25 in -.5 in translate col-dx neg 0 translate % undo first page command mark % something to hit against /SV save def gsave %%EndProlog % ******************** LIST OF COMMANDS ************************* %%Page: 1-2-3 1 (1) column ([) null (mark) ln (]) (mark e1 ... eN) (array) ln (=) (any) null ln (==) (any) null ln (abs) (num) (|num|) ln (add) (num1 num2) (num1+num2) ln (aload) (array) (e1 ... eN array) ln (anchorsearch) (string seek) (spost smatch true) (found) ln () () (string false) (not found) ln (and) (a b) (a&b) (logical or bitwise) ln (arc) (x y r ang1 ang2) null ln (arcn) (x y r ang1 ang2) null ln (arcto) (x1 y1 x2 y2 r) (xt1 yt1 xt2 yt2) ln (array) (size) (array) ln (ashow) (ax ay string) null ln (astore) (e1 ... eN array) (array) ln (atan) (x y) (angle) (0..360) ln (awidthshow) (cx cy char ax ay string) null ln (banddevice) (matrix w h proc) null ln (begin) (dict) null ln (bind) (proc) (proc) ln (bitshift) (int shift) (int>>shift) (right: +, left: -) ln (bytesavailable) (file) (int) (-1 => EOF or unknown) ln (cachestatus) null (Bs Bm Ms Mm Cs Cm blimit) ln (ceiling) (number) (integer) ln (charpath) (string strokepath-bool) null ln (clear) (|\261 any ...) (|\261) ln (cleartomark) (mark obj ...) null ln (clip) null null ln (clippath) null null ln (closefile) (file) null ln (closepath) null null ln (concat) (matrix) null ln (concatmatrix) (mtrx1 mtrx2 mtrx3) (mtrx3) (=mtrx1*mtrx2) ln (copy) (a1 ... aN N) (a1 ... aN a1 ... aN) ln (copy) (obj1 obj2) (obj2) (array, dict, string) ln (copypage) null null ln (cos) (angle) (cosine\(a\)) ln (count) (|\261 any1 ... anyN) (|\261 any1 ... anyN N) ln (countdictstack) null (count) ln (countexecstack) null (count) ln (counttomark) (mark obj1 ... objN) (mark obj1 ... objN N) ln (currentcacheparams) null (mark lower upper) (V 38.0) ln (currentdash) null (array offset) ln (currentdict) null (dict) ln (currentfile) null (file) ln (currentflat) null (number) ln (currentfont) null (font) ln (currentgray) null (number) ln (currenthsbcolor) null (hue sat bright) ln (currentlinecap) null (integer) ln (currentlinejoin) null (integer) ln (currentlinewidth) null (number) ln (currentmatrix) (matrix) (CTM-matrix) ln (currentmiterlimit) null (number) ln (currentpacking) null (bool) (V 38.0) ln (currentpoint) null (x y) ln (currentrgbcolor) null (red green blue) ln (currentscreen) null (freq angle spot-func) ln (currenttransfer) null (gray-tansf-func) ln (curveto) (x1 y1 x2 y2 x3 y3) null ln (2) column (cvi) (num|string) (int) ln (cvlit) (any) (any) ln (cvn) (string) (name) ln (cvr) (num|string) (real) ln (cvrs) (num base string) (substring) ln (cvs) (any string) (substring) ln (cvx) (any) (any) ln (def) (key value) null ln (defaultmatrix) (matrix) (def-matrix) ln (definefont) (key font) (font) ln (dict) (size) (dict) ln (dictstack) (array) (subarray) ln (div) (num1 num2) (num1/num2) ln (dtransform) (dx dy) (dxt dyt) ln (dtransform) (dx dy matrix) (dxt dyt) ln (dup) (any) (any any) ln (echo) (bool) null ln (end) null null ln (eoclip) null null ln (eofill) null null ln (eq) (any1 any2) (bool) (true iff any1=any2) ln (erasepage) null null ln (exch) (any1 any2) (any2 any1) ln (exec) (any) null ln (execstack) (array) (subarray) ln (executeonly) (obj) (obj) (array, file, string) ln (exit) null null ln (exp) (base exp) (base**exp) ln (file) (name \(r\)|\(w\)) (file) ln (fill) null null ln (findfont) (key) (font) ln (flattenpath) null null ln (floor) (number) (int) ln (flush) null null ln (flushfile) (file) null ln (for) (init incr limit proc) null ln (forall) (obj proc) null (array, dict, string) ln (framedevice) (matrix wd ht proc) null ln (ge) (a b) (a>=b) (numeric or string) ln (get) (obj index) (element) (array, dict, string) ln (getinterval) (array|string start count) (subarray|substring) ln (grestore) null null ln (grestoreall) null null ln (gsave) null null ln (gt) (a b) (a>b) (numeric or string) ln (identmatrix) (matrix) (id-transf-matrix) ln (idiv) (int1 int2) (quotient) (integer divide) ln (idtransform) (dxt dyt) (dx dy) ln (idtransform) (dxt dyt matrix) (dx dy) ln (if) (bool proc) null ln (ifelse) (bool proc1 proc2) null ln (image) (wd ht bits mtrx proc) null ln (imagemask) (wd ht invrt mtrx proc) null ln (index) (aN ... a0 N) (aN ... a0 aN) ln (initclip) null null ln (initgraphics) null null ln (initmatrix) null null ln (invertmatrix) (matrix1 matrix2) (martix2) ln (itransform) (xt yt) (x y) ln (itransform) (xt yt matrix) (x y) ln (known) (dict key) (bool) ln (3) column (kshow) (proc string) null ln (le) (a b) (a<=b) (numeric or string) ln (length) (obj) (length) (array, dict, string) ln (lineto) (x y) null ln (ln) (num) (real) (base e) ln (load) (key) (value) ln (log) (num) (real) (base 10) ln (loop) (proc) null ln (lt) (a b) (a