summaryrefslogtreecommitdiff
path: root/static/unix-v10/man1/ptx.1
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-26 16:38:00 -0400
committerJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-26 16:38:00 -0400
commit97d5c458cfa039d857301e1ca7d5af3beb37131d (patch)
treeb460cd850d0537eb71806ba30358840377b27688 /static/unix-v10/man1/ptx.1
parentb89dc2331a50c63f8b33272a5c4c61ab98abdaa3 (diff)
build: Better Build System
Diffstat (limited to 'static/unix-v10/man1/ptx.1')
-rw-r--r--static/unix-v10/man1/ptx.1120
1 files changed, 120 insertions, 0 deletions
diff --git a/static/unix-v10/man1/ptx.1 b/static/unix-v10/man1/ptx.1
new file mode 100644
index 00000000..b14ad396
--- /dev/null
+++ b/static/unix-v10/man1/ptx.1
@@ -0,0 +1,120 @@
+.TH PTX 1
+.CT 1 writing_aids
+.SH NAME
+ptx \- permuted index
+.SH SYNOPSIS
+.B ptx
+[
+.I option ...
+]
+[
+.I input
+[
+.I output
+]
+]
+.SH DESCRIPTION
+.I Ptx
+generates a permuted index to file
+.I input
+on file
+.I output
+(standard input and output default).
+It has three phases: the first does the permutation, generating
+one line for each keyword in an input line.
+The keyword is rotated to the front.
+The permuted file is then
+sorted.
+Finally, the sorted lines are rotated so the keyword
+comes at the middle of the page.
+.I Ptx
+produces output exemplified by:
+.br
+.IP
+.L
+\&.xx "tail" "before" "keyword and after" "head"
+.LP
+where
+.L .xx
+may be defined as a
+.IR troff (1)
+macro
+for user-defined formatting.
+The
+.I before
+and
+.I keyword and after
+fields incorporate as much of the line as will fit
+around the keyword when it is printed at the middle of the page.
+.I Tail
+and
+.I head,
+at least one of which is an empty string,
+are wrapped-around pieces small enough to fit
+in the unused space at the opposite end of the line.
+When original text must be discarded,
+.L /
+marks the spot.
+.PP
+The following options can be applied:
+.TP
+.BR -f
+Fold upper and lower case letters for sorting.
+.TP
+.BR -t
+Prepare the output for the phototypesetter;
+the default line length is 100 characters.
+.TP
+.BI -w " n"
+Use the next argument,
+.I n,
+as the width of the output line.
+The default line length is 72 characters.
+.TP
+.BI -g " n"
+Use the next argument,
+.I n,
+as the number of characters to allow for each gap
+among the four parts of the line as finally printed.
+The default gap is 3 characters.
+.TP
+.BI -o " only"
+Use as keywords only the words given in the
+.I only
+file.
+.TP
+.BI -i " ignore"
+Do not use as keywords any words given in the
+.I
+ignore
+file.
+If the
+.B -i
+and
+.B -o
+options are missing, use
+.F /usr/lib/eign
+as the
+.I
+ignore
+file.
+.TP
+.BI -b " break"
+Use the characters in the
+.I break
+file to separate words.
+In any case, tab, newline, and space characters are always used as break characters.
+.TP
+.B -r
+Take any leading nonblank characters of each input line to
+be a reference identifier (as to a page or chapter)
+separate from the text of the line.
+Attach that identifier as a 5th field on each output line.
+.PP
+The index for this manual was generated using
+.I ptx.
+.SH FILES
+.F /usr/lib/eign
+.SH BUGS
+Line length counts do not account for overstriking or
+proportional spacing.