## Front matter

The title should be set in 17 point (this can be achieved by using \LARGE in the 11pt style) and in bold. The document number should be inserted in the \author field. Document numbers are obtained either from the Editor of your Working Group or from the EAGLES Secretariat: they should not be invented arbitrarily as we use a classification system.

The date should appear in the \date field. All material will be centred automatically if the \maketitle command is used, as in this document. See the titlepage of the present document for an example. Sometimes you may have to intervene to indicate a better line break in a title, by inserting where you want a break.

The table of contents is automatically constructed, in the correct sizes and with the correct layout, by the command \tableofcontents. The same is the case for the list of figures: \listoffigures and the list of tables \listoftables

Do not attempt to number sections, this is done automatically, through use of the sectioning commands. The table of contents and list of figures are numbered in roman numerals.

The file initial.tex contains various LaTeX settings and declarations that are common to all EAGLES documents. You should include this file right at the beginning of your document, before any other material, via the command: \input{initial} (NB: no .tex).

The following shows the contents of initial.tex. The % character is a comment character.

%% initial.tex -- EAGLES document header material
%% revised by JMcN 12/8/1997

%% Use of LaTeX 2e required

%%\documentclass[11pt]{article}		% for standalone article style

\documentclass[11pt]{report}

\usepackage{html}	   %% required for latex2html commands

\usepackage{makeidx}	   %% required for indexing

\usepackage{harvard}	   %% required bibliography package
\usepackage{graphics}
\usepackage{verbatim}

\citationstyle{dcu}	   %% required citation style

%%\makeindex     % activate when want to create *new* index

\usepackage{calc}		%% needed to calculate page dimensions
\usepackage{times}		%% required font
\usepackage{psfig}		%% for inclusion of EPS files
\usepackage{lingmacros}		%% for linguistic structures
\usepackage{tree-dvips}		%% for linguistic structures
\usepackage{avm}		%% for linguistic structures
\begin{htmlonly}
\usepackage{heqn}		%% for example numbering
\end{htmlonly}

%% new paragraph and subparagraph commands
%% allow text to start on following line

\makeatletter
\renewcommand{\paragraph}{\@startsection
{paragraph}%
{4}%
{\z@}
{-3.25ex plus -1ex minus -.2ex}%
{1.5ex plus 2ex}%
{\normalsize\bf}}

\renewcommand{\subparagraph}{\@startsection
{subparagraph}%
{4}%
{\z@}
{-3.25ex plus -1ex minus -.2ex}%
{1.5ex plus 2ex}%
{\normalsize\bf}}
\makeatother

%% Activate the following commands if you wish to
%% to accommodate long section numbers in
%% large reports (e.g. 19.11.10)

%%\makeatletter
%%\renewcommand{\l@subsection}{\@dottedtocline{2}{1.5em}{3em}}
%%\renewcommand{\l@subsubsection}{\@dottedtocline{3}{4.5em}{3.9em}}
%%\renewcommand{\l@paragraph}{\@dottedtocline{4}{8.4em}{3.7em}}
%%\renewcommand{\l@subparagraph}{\@dottedtocline{5}{12.1em}{3.7em}}
%%\makeatother

% dimensions for A4 page (210 x 297mm) (set in 11pt)
% note: \topmargin is measured from a position 1in from top of page,
%       and \...sidemargin from 1in from side of page

\normalsize         % make sure use base point size as basis
% for calculations

% now calculate and set height of text body
\setlength{\textheight}%
{255mm-\topskip}              % change mm as appropriate
\newcounter{tempc}
\setcounter{tempc}{\textheight}
\newcounter{tempcc}
\setcounter{tempcc}{\baselineskip}
\setcounter{tempc}%
{\value{tempc}/\value{tempcc}}
\setlength{\textheight}%
{\baselineskip*\value{tempc}+\topskip}

% set width of text body
\setlength{\textwidth}{165mm}   % change mm as appropriate

% set side margins. Printer places output 1 inch in from left,

\setlength{\oddsidemargin}{0.25in} % 1.25in margin for binding
\setlength{\evensidemargin}{0.25in}% when using 2-sided output

% set head and footer stuff
\setlength{\footskip}{.5in}

% set top margin to start nearer top of page
\setlength{\topmargin}{-40pt}  % normally 27pt

\frenchspacing
\sloppy                        % don't be so fussy with line breaks

\pageheader{EAGLES}{\em Document Layout and Style Guide}{EAG--EB--LAY.3}
\pagefooter{{\em Internal use}}{\thepage}{August, 1997}
\pagefooterlinetrue

\setcounter{tocdepth}{5}
\setcounter{secnumdepth}{5}

%% deal with indenting for linguistically acceptable/unacceptable

%% calculate width of asterisk   (as in *sheeps)
\newlength{\astspace}
\settowidth{\astspace}{\mbox{*}}

%% linguistically ungrammatical/unwellformed
\newcommand{\un}{*}

%% linguistically acceptable
%% (indented by width of ungrammatical asterisk)
\newcommand{\ac}{\latex{\hspace*{\astspace}}\html{~~}}

%% 2 line gloss command

