.\" Hey, Emacs, edit this file in -*- nroff-fill -*- mode!
.\" This module is believed to contain source code proprietary to AT&T.
.\" Use and redistribution is subject to the Berkeley Software License
.\" Agreement and your Software Agreement with AT&T (Western Electric).
.\"
.\"	@(#)tt00	8.1 (Berkeley) 6/8/93
.\" Copyright (C) Caldera International Inc. 2001-2002.  All rights reserved.
.\" 
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions are
.\" met:
.\" 
.\" Redistributions of source code and documentation must retain the above
.\" copyright notice, this list of conditions and the following
.\" disclaimer.
.\" 
.\" Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\" 
.\" All advertising materials mentioning features or use of this software
.\" must display the following acknowledgement:
.\" 
.\" This product includes software developed or owned by Caldera
.\" International, Inc.  Neither the name of Caldera International, Inc.
.\" nor the names of other contributors may be used to endorse or promote
.\" products derived from this software without specific prior written
.\" permission.
.\" 
.\" USE OF THE SOFTWARE PROVIDED FOR UNDER THIS LICENSE BY CALDERA
.\" INTERNATIONAL, INC.  AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
.\" DISCLAIMED.  IN NO EVENT SHALL CALDERA INTERNATIONAL, INC. BE LIABLE
.\" FOR ANY DIRECT, INDIRECT INCIDENTAL, SPECIAL, EXEMPLARY, OR
.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
.\" BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
.\" WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
.\" OR OTHERWISE) RISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\" 
.\" $FreeBSD: release/9.1.0/share/doc/usd/22.trofftut/tt00 96897 2002-05-19 03:37:41Z grog $
.\"
.EH 'USD:22-%''A TROFF Tutorial'
.OH 'A TROFF Tutorial''USD:22-%'
.\".RP
.\" .....TM 76-1273-7 39199 39199-11
.TL
A TROFF Tutorial
.AU "MH 2C-518" 6021
Brian W. Kernighan
(updated for 4.3BSD by Mark Seiden)
.AI
.\" What's this? .MH
.\" And this? .OK
\"Typesetting
\"Text formatting
\"NROFF
.AB
.PP
.UL troff
is a text-formatting program for
typesetting on the
.UX
operating system.
This device is capable of producing high quality
text;
this paper is an example of
.UL troff
output.
.PP
The phototypesetter itself normally runs with four fonts,
containing roman, italic and bold letters 
(as on this page),
a full greek alphabet, and a substantial number of
special characters and mathematical symbols.
Characters can be printed in a range of sizes,
and placed anywhere on the page.
.PP
.UL troff
allows the user full control over fonts,
sizes, and character positions,
as well as the usual features of a formatter _
right-margin justification, automatic hyphenation,
page titling and numbering, and so on.
It also provides macros, arithmetic variables and operations,
and conditional testing, for complicated formatting tasks.
.PP
This document is an introduction to the most basic use of
.UL troff .
It presents just enough information to enable the user
to do simple formatting
tasks like making viewgraphs,
and to make incremental changes to existing packages
of
.UL troff
commands.
In most respects, the 
.UC UNIX
formatter
.UL nroff
and a more recent version
.ul
(device-independent 
.UL troff)
are identical to
the version described here, so this document also serves as a tutorial for
them as well.
.PP
.vs 12p
\fB\s+1NOTE: This document refers to the historical \f(BItroff\fB program, and
not to \f(BIgroff\fB.  This is a first cut at importing the tutorial from
4.4BSD, now that the code has been released.  It should at some time be modified
to describe \f(BIgroff\fR.\s0
.AE
.nr LL 6.5i
.nr LT 6.5i
.\" Unknown macro .CS 13 1 14 0 0 5
.if t .2C
.nr PS 9
.nr VS 11
