.ig
Macro file for formatting sections of the Almagest for printing
together with the entire manual.

Author: E. A. Lee
Date: 10/7/90
Version: @(#)together	1.3	11/2/90

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
.eh '\\f\\n(HXUC Berkeley, EECS''\\n(AS-%'
.oh '\\f\\n(HX\\$1''\\n(AS-%'
.bp
.nr S1 0 1 \" Initialize number register for major section numbers
.nr SN +1 \" Increment section number
.tm mansection \\n(AS-\\n% \\n(SN \\$1 \"Output for table of contents
.S 14 \"title is 14 point
.uh "\\f\\n(TX\\n(SN.  \\$1\\fR"
.S \\n(BX
..

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

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

.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(AS-\\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 subsection numbers
.nr S1 +1  \" Increment major section number
.S 14
.ne 1.5i
.uh "\\f\\n(SX\\n(SN.\\n(S1.  \\$1"
.S \\n(BX
.tm header1 \\n(AS-\\n% \\n(SN.\\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
.uh "\\f\\n(SX\\n(SN.\\n(S1.\\n(SE.  \\$1"
.tm header2 \\n(AS-\\n% \\n(SN.\\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
.uh "\\f\\n(SX\\$1"
.tm header3 \\n(AS-\\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
.sp 0.5
"\\f\\n(SX\\$1\\fR."
..

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

.EQ
delim $$
gsize 12
.EN
