%\documentstyle[twoside,palatino,psgreek,cl]{article}
%%% For previewing nonfinal versions, or processing without Postscript
%%% fonts, use the following:
\documentstyle[twoside,cl]{article}

%%%---------------------------------------------------------------------
%%%                      Paper-Specific Setup

\issue{16}{1}{1994}

\title{The CL.STY Style File}

\author{ Stuart M. Shieber%
         \thanks{Division of Applied Sciences, 
                 Cambridge, MA 02138}
       & Julia Hirschberg%
         \thanks{600 Mountain Avenue, 
                 Murray Hill, NJ 07974} \\
         \affil{Harvard University} 
       & \affil{AT\&T Bell Laboratories}}

\runningtitle{The CL.STY Style File}
\runningauthor{Shieber and Hirschberg}

%%%---------------------------------------------------------------------
%%%                         Special Macros

\input{psfig}
\newcommand{\clsty}{{\tt cl.sty}}

%%%------------------------------------------------------------------------

\begin{document}

\maketitle

\begin{abstract}
This sample paper explains and exemplifies how to use the {\em
Computational Linguistics} \LaTeX\ article style, called ``\clsty''.
Most {\clsty} commands are the same as with other \LaTeX\ style files
(e.g., {\tt article.sty}).  However, there are several new environments
and some special instructions are given.
\end{abstract}

\section*{Introduction}  

This sample paper explains and exemplifies how to use the {\em
Computational Linguistics} \LaTeX\ article style, called ``\clsty''.
Most {\clsty} commands are the same as with other \LaTeX\ style files
(e.g., {\tt article.sty}).  However, there are several new
environments and some special instructions are given.

\section{Basics}

\subsection{Invoking the CL style}

The file \clsty\ is intended to be invoked as a documentstyle
option for the document style {\tt article}.  In addition, the {\tt
twoside} document style option should also be used, to generate
separate even- and odd-side pages.  Your \LaTeX\ file should thus
begin with
%
\begin{verbatim}
    \documentstyle[twoside,cl]{article}
\end{verbatim}
%
Papers published in {\em Computational Linguistics} are set in Palatino
font.  If you have this Postscript font, you can use it by adding the
{\tt palatino} and {\tt psgreek} style options:
%
\begin{verbatim}
    \documentstyle[twoside,palatino,psgreek,cl]{article}
\end{verbatim}
%
For information about obtaining the requisite style files, see
Section~\ref{sec:sources}.

\subsection{Paper-specific information}

Certain information specific to the paper, like the title and author,
is specified with special commands in the preamble.  The \verb.\title.
command is used to specify the title, e.g.,

\begin{verbatim}
    \title{The CL.STY Style File}
\end{verbatim}

Author information is specified with the \verb.\author.  macro, whose
argument is like the argument to a {\tt tabular} environment.  A
second line is added for the affiliation, and the \verb.\affil. macro
is used to typeset this information appropriately.  Finally, the
\verb.thanks. macro is used to provide additional address information
for each author.

\begin{verbatim}
    \author{ Stuart M. Shieber%
             \thanks{Division of Applied Sciences, 
                     Cambridge, MA 02138}
           & Julia Hirschberg%
             \thanks{600 Mountain Avenue, 
                     Murray Hill, NJ 07974} \\
             \affil{Harvard University} 
           & \affil{AT\&T Bell Laboratories}}
\end{verbatim}

Information about the issue in which the paper is to appear is
declared with the \verb.\issue. command, which specifies the volume,
number, and year of the issue.

\begin{verbatim}
    \issue{16}{1}{1994}
\end{verbatim}

Finally, information to be used in the running heads is provided with
the \verb.\running.\-\verb.title. and \verb.\running.\-\verb.author.  commands.

\begin{verbatim}
    \runningtitle{The CL.STY Style File}
    \runningauthor{Shieber and Hirschberg}
\end{verbatim}