\newlength{\original}
\newlength{\gloss}
\newcommand{\ngloss}[2]{%
\settowidth{\original}{#1}%
\settowidth{\gloss}{#2}%
\ifdim\gloss>\original\settowidth{\original}{#2}\fi%
\parbox[t]{\original}{#1\\#2\vspace*{2pt}}%
}

\newcommand{\latexhtml}[2]{\latex{#1}\html{#2}}
\newcommand{\ednote}[1]{\par{\em Editors' note: #1}\par}

\newcommand{\EX}[1]
{\latex{\underline{{\em Examples\/}}}\html{{\em Examples\/}}:
\par\begin{flushleft}\begin{itemize}
{#1}%
\end{itemize}\end{flushleft}\par
}

\newcommand{\primed}[1]{\html{${#1}\/^{\prime}$}\latex{{\em #1}$'$}}

%%================ POS TAG ANNOTATION

%% Tag annotations -- use these for  POS tagged words

%% colour for pos tag in html -- IGNORE
\newcommand{\sans}[1]{\textcolor{red}{{#1}}}

\newcommand{\Tg}[2]{{\bfseries #1}\index{#1}/%
{\footnotesize\latex{\sffamily #2}\html{\sans{#2}}}}
%% USE: \Tg{maison}{pos=n \& gend=f}
%% automatically indexes the word being tagged. Word tagged is in bold.
%% This is the default tag mechanism.

\newcommand{\tag}[2]{%
{#1}/{\footnotesize\latex{\sffamily #2}\html{\sans{#2}}}}
%% USE: If {\em X} is autonomous and if a conceptual interpretation is
%% possible, then \tag{{\em X\/}}{pos=n}.
%%
%% i.e. where do not want bold tag (or indexing of wordform)

\newcommand{\bun}[1]{%
{\footnotesize\latex{\sffamily #1}\html{\sans{#1}}}}
%% USE: where want just to refer to feature bundle
%% e.g. The tag \bun{pos=noun} is used to indicate...

\newcommand{\T}[1]{{{\bfseries #1}\index{#1}}}
%% Just the wordform being discussed, no tag. Bold face and indexed.

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

\setlength{\parindent}{0mm}     % no indented paragraphs

%% END of initial.tex



The first lines of layout.tex, showing how to include initial.tex, construct the titlepage page and arrange for table of contents, etc., are given below. The environments latexonly and htmlonly are used to customise the document for LaTeX and HTML respectively.

% Recommended EAGLES document layout, with LaTeX hints

\input{initial}   % ALWAYS include to set up page dimensions, etc

\def\avmtreeparms{\avmvskip{.1ex}\avmhskip{.5em}%
\avmbskip{-.2em}\daughterskip=4ex\sisterskip=3em}

\newcommand{\ind}[1]{\mbox{${\setlength{\fboxsep}{0.35mm}% \fbox{{\scriptsize #1}}}$}}

\newcommand{\earg}[1]{\underline{\mbox{{\rm #1}}}}

\begin{document}	% start of your main text

%% set up EAGLES colours for HTML -- DO NOT TOUCH
\begin{htmlonly}
\definecolor{eaglesblue}{rgb}{.4,.8,1}
\definecolor{eaglescat}{rgb}{.8,0,0}  %% CC 00 00 204 00 00
\end{htmlonly}

\begin{latexonly}

% CONSTRUCT TITLE FIRST: give components, then compose them
% via \maketitle

\title{\centerline{\psfig{figure=logo-let.eps,width=155mm}}
\vspace*{2ex}
\LARGE \bf EAGLES\\ DOCUMENT LAYOUT\\ AND\\ STYLE GUIDE}

% Use \\ to generate a newline
% to get convenient centring of title elements.

\author{EAG--EB--LAY.3}

% EAGLES document number goes in author field

\date{Version of 12th Aug, 1997}

\thispagestyle{empty}
\maketitle           % command to correctly construct title
\thispagestyle{empty}

\end{latexonly}

\begin{htmlonly}

\begin{rawhtml}

<TITLE>EAGLES Document Layout and Style Guide</TITLE>

<CENTER>
<IMG ALT="EAGLES logo"
SRC="http://www.ilc.cnr.it/EAGLES96/seagles.gif">
<P>
<H1>EAGLES<br>Document Layout<br>and<br>Style Guide</H1>

<H2>EAG--EB--LAY.3</H2>

<H3>Version of 31st Aug, 1996</H3>

</CENTER>
\end{rawhtml}

\tableofcontents
\listoftables
\listoffigures
\end{htmlonly}

\begin{latexonly}
\pagenumbering{roman}
\parskip = \bigskipamount       % lots of nice space
\newpage

\pagefooter{{\em Internal use}}{\thepage}{August, 1997}

\tableofcontents
\listoftables			% if appropriate
\listoffigures
\newpage
\pagenumbering{arabic}

\setcounter{page}{1}

\pageheader{EAGLES}{\em Document Layout and Style Guide}{EAG--EB--LAY.3}
\pagefooter{{\em Internal use}}{\thepage}{August, 1997}

\end{latexonly}



Note that, in order to generate appropriate cross-references, a table of contents and a list of figures, you must run LaTeX twice over your file, as it needs two passes to gather the relevant information.