summaryrefslogtreecommitdiff
path: root/doc/pic.ms
diff options
context:
space:
mode:
authorwlemb <wlemb>2001-07-17 13:17:03 +0000
committerwlemb <wlemb>2001-07-17 13:17:03 +0000
commit776b7cbc82819cc52342c9ddc02c1a117df0a5e4 (patch)
tree764ecd0ac5c56e9d7a0ee92b8675f5713f90dd73 /doc/pic.ms
parentcf123e890bce728d294f838b8961a90f5ea00fd2 (diff)
downloadgroff-776b7cbc82819cc52342c9ddc02c1a117df0a5e4.tar.gz
Replace call to `troff' with `groff -Z' to make it aware of
GROFF_BIN_PATH. * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro. (troff_command, command_prefix): Removed. (alterDeviceTo): Use groff. (addZ): New function. (char_buffer::do_html): Use it. (scanArguments): Use TROFF_COMMAND. (findPrefix): Removed. (main): Updated. * src/roff/groff/groff.cc (main): Handle zflag for preprocessors. * doc/pic.ms: Documentation fixes. Replace atexit() with global destructor. * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor. (xtmpfile_list_init): New global structure to deallocate xtmpfile_list on exit. Its destructor inherits most code from remove_tmp_files(). (remove_tmp_files): Deleted. (add_tmp_file): Simplified.
Diffstat (limited to 'doc/pic.ms')
-rw-r--r--doc/pic.ms12
1 files changed, 7 insertions, 5 deletions
diff --git a/doc/pic.ms b/doc/pic.ms
index 627a84f5..3166a4a8 100644
--- a/doc/pic.ms
+++ b/doc/pic.ms
@@ -10,7 +10,7 @@
.\" This document was written for free use and redistribution by
.\" Eric S. Raymond <esr@thyrsus.com> in August 1995.
.\"
-.\" $Id: pic.ms,v 1.4 2001/06/24 13:03:27 wlemb Exp $
+.\" $Id: pic.ms,v 1.5 2001/07/17 13:17:04 wlemb Exp $
.\"
.\" Set a proper TeX
.ie t .ds tx T\h'-.1667m'\v'.224m'E\v'-.224m'\h'-.125m'X
@@ -654,7 +654,7 @@ has been filled, so that the text will not be obscured by the filling.
.PP
The closed-object modifier \fBsolid\fR is equivalent to \fBfill\fR
with the darkest fill value (DWB \fBpic\fR had this capability but
-mentioned it only in a reference opinion).
+mentioned it only in a reference section).
.NH 1
More About Text Placement
.PP
@@ -1372,10 +1372,12 @@ Various built-in functions are supported: \fBsin(\fIx\fB)\fR,
\fBcos(\fIx\fB)\fR, \fBlog(\fIx\fB)\fR, \fBexp(\fIx\fB)\fR,
\fBsqrt(\fIx\fB)\fR, \fBmax(\fIx\fB,\fIy\fB)\fR,
\fBatan2(\fIx\fB,\fIy\fB)\fR, \fBmin(\fIx\fB,\fIy\fB)\fR,
-\fBint(\fIx\fB)\fR, and \fBrand()\fP.
+\fBint(\fIx\fB)\fR, \fBrand()\fP, and \fBsrand()\fP.
Both \fBexp\fP and \fBlog\fP are
-base 10; \fBint\fP does integer truncation; and \fBrand()\fP returns a
-random number in [0-1).
+base 10; \fBint\fP does integer truncation; \fBrand()\fP returns a
+random number in [0-1), and \fBsrand()\fP sets the seed for
+a new sequence of pseudo-random numbers to be returned by \fBrand()\fP
+(\fBsrand()\fP is a GNU extension).
.PP
GNU \fBgpic\fP also documents a one-argument form or rand,
\fBrand(\fIx\fB)\fR, which returns a random number between 1 and