A footer on the first page can contain copyright information or other
publication information.  For publication in {\em Computational
Linguistics}, the footer defaults to an appropriate copyright notice,
as seen on the first page.  This footer can be overridden by
redefining the macro \verb.\footmark. in the preamble, e.g.,
%
\begin{verbatim}
    \renewcommand{\footmark}{\copyright\ 1894 Association for
                             Computational Phrenology}
\end{verbatim}

(The \verb.\footmark. and \verb.\issue. commands are primarily
intended for use by the publishers, though you will want to specify a
\verb.\issue. command with some dummy information as a placeholder.)

After all of these preliminaries are set up, you can start the body of
the document as follows:

\begin{verbatim}
    \begin{document}
    \maketitle
\end{verbatim}

\subsection{Abstracts}

The ``abstract'' environment is used for the abstract.  For the
abstract above, for instance, we specified the following:

\begin{verbatim}
    \begin{abstract}
    This sample paper ...
    \end{abstract}
\end{verbatim}

\subsection{Sections and subsections}

The sectioning commands are as follows:

\begin{verbatim}
    \section{Primary Section}
    \subsection{Secondary section}
    \subsubsection{Tertiary section}
    \paragraph{Quaternary section}
\end{verbatim}

Section~\ref{sec:example} shows the generated output for these
commands.  Unnumbered sections (typically for an introduction, as
above), are generated with the \verb.\section*. command.

Note the capitalization conventions used in these headings.  Only
primary sections have each word capitalized.

\subsection{End matter}

After the body of the paper, the acknowledgments and references are
placed.  First, a \verb.\starttwocolumn. command is used to start
two-column layout.  Then the {\tt ack\-now\-ledg\-ments} environment can be
used to provide acknowledgments if any.

The references, inside the {\tt thebibliography} environment, are set
in paragraph form with a small hanging indent.  To even off the two
columns on the last page, you might add a \verb.\newpage. to force
material to the next column.

The citation commands available in \clsty\ are designed to work with
the {\tt fullname} {Bib\TeX} bibliography style, which is highly
recommended for use with \clsty.  For further information on this
style and the citation macros, see the documentation in {\tt
fullname-doc.tex}.

\section{Primary Section} \label{sec:example}

This section and its various subsections are provided merely to
provide an example of the section headings at different levels of
embedding.

\subsection{Secondary section}

This section and its various subsections are provided merely to
provide an example of the section headings at different levels of
embedding.

\subsubsection{Tertiary section}

This section and its various subsections are provided merely to
provide an example of the section headings at different levels of
embedding.

\paragraph{Quaternary section}

This paragraph is provided merely to provide an example of the section
headings at different levels of embedding.

\section{Special Environments}

The {\clsty} style file defines several new environments. This section
describes them briefly.

\subsection{Figures and tables}

Figures and tables are placed with the standard \LaTeX{} {\tt figure}
and {\tt table} environments, as exemplified by
Figure~\ref{fig:example} and Table~\ref{tab:example}.  Captions,
however, appear a bit nonstandard, as seen in Figure~\ref{fig:example}
above.  Figure captions use the \verb.\caption. command whereas tables
use the
\verb.\tcaption. command.

\begin{figure}
\mbox{\psfig{figure=veritas.eps,height=1in}}
\caption{The Harvard University shield.\captionpar This shield is included
because it is completely irrelevant to the topic at hand.  Note that
the multi-sentence explanatory portion of the caption is given as a
separate paragraph from the initial noun-phrase portion.  This is
achieved by inserting a {\tt $\backslash$captionpar} command between
the parts.}
\label{fig:example}
\end{figure}

\begin{table}
\tcaption{Some important tabular information.}
\label{tab:example}
\begin{tabular*}{32pc}{c@{\extracolsep{\fill}}ccccc}
1.1001 & 2.2220 & 3.0303 & 1.1001 & 2.2220 & 3.0303\\
\hline
Simple & Complex & Difficult & Simple & Complex & Difficult\\
NATA & NATB & NATC & NATA & NATB & NATC\\
dd.f & --- & dd.c & dd.f & --- & dd.c\\
\hline
\end{tabular*}
\end{table}

\subsubsection{Incorporating Postscript figures}

To incorporate Postscript figures, you should use the {\tt psfig}
macros, as was done in this example file.  The Postscript file {\tt
veritas.eps} was loaded in Figure~\ref{fig:example} as follows:
%
\begin{verbatim}
    \begin{figure}
    \mbox{\psfig{figure=veritas.eps,height=1in}}
    \caption{The Harvard University shield...}
    \label{fig:example}
    \end{figure}
\end{verbatim}
%
The {\tt psfig} macros have provision for scaling and rotating figures
in various ways.  Please see the {\tt psfig} documentation for further
information.

\subsection{Itemized lists}

Itemized lists are specified in the normal way, with the {\tt itemize}
environment.  They appear with bullet symbols rather than numbers.
Here is an example.

\begin{verbatim}
    \begin{itemize}
      \item The first item of the list.
      \item Long items get wrapped and indented appropriately.  The
            appearance of such a long item is exemplified here.  Note
            the attractive layout.
      \begin{itemize}
        \item Items can have subitems.
        \item Perhaps even more than one.
      \end{itemize}
    \end{itemize}
\end{verbatim}
%
\begin{itemize}
\item The first item of the list.
\item Long items get wrapped and indented appropriately.  The
appearance of such a long item is exemplified here.  Note the
attractive layout.
\begin{itemize}
\item Items can have subitems.
\item Perhaps even more than one.
\end{itemize}
\end{itemize}

Numbered lists are specified with the {\tt enumerate} environment.
Substituting ``{\tt enumerate}'' for ``{\tt itemize}'' in the above
example leads to the following list:
%
\begin{enumerate}
\item The first item of the list.
\item Long items get wrapped and indented appropriately.  The
appearance of such a long item is exemplified here.  Note the
attractive layout.
\begin{enumerate}
\item Items can have subitems.
\item Perhaps even more than one.
\end{enumerate}
\end{enumerate}
%
Similarly, lists with no numbers or bullets can be generated with the
{\tt outline} environment.
%
\begin{outline}
\item The first item of the list.
\item Long items get wrapped and indented appropriately.  The
appearance of such a long item is exemplified here.  Note the
attractive layout.
\begin{outline}
\item Items can have subitems.
\item Perhaps even more than one.
\end{outline}
\end{outline}


\subsection{Theorems and theorem-like environments}

Several theorem-like environments are allowed.  Some are given numbers
when typeset, e.g., examples, rules, and theorems.  Others are
unnumbered, e.g., definitions, proofs, and unnumbered theorems.  Here
are some examples, each followed by a template showing how the
environment is specified.
%
\begin{definition}
A {\it context-free grammar} is a quadruple $G = \langle V, \Sigma, P,
S \rangle$ where 
\begin{itemize}
\item $V$ is the vertical rise of the staircase,
\item $\Sigma$ is the number of bartenders that it takes to screw in a
light bulb,
\item $P$ is the ratio of $V$ to $\Sigma$, and 
\item $S$ is your eldest brother's hair color.
\end{itemize}
\end{definition}
%
\begin{verbatim}
    \begin{definition}
       ...
    \end{definition}
\end{verbatim}

\begin{example}
The following grammar is the smallest one specifiable without using
the letter `b': $\langle 12', 5, 2.4, \mbox{\it brown} \rangle$
\end{example}

\begin{verbatim}
    \begin{example}
       ...
    \end{example}
\end{verbatim}

\begin{arule}
Neither a borrower nor a lender be, unless your name is Morgan, in
which case, lender is highly recommended.
\end{arule}

\begin{verbatim}
    \begin{arule}
       ...
    \end{arule}
\end{verbatim}

\begin{theorem}
The ratio of the circumference to the diameter is constant.
\end{theorem}

\begin{verbatim}
    \begin{theorem}
       ...
    \end{theorem}
\end{verbatim}

\begin{proof}
If it weren't, I'd be likely to know about it, now wouldn't I.  That
{\em proves} it.  Hah.  I run rings around you logically.
\end{proof}

\begin{verbatim}
    \begin{proof}
       ...
    \end{proof}
\end{verbatim}

\begin{numtheorem}
The ratio of the circumference to the diameter is even bigger than it
was last time I specified a theorem.
\end{numtheorem}

\begin{verbatim}
    \begin{numtheorem}
       ...
    \end{numtheorem}
\end{verbatim}


\subsection{Some more environments}

Extracts and quotations should use the {\tt ext} environment,
rather than the {\tt quote} environment.  This is specified by

\begin{verbatim}
    \begin{ext}
       ...
    \end{ext}
\end{verbatim}

\begin{ext}
I come now to a preliminary consideration of the question: `what is a
word?' But what I have to say now will be supplemented by a detailed
discussion at later stages.

