TOC(1G) COMMAND REFERENCE TOC(1G)
NAME
toc - graphical table of contents routines
SYNOPSIS
dtoc [directory]
ttoc mm-file
vtoc [-cdhnimsvn] [TTOC file]
DESCRIPTION
All of the commands listed reside in /usr/bin/graf (see
graphics(1g)):
dtoc Makes a textual table of contents, TTOC, of all
subdirectories beginning at directory (directory
defaults to .). The list has one entry per directory.
The entry fields from left to right are level number,
directory name, and the number of ordinary readable
files in the directory. dtoc is useful in making a
visual display of all or parts of a file system. The
following will make a visual display of all the
readable directories under /:
dtoc / | vtoc | td
ttoc Output is the table of contents generated by the .TC
macro of mm(7) translated to TTOC format. The input is
assumed to be an mm file that uses the .H family of
macros for section headers. If no file is given, the
standard input is assumed.
vtoc Produces a GPS describing a hierarchy chart from a
TTOC. The output drawing consists of boxes containing
text connected in a tree structure. If no file is
given, the standard input is assumed. Each TTOC entry
describes one box and has the form:
id [line-weight,line-style] "text" [mark]
where:
id is an alternating sequence of numbers and dots.
The id specifies the position of the entry in
the hierarchy. The id 0. is the root of the
tree.
line-weight
is either:
n, normal-weight; or
m, medium-weight; or
b, bold-weight.
Printed 4/6/89 1
TOC(1G) COMMAND REFERENCE TOC(1G)
line-style
is either:
so, solid-line;
do, dotted-line;
dd, dot-dash line;
da, dashed-line; or
ld, long-dashed
text is a character string surrounded by quotes.
The characters between the quotes become the
contents of the box. To include a quote within
a box it must be escaped ( \ " ).
mark is a character string (surrounded by quotes if
it contains spaces), with included dots being
escaped. The string is put above the top right
corner of the box. To include either a quote
or a dot within a mark it must be escaped.
Entry example: 1.1 b,da "ABC" DEF
Entries may span more than one line by escaping
the new-line (\new-line).
Comments are surrounded by the /*,*/ pair.
They may appear anywhere in a TTOC.
Options:
c Use text as entered (default is all
uppercase).
d Connect the boxes with diagonal lines.
hn Horizontal interbox space is n% of box
width.
i Suppress the box id.
m Suppress the box mark.
s Do not compact boxes horizontally.
vn Vertical interbox space is n% of box
height.
SEE ALSO
graphics(1g) and gps(5g) in the UNIXr System Programmer
Reference Manual.
Printed 4/6/89 2
%%index%%
na:240,95;
sy:335,365;
de:700,2344;3356,2010;
se:5366,265;
%%index%%000000000092