\documentclass[14pt,a4paper,article,oldfontcommands,draft]{memoir}
\usepackage{LIP}

\usepackage{linguex}

\usepackage{colortbl}


\usepackage{xyling}

\title{Linguistics in Potsdam (LiP):\\
Style Guideline for \LaTeX, version 0.1\thanks{Here comes the Acknowledgement.
  Many thanks to AA, BB, CC, DD, EE, FF, and GG for their valuable comments
  and discussion {\dots} and so on.}}
\author{Ralf Vogel \nextauthor Shinichiro Ishihara}
\institution{Universität Potsdam}

\LIPyear{2004}
\LIPno{00}
\LIPtitle{Some papers on some topics}
\LIPeds{Fischer, S., van de Vijver, R., Vogel, R. (eds.)}
\markboth{Author's name}{(Short) paper title}
\setcounter{page}{5}

\begin{document}
\maketitle

\begin{abstract}
  Here comes the Abstract (100--150 words). This document is created using all
  the preset styles required for the volumes. Please use this document as a
  template.
\end{abstract}
\keywords{AAA, BBB, CCC, DDD, EEE}




\chapter{Introduction}

This document describes the \LaTeX\ style requirements for the manuscripts
submitted to \textit{Linguistics in Potsdam} (LiP). All manuscripts must be
submitted as a MicrosoftWord file (.doc) or as a \LaTeX\ file (.tex).  Please
use the WinWord/\ \LaTeX\ template file (available at
http://www.ling.uni-potsdam.de/lip) to comply all the requirements. The
template file contains all the preset styles necessary for the manu\-script,
and all the settings are correctly set. If one cannot submit a manuscript with
either of these formats, please contact to the volume editor(s).

The \LaTeX\ style file that defines all necessary formatting settings is\linebreak
\texttt{LIP.sty}. The style is based on the \texttt{memoir} class which is a
very powerful and sophisticated solution for our needs. You can get \texttt{memoir}
from \linebreak \texttt{http://www.dante.de}. 

The information you MUST provide in the preamble of your \texttt{.tex} file is
as follows:\newpage

\small
\begin{verbatim}
% Load the memoir class, default font size, paper, 
% article option, usage of old font commands \em, \it etc.
\documentclass[14pt,a4paper,article,oldfontcommands]{memoir}
% load the LIP macros
\usepackage{LIP}

% title of the paper, including acknowledgements
\title{- text - \thanks{- text -}}
% your name
\author{- text -}
% your affiliation
\institution{- text -}

% for two (or more) authors with the same affiliation:
% \author{- text - \nextauthor - text -}
% \institution{- text -}
% for two (or more) authors with different affiliation:
%\author{- author1 - \\ - affiliation1 - \nextauthor 
% - author2 - \\ - affiliation2 -}

% this is for the footer of the first page, can be left out:
\LIPyear{0000}
\LIPno{00}
\LIPtitle{ - text - }
% the number of the starting page:
\setcounter{page}{1}

% the text of the headers: left=author, right=title
\markboth{Author's name}{(Short) paper title}

\begin{document}\maketitle
\begin{abstract}
  - text -
\end{abstract}
\keywords{ - text - }
\end{verbatim}
\normalsize
After this, the real article starts. 

\chapter{Page Setup} 

Document size is A4 (Do not use Letter size!). Submitted manuscripts are
reduced about 30\% when they are printed, in order to fit to A5 size.


\chapter{Paragraph Setting and preset styles}

\section{Document Setup}

All necessary settings are already done in \texttt{LIP.sty}.


\chapter{Main Text/Footnotes}

Font is Times New Roman, 14pt and 1.5 line-spaced. As mentioned 
above, manuscripts are reduced to A5 size.

The first paragraph after section headings starts without an 
indentation, as in the paragraph above. From the second paragraph 
and thereafter (like this one and the following one), we have indentation.

Footnotes are 12pt and single-spaced. The formatting is already done in
\texttt{LIP.sty}.\footnote{An example of footnote. With Word,
you insert one tab at the beginning of each footnote to align the  
left side of the footnote text. With \LaTeX, everything is done for you, just
say ``\texttt{$\backslash$footnote\{- text -\}}'', as usually.}




\chapter{Section Headings}

Note one difference between the 
\texttt{memoir.cls} and the \texttt{article.cls}: In memoir the highest
sectioning level is \texttt{chapter}, even with the \texttt{article} 
option. The three sectioning levels you should maximally use are then\linebreak
\texttt{$\backslash$chapter}, \texttt{$\backslash$section}, and 
\texttt{$\backslash$subsection}:

\begin{tabular}[t]{ll} \toprule
command & level\\\midrule
$\backslash$chapter: & 1 \\
$\backslash$section: & 1.1 \\
$\backslash$subsection: & 1.1.1 \\\bottomrule
\end{tabular}\bigskip

You can use \texttt{$\backslash$subsubsection} and
\texttt{$\backslash$paragraph}, but they will not 
be numbered. Their effect is equivalent to \texttt{$\backslash$section*}. 


\section{Example of subsection (aka ``$\backslash$\texttt{section}'')}

\subsection{Example of sub-subsection (aka ``$\backslash$\texttt{subsection}'')}

\section{Examples}


Example sentences may be typeset with any package that is on the market, but
please include them when you submit a paper. The following is typeset with
Wolfgang Sternefeld's \texttt{linguex}, using \texttt{cgloss4e}. You get it
all in a file called \texttt{linguex.zip} at \texttt{ftp.dante.de}:

\exg. *Taro-ga   Hanako-ni   ringo-o    age-ta\\
  Taro-\textsc{nom} Hanako-\textsc{dat}  apple-\textsc{acc} give-\textsc{pst}\\ 
  `Taro gave an apple to Hanako.'

This is the code:

{\small
\begin{verbatim}
\exg. *Taro-ga   Hanako-ni   ringo-o    age-ta\\
       Taro-\textsc{nom} Hanako-\textsc{dat} apple-\textsc{acc} 
       give-\textsc{pst}  \\ 
       `Taro gave an apple to Hanako.'
\end{verbatim}
}\normalsize

\textbf{Note:} If you use this package or other ones that use the old font
commands \texttt{$\backslash$rm, $\backslash$sf}, etc., you have to tell the
memoir class explicitly to parse these commands with the option
\texttt{oldfontcommands}.

Secondly, the definition of the example counter \texttt{ExNo} in
\texttt{linguex} is such that it is set to zero with each new chapter. This has
the effect that in using the memoir class the examples in each section start
with 1, and referring back to example 1 becomes ambiguous. Therefore, you have
to redefine the counter in \texttt{linguex.sty}, line 27ff, this is a quote from
\texttt{linguex.sty}:

\small
\begin{verbatim}
%%%%%%%%%%%%%%% COUNTERS FOR LABELLING %%%%%%%%%%%%%%%%%%%%%%%%
% commented out to not let memoir set ExNo to zero with 
% each chapter
%
%\@ifundefined{chapter}{\newcounter{ExNo}}%
%{\newcounter{ExNo}[chapter]}
%%%%% HERE COMES THE CHANGE!!! 
% replaced by simply:
\newcounter{ExNo}

\end{verbatim}
\normalsize 


For examples with sublabels (a, b,\dots ), it's again quite simple: 
 
\ex.  
\ag.  Taro-ga   Hanako-ni   ringo-o    age-ta\\
      Taro-\textsc{nom} Hanako-\textsc{dat}  apple-\textsc{acc} give-\textsc{pst}\\
      `Taro gave an apple to Hanako.'
\bg.  **Taro-ga   Hanako-ni   ringo-o    tabe-ta\\
      Taro-\textsc{nom} Hanako-\textsc{dat}  ringo-\textsc{acc} eat-\textsc{pst}\\
      `Taro ate an apple to Hanako.'

\small
\begin{verbatim}
\ex.  
\ag.  Taro-ga   Hanako-ni   ringo-o    age-ta\\
      Taro-\textsc{nom} Hanako-\textsc{dat}  apple-\textsc{acc} 
      give-\textsc{pst}\\
      `Taro gave an apple to Hanako.'
\bg.  **Taro-ga   Hanako-ni   ringo-o    tabe-ta\\
      Taro-\textsc{nom} Hanako-\textsc{dat}  ringo-\textsc{acc} 
      eat-\textsc{pst}\\
      `Taro ate an apple to Hanako.'

\end{verbatim}


\normalsize

\chapter{Trees}  

The same conditions apply. Use one of the packages on the market and submit it
with your paper. Ralf Vogel's \texttt{xyling} is used here:

\small
\ex.
\Tree{ & \VP \\ \Vzero && \NP}

\normalsize
This is the code:

\small
\begin{verbatim}
\ex. 
\Tree{ & \VP \\ \Vzero && \NP}
\end{verbatim}
\normalsize

\noindent
The package can be obtained from Ralf:\\
\texttt{http://www.ling.uni-potsdam.de/people/vogel}

\raggedbottom
\pagebreak\chapter{Tableaux}

\newfont{\optifont}{pzdr.afm at 15pt}
\newcommand{\finger}{\raisebox{-2pt}{\optifont +}}
\newcommand{\gray}[1]{\multicolumn{1}{|>{\columncolor[gray]{.8}}c}{#1}}
\ex. Tableaux Example:\\
\begin{tabular}[t]{c@{\,}c@{~}c|c|c|c}\toprule
        &  &/root/       & Constraint 1 & Constraint 2 & Constraint 3 \\
\midrule
\finger &a.& Candidate 1 &              &              &  $*$         \\
        &b.& Candidate 2 &              &     $*$!     &  \gray{}     \\
        &c.& Candidate 3 &     $*$!     &  \gray{}     &  \gray{$*$}  \\
\bottomrule
\end{tabular} 


We do not require any specific format for the tableaux. In the 
example above, the following code is used:

\small
\begin{verbatim}
\newfont{\optifont}{pzdr.afm at 15pt}
\newcommand{\finger}{\raisebox{-2pt}{\optifont +}}
\newcommand{\gray}[1]{\multicolumn{1}%
{|>{\columncolor[gray]{.8}}c|}{#1}}
\ex. Tableaux Example:\\
\begin{tabular}[t]{c@{\,}c@{~}c|c|c|c}\toprule
        &  &/root/ & Constraint 1& Constraint 2& Constraint 3\\
\midrule
\finger &a.& Candidate 1 &       &             &  $*$        \\
        &b.& Candidate 2 &       &     $*$!    & \gray{}     \\
        &c.& Candidate 3 & $*$!  &  \gray{}    & \gray{$*$}  \\
\bottomrule
\end{tabular}  
\end{verbatim} 
\normalsize  

Note the definition of the pointing finger: the finger symbol from the\linebreak
\texttt{dingbats} font is used here. This font is standard in all \LaTeX\
packages, so there is a high chance that it will be recognised, when your file
is processed. The grey shading of tableau cells is done with the package
\texttt{colortbl}. Include it by stating
``\texttt{$\backslash$usepackage\{colortbl\}}'' in the preamble. The macro
``\texttt{$\backslash$gray}'' grey shades the cell it is called within. It has
one obligatory argument, the content of the cell. In case of empty grey shaded
cells, use ``\texttt{$\backslash$gray\{\}}''



\chapter{Graphics, Tables, etc.}


Make sure that the inserted graphics and tables are large 
enough so that they are easily readable after the manuscript 
is reduced to A5 paper size.




\section{Miscellaneous}

We leave up to authors for the styles of reference, but please 
make sure they are correct and consistent. Use `en-dashes' (--) 
between numbers such as page numbers in the reference (e.g., 
p. 100--102), example numbers (e.g., (10)--(12)), instead of normal 
hyphens. Use `em-dashes' (---) without spaces---like this---to set 
off the text. You can use either single or double space after 
period, but please do so consistently. Follow traditional publishers' 
guidelines for punctuation and other stylistic conventions, e.g., 
quotations. Usage of BibTeX is very welcome.




\section{Contact Info}

At the end of the paper, write down author's contact information 
(Name, address, e-mail address, website). Use the predefined \texttt{contact}
environment with doublebackslashes as line separators. 

Here comes the code:

\small
\begin{verbatim}
\begin{contact}
  Dr. Ralf Vogel\\
  Universit\"{a}t Potsdam\\
  Institut für Linguistik\\
  Postfach 601553\\
  14415 Potsdam\\
  Germany\\
  rvogel@ling.uni-potsdam.de\\
  http://www.ling.uni-potsdam.de/people/vogel
\end{contact}
\end{verbatim}
\normalsize

This is the result:

\begin{contact}
  Ralf Vogel\\
  Universit\"{a}t Potsdam\\
  Institut für Linguistik\\
  Postfach 601553\\
  14415 Potsdam\\
  Germany\\
  rvogel@ling.uni-potsdam.de\\
  http://www.ling.uni-potsdam.de/people/vogel
\end{contact}

%\label{lastpage}
\end{document}