Words, from the earliest times of which we have historical records,
have been objects of superstitious awe.
\cite[page 21]{russell-inquiry}
\end{ext}

\noindent For reference --- but don't try this at home --- had this
been typeset with the {\tt quote} environment, it would have appeared
instead as
%
\begin{quote}
I come now to a preliminary consideration of the question: `what is a
word?' But what I have to say now will be supplemented by a detailed
discussion at later stages.

Words, from the earliest times of which we have historical records,
have been objects of superstitious awe.
\cite[page 21]{russell-inquiry}
\end{quote}

Several other environments are defined that may be useful in special
circumstances.  These include:
%
\begin{itemize}
\item {\tt wf:}         The word formula environment.
\item {\tt dialog:}     The dialog environment.
\item {\tt code:}       The code environment.  (Use of the {\tt
verbatim} environment is typically better for code, however.)
\end{itemize}
%
These environments are primarily for use by the publisher; you will
probably not need them.  However, you can experiment with them to
determine if they provide a useful format for your purposes.

\section{Obtaining Style Files}
\label{sec:sources}

The sources for \clsty\ and for this documentation are available
electronically, as are several style files discussed above for use in
preparing papers for {\em Computational Linguistics}:
%
\begin{itemize}
\item {\clsty}: The \LaTeX\ style for {\em Computational
Linguistics} articles.
\item {\tt cl-doc.tex}: Documentation on the \clsty\ \LaTeX\
style, which you are reading now.
\item {\tt palatino.sty, psgreek.sty}: Style files that cause
Postscript Palatino fonts to be used, as is standard for {\em
Computational Linguistics} articles.
\item {\tt psfig.tex}: A set of macros that allow Postscript figures
to be imported into \LaTeX\ documents.
\item {\tt fullname.bst}:  A Bib\TeX\ style file that is the standard
for {\em Computational Linguistics}.
\item {\tt fullname-doc.tex, fullname-doc.bib}:  Documentation on the
{\tt fullname} Bib\TeX\ style.
\end{itemize}
%
These are available by the following methods
%
\begin{itemize}
\item Anonymous ftp from the Association for Computational Linguistics
at ``{\tt ftp://ftp.cs.columbia.edu/acl-l/Styfiles/}'' and from the Computation
and Language E-Print Archive (cmp-lg) at ``{\tt
ftp://xxx.lanl.gov/cmp-lg/papers/macros/''}.
\item HTTP access from the the Computation and Language E-Print
Archive (cmp-lg) at ``{\tt
http://xxx.lanl.gov/ftp/cmp-lg/papers/macros/}''.
\end{itemize}

Please do not make changes to the style file. If you would like to
make changes to some section of the macros (for example, the macros
that define the theorems), copy them and put them into a new \TeX\
file named after yourself, e.g., {\tt smith.sty}.  Then read in your
new style file when {\TeX}ing your article:

\begin{verbatim}
    \documentstyle[twoside,palatino,psgreek,cl,smith]{article}
\end{verbatim}

\noindent Make sure you read your style file in after {\clsty}.

\section{Conclusion}

The {\clsty} style file is recommended for preparation of papers for
publication in {\em Computational Linguistics}.

\starttwocolumn
\begin{acknowledgments}
The authors wish to thank their mothers.  The second author would like
further to thank her cat Leo.
\end{acknowledgments} 

\nocite{*}

\bibliographystyle{fullname}
\bibliography{cl-doc}

\end{document}     
