<!-- \nul;
\nul;
\nul;
\nul;
\nul;
\nul;

\nul; -->
<!DOCTYPE article SYSTEM "gellmu.dtd"><article stem="gsample2e">
<cw0/>
<title>An Example Document</title>  <cs0/>
<author>Leslie Lamport</author>      <cs0/>
<date>January 21, 1994</date>      <cs0/>
<nul/>
<nogratlinks>
<nul/>
<nobanner>
<nul/>
<cw0/>
<cw0/>

<nul/>
<cw0/>
<cw0/>

<nul/>
<cm0/> <cs0/>
<nul/>
<nul/>
<nul/>

<body>             <cs0/>

<maketitle>                   <cs0/>
<parb>
This is an example input file<eos/>  Comparing it with
the output it generates can show you how to
produce a simple document of your own<eos/>

<section>Ordinary Text</section>      <cs0/>
<cw0/>
<cw0/>
<parb>
The ends  of words and sentences are marked
  by   spaces. It  doesn't matter how many
spaces    you type; one is as good as 100<eos/>  The
end of   a line counts as a space<eos/>
<parb>
One   or more   blank lines denote the  end
of  a paragraph<eos/>
<parb>
Since any number of consecutive spaces are treated
like a single one, the formatting of the input
file makes no difference to
      <latex/>,                <cs0/>
but it makes a difference to you<eos/>  When you use
<latex/>, making your input file as easy to read
as possible will be a great help as you write
your document and when you change it<eos/>  This sample
file shows how you can add comments to your own input
file<eos/>
<parb>
Because printing is different from typewriting,
there are a number of things that you have to do
differently when preparing an input file than if
you were just typing the document directly<eos/>
Quotation marks like
       <quophrase>this</quophrase>
have to be handled specially, as do quotes within
quotes:
       <quophrase><hsp/>`this'            <cs0/>
        is what I just
        wrote, not  `that'<hsp/></quophrase><eos/>
<parb>
Dashes come in three sizes: an
       intra<hyp/>word
dash, a medium dash for number ranges like
       1<rdash/>2,
and a punctuation
       dash<pdash/>like
this<eos/>
<parb>
A sentence<hyp/>ending space should be larger than the
space between words within a sentence<eos/>  You
sometimes have to type special commands in
conjunction with punctuation characters to get
this right, as in the following sentence<eos/>
       Gnats, gnus, etc.<spc/>all  <cs0/>
       begin with G<aTs/><eos/>         <cs0/>
You should check the spaces after periods when
reading your output to make sure you haven't
forgotten any special cases<eos/>  Generating an
ellipsis
       <ldots><spc/>              <cs0/>
<cw0/>
<cw0/>
<cw0/>
<cw0/>
<cw0/>
<cw0/>
<cw0/>
with the right spacing around the periods requires
a special command<eos/>
<parb>
<latex/><spc/>interprets some common characters as
commands, so you must type special commands to
generate them<eos/>  These characters include the
following:
       <dol/> <amp/> <pct/> <hsh/> <lbr/> and <rbr/><eos/>
<parb>
In printing, text is usually emphasized with an
       <emph>italic</emph>
type style<eos/>
<parb>
<emph>
   A long segment of text can also be emphasized
   in this way<eos/>  Text within such a segment can be
   given <emph>additional</emph> emphasis<eos/>
</emph>
<parb>
It is sometimes necessary to prevent <latex/><spc/>from
breaking a line where it might otherwise do so<eos/>
This may be at a space, as between the <quophrase>Mr.</quophrase> and
<quophrase>Jones</quophrase> in
       <quophrase>Mr.<nbs/>Jones</quophrase>,        <cs0/>
or within a word<pdash/>especially when the word is a
symbol like
       <emph>itemnum</emph>
that makes little sense when hyphenated across
lines<eos/>
<parb>
Footnotes<footnote>This is an example of a footnote.</footnote>
pose no problem<eos/>
<parb>
<latex/><spc/>is good at typesetting mathematical formulas
like
       <math> x<hyp/>3y <plu/> z <eqs/> 7 </math>
or
       <math> a<sub>1</sub> <gtc/> x<sup>2n</sup> <plu/> y<sup>2n</sup> <gtc/> x' </math>
or
<nul/>
       <math> (A, B) <eqs/> <sum><sub>i</sub> a<sub>i</sub> b<sub>i</sub> </sum></math><eos/>
The spaces you type in a formula are
ignored<eos/>  Remember that a letter like
       <tmath>x</tmath>                   <cs0/>
is a formula when it denotes a mathematical
symbol, and it should be typed as one<eos/>

<section>Displayed Text</section>
<parb>
Text is displayed by indenting it from the left
margin<eos/>  Quotations are commonly displayed<eos/>  There
are short quotations
<quote>
   This is a short a quotation<eos/>  It consists of a
   single paragraph of text<eos/>  See how it is formatted<eos/>
</quote>
and longer ones<eos/>
<quotation>
   This is a longer quotation<eos/>  It consists of two
   paragraphs of text, neither of which are
   particularly interesting<eos/>
<parb>
   This is the second paragraph of the quotation<eos/>  It
   is just as dull as the first paragraph<eos/>
</quotation>
Another frequently<hyp/>displayed structure is a list<eos/>
The following is an example of an <emph>itemized</emph>
list<eos/>
<itemize>
   <item> This is the first item of an itemized list<eos/>
         Each item in the list is marked with a <quophrase>tick</quophrase><eos/>
         You don't have to worry about what kind of tick
         mark is used<eos/>

   <item> This is the second item of the list<eos/>  It
         contains another list nested inside it<eos/>  The inner
         list is an <emph>enumerated</emph> list<eos/>
         <enumerate>
            <item> This is the first item of an enumerated
                  list that is nested within the itemized list<eos/>

            <item> This is the second item of the inner list<eos/>
                  <latex/><spc/>allows you to nest lists deeper than
                  you really should<eos/>
         </enumerate>
         This is the rest of the second item of the outer
         list<eos/>  It is no more interesting than any other
         part of the item<eos/>
   <item> This is the third item of the list<eos/>
</itemize>
You can even display poetry<eos/>
<verse>
   There is an environment
    for verse <brk0>              <cs0/>
   Whose features some poets <cs0/>
   will curse<eos/>

<cw0/>
<parb>
   For instead of making<brk0>
   Them do <emph>all</emph> line breaking, <brk0>
   It allows them to put too many words on a line when they'd rather be
   forced to be terse<eos/>
</verse>
<parb>
Mathematical formulas may also be displayed<eos/>  A
displayed formula
is
one<hyp/>line long; multiline
formulas require special formatting instructions<eos/>
   <displaymath>  (<Gamma>, <psi>') <eqs/> x<rdq/> <plu/> y<sup>2</sup> <plu/> z<sub>i</sub><sup>n</sup></displaymath>
Don't start a paragraph with a displayed equation,
nor make one a paragraph by itself<eos/>

</body>               <cs0/>
</article><!-- GELLMU version 0.7.4.2 (05-Jan-2006) -->
