.ig
Macro file for formatting sections of the Almagest for standalone
printing.

Author: E. A. Lee
Date: 10/7/90
Version: @(#)standalone	1.6	12/1/92

Note that the subsection headers may be numbered differently
when the document is printed in standalone form than when it is printed
in the complete manual.

All me macros may be used in addition to the macros defined here.

The shared macro file is assumed to be included as well.

Usage:

.VR 0. % I % "date"  \" version number (without the spaces in % I %)
.TI "SECTION TITLE"
.AU
Author list
one name per line
no punctuation
.AE
.UH "Un-numbered header
.H1 "Section Title
.H2 "Title
.H3 "Title
.H4 "Title
..


.EQ
delim off
.EN

.de TI \" Print title
.ls1
.\" To get nroff to move the title down, we use a blank block keep
.(b
.sp 1.0i
.)b
.tm title \\n% \\$1 \"Output for table of contents
.eh '\\f\\n(HXUC Berkeley, EECS''%'
.oh '\\f\\n(HX\\$1''%'
.nr S1 0 1 \" Initialize number register for major section numbers
.S 14 \"title is 14 point
.hl
.(b C
\\f\\n(TX
\\$1
\\fR
.)b
.hl
.S \\n(BX
.(b C
Department of Electrical Engineering and Computer Science
University of California at Berkeley
Berkeley, California 94720
.)b
.(f
Copyright \(co 1990, 1991, 1992 Regents of the University of California.
All rights reserved.
.)f
..

.de VR
.ef '\\f\\n(HXDocument version \\$1''\\$2'
.of '\\f\\n(HXDocument version \\$1''\\$2'
.(f
Document version \\f\\n(HX\\$1 (\\$2).
.)f
..

.de AU \" Author names
\\fI
.S \\n(BX
Authors:
.nf
.in +1i
..
.de AE \" End Author names
.fi
.in -1i
\\fR
.bp
..

.de UH
.\" Single argument is the name of the section
.br
.nr SE 0 1 \" Initialize number register for section numbers
.S 14
.ne 1.5i
.uh "\\f\\n(SX\\$1"
.tm headerU \\n% \\$1 \"Output for table of contents
.S \\n(BX
..

.de H1
.\" Single argument is the name of the section
.br
.nr SE 0 1 \" Initialize number register for section numbers
.nr S1 +1  \" Increment major section number
.S 14
.ne 1.5i
.sh 1 "\\f\\n(SX\\$1" \\n(S1
.S \\n(BX
.tm header1 \\n% \\n(S1 \\$1 \"Output for table of contents
..

.de H2 \"Print major section heading
.\" Single argument is the name of the section
.br
.nr SE +1  \" Increment section number
.S 14
.ne 1i
.sh 2 "\\f\\n(SX\\$1" \\n(S1.\\n(SE
.tm header2 \\n% \\n(S1.\\n(SE \\$1 \"Output for table of contents
.S \\n(BX
..

.de H3 \"Print third level section heading
.br
.\" Single argument is the name of the section
.S 14
.ne 1i
.sh 3 "\\f\\n(SX\\$1"
.tm header3 \\n% \\n(SE \\$1 \"Output for table of contents
.S \\n(BX
..

.de H4 \"Print fourth level section heading
.br
.\" Single argument is the name of the section
.ne 1i
.uh "\\f\\n(SX\\$1"
..

.\" Formating directives
.S \\n(BX

.EQ
delim $$
gsize 12
.EN
