PIC(1) PIC(1) (NAME) pic - roff TeX (SYNOPSIS) pic [ ... ] [ ... ] (DESCRIPTION) pic troff . pic groff(1) . pic troff(1) roff(7) TeX TeX troff . () .PS .PE .PF .PY pic . pic .PE .PF .PY . pic -p groff(1) . <<->> . PS PE PF PY . -mpic groff . pic PY PF mm ( PF ) . PF . (OPTIONS) --help -v --version . -c tpic -t . \ () . . \ . .ps : ( ) . thickness linethick . -C .PS .PE .PF .PY . -n groff troff . ( groff_out(5) ) . pic troff . -S (safer mode) sh . . -t TeX . -U (unsafe mode) sh . -z TeX . pic : -D \D . pic . -T dev dev troff. troff pic . (USAGE) pic AT&T (1985) . pic AT&T . TeX (TeX mode) TeX -t . TeX (specials) tpic . (tpic pic AT&T . \special TeX .) \ % . \baselineskip . . -- -c . TeX pic (vbox) \graph . figname pic vbox . vbox : \centerline{\box\graph} vbox ( \vtop ) : \centerline{\raise 1em\box\graph} . vbox ( graphics.sty ) : \def\gpicbox#1{% \vbox{\unvbox\csname #1\endcsname\kern 0pt}} \box\graph \gpicbox{graph} . (COMMANDS) pic { } . . ( ) . . for variable = expr1 to expr2 [by [*]expr3] do X body X variable expr1 . variable expr2 body variable expr3 by . expr3 * expr3 . expr3 expr2 . expr3 . . X body . if expr then X if-true X [else Y if-false Y] expr if-true if-false . X if-true . Y if-false . print arg ... (stderr) . arg (position) . . command arg ... troff TeX . arg . command pic . : .PS x = 14 command ".ds string x is " x "." .PE \*[string] troff : x is 14. sh X command X command (shell) . copy "filename" filename . copy ["filename"] thru X body X [until "word"] copy ["filename"] thru macro [until "word"] body filename $i body ( i ) i- . filename .PE . until word . X body . : .PS copy thru % circle at ($1,$2) % until "END" 1 2 3 4 5 6 END box .PE .PS circle at (1,2) circle at (3,4) circle at (5,6) box .PE . thru. thru . reset reset pvar1[,] pvar2 ... pvar1 pvar2 ... . . scale scale . plot expr ["text"] text sprintf expr . text %g . . pic . sprintf . var := expr = var expr var . ( = var .) : .PS x = 3 y = 3 [ x := 5 y = 5 ] print x " " y .PE 5 3 . (EXPRESSIONS) : x ^ y (exponentiation) sin(x) cos(x) atan2(y, x) log(x) exp(x) ( 10^x) sqrt(x) () int(x) rand() rand(x) x ( ) srand(x) max(e1, e2) min(e1, e2) !e (NOT) e1 && e2 (AND) e1 || e2 (OR) e1 == e2 e1 != e2 e1 >= e2 e1 > e2 e1 <= e2 e1 < e2 "str1" == "str2" "str1" != "str2" . (OTHER CHANGES) expr dir expr dir . : line 2i . 'i' ( 'I') scale . maxpswid maxpsht . . . : x = 5e-2 . : "foo" above ljust . . : [A: [B: [C: box ]]] with .A.B.C.sw at 1,2 circle at last [].A.B.C . (arcs) . (dotted) (dashed) . TeX (splines) . (boxes) . rad . rad diam boxrad . boxrad . . . . xslanted yslanted (x) (y) - . .PS . . pic . DWB 2.0 pic . . . . textwid textht . textwid textht . : sprintf("format", arg, ...) format printf(3) . '#' '-' '+' ' ' () %e %E %f %g %G %% . linethick . . : TeX TeX -c .ps troff (pointsize) . . - . thick[ness] . : circle thickness 1.5 . scale .PS . ( ) fill[ed] () . . : . . fillval . . invisible () . . : outline[d] shaded colour[ed] ( color[ed] ) . : circle shaded "green" outline "black" TeX . ps.tmac defcolor ( groff(7) ). vbox TeX figname ( ) : .PS figname = foobar; ... .PE \foobar . pic (glyph) . arrowhead TeX -n . arrowhead . . troff pic . -T . troff . aligned . grops(1) gropdf(1) . aligned . . nth 'expr'th . ''th' () : 'th' . : for i = 1 to 4 do { line from 'i'th box.nw to 'i+1'th box.se } (CONVERSION) pic pic .PS .PE roff roff . groff .PS .PE . mm . groff . : .de PS .. .de PE .. groff . -Tps groff (PostScript) . ps BoundingBox ps2other pstoother . (gs(1)) : gs -sDEVICE= : gs --help -Tpdf PDF . (MediaBox) -P-p groff . (EPS) ps2eps . ps2epsi gs . (bitmap) pstopnm pnm(5) netpbm . (FILES) /usr/share/groff/1.23.0/tmac/pic.tmac PS PE PF PY . (BUGS) troff ( Texinfo groff groff_char(7) ) TeX . fillval pic . (SEE ALSO) /usr/share/doc/groff-base/pic.ps.gz <> (Eric S. Raymond). pic.ms groff . <> (Brian W. Kernighan) ( ) AT&T . ps2eps CTAN : ftp://ftp.dante.de/tex-archive/support/ps2eps (W. Richard Stevens) PIC HTML (Turning PIC into HTML) (W. Richard Stevens) pic (Examples of pic Macros) troff(1) groff(1) groff_out(5) groff_char(7) roff(7) tex(1) gs(1) ps2eps(1) pstopnm(1) ps2epsi(1) pnm(5) printf(3) groff PIC(1)