shithub: riscv

Download patch

ref: d972962f925ce533ff9b0c607ae0d9578bd0ec17
parent: d019a03f3785ede5861fa9fab81017a73ffe17f8
author: Anthony Martin <ality@pbrane.org>
date: Sat Jun 26 20:11:17 EDT 2021

pic(1): restore example section

It was erroneously elided when removing
the tpic command in commit 891a8c4f2.


--- a/sys/man/1/pic
+++ b/sys/man/1/pic
@@ -288,10 +288,34 @@
 The
 .B undef
 statement removes the definition of a macro.
+.SH EXAMPLES
+.EX
+arrow "input" above; box "process"; arrow "output" above
+move
+A: ellipse
+   circle rad .1 with .w at A.e
+   circle rad .05 at 0.5 <A.c, A.ne>
+   circle rad .065 at 0.5 <A.c, A.ne>
+   spline from last circle.nw left .25 then left .05 down .05
+   arc from A.c to A.se rad 0.5
+   for i = 1 to 10 do { line from A.s+.025*i,.01*i down i/50 }
+.EE
+.PP
+.PS
+arrow "input" above; box "process"; arrow "output" above
+move
+A: ellipse
+   circle rad .1 with .w at A.e
+   circle rad .05 at 0.5 <A.c, A.ne>
+   circle rad .065 at 0.5 <A.c, A.ne>
+   spline from last circle.nw left .25 then left .05 down .05
+   arc from A.c to A.se rad 0.5
+   for i = 1 to 10 do { line from A.s+.025*i,.01*i down i/50 }
+.PE
 .SH SOURCE
 .B /sys/src/cmd/pic
 .SH "SEE ALSO"
-.IR grap (1), 
+.IR grap (1),
 .IR doctype (1),
 .IR troff (1)
 .br