9front - general discussion about 9front
 help / color / mirror / Atom feed
From: Anthony Martin <ality@pbrane.org>
To: 9front@9front.org
Subject: [9front] [PATCH] pic(1): restore example section
Date: Sat, 26 Jun 2021 17:11:17 -0700	[thread overview]
Message-ID: <YNfCJe+Eej8ab1Zp@alice> (raw)


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

---
diff 1e286c2a4b05d8864a4a8c17dc4c304d094c51e9 f0eb10de2c73527419c773a6901850090062bcbc
--- a/sys/man/1/pic	Thu Jun 24 16:51:20 2021
+++ b/sys/man/1/pic	Sat Jun 26 16:59:51 2021
@@ -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


             reply	other threads:[~2021-06-27  0:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-27  0:11 Anthony Martin [this message]
2021-06-27  0:52 ` ori

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YNfCJe+Eej8ab1Zp@alice \
    --to=ality@pbrane.org \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).