% NELS 2003 LaTeX class % For the Proceedings of the North Eastern Linguistics Society Based % on the 2003 style sheet instructions. Written by Uli Sauerland. A % few parts were taken from Alexis Dimitriadis's salt.cls. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % REQUIREMENTS: % % TO USE THIS CLASS YOU MUST HAVE THE MEMOIR CLASS, AND THE NATBIB % PACKAGE INSTALLED. BOTH ARE AVAILABLE FROM CTAN (memoir.cls AND % natbib.sty). % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % USAGE: % % Use this file INSTEAD of the `memoir' class: % \documentclass{nels} % % This class definition does not provide an example environment. % It does call natbib. % % TITLE BLOCK DIRECTIONS: % % To format your title and name, use the standard commands \title{...}, % \author{...}, the non-standard \affiliation{...}, and \maketitle. % % Use the standard command \thanks{...} if you want to provide an % acknowledgement footnote in the title. % Most NELS proceedings papers use 14pt leading, which seems to be the % default of Microsoft Word with Times Roman. To my eyes, Latex's % 14.5pt leading is more readable, so I left this unchanged. % PAGE HEADERS: Author's name(s) and the title are automatically put % in the headers. However, if the authors' names or the title are % longer than 50 characters, you should enter a shorter version below, % and uncomment the line. % % \markboth{SHORT NAMES}{SHORT TITLE} % PAGE NUMBERS AND REFERENCE: NELS proceedings papers have a small % reference on the title page. Usually the editors add this and the % page numbers themselves. But, for electronic distribution, I at % least want to put this in. Therefore, I add reference and page % number by default. In the preamble, you must set the starting page % number with the following command. % % \setcounter{page}{xxx} % % For the submitted version, my experience has been in the past that % the editors were happy to have me put in the page numbers. % They did add the reference on their own though. Here are preamble % commands to get rid of the page numbers and the reference or just % the reference: % - Neither page numbers nor the reference % \nopagenumbers % - Page numbers, but no reference % \makeoddfoot{title}{}{}{} % % (End of the usage directions) \NeedsTeXFormat{LaTeX2e} \ProvidesClass{nels}[2003/12/23 NELS Proceedings Style] \DeclareOption*{\PassOptionsToClass{\CurrentOption}{memoir}} \newcommand{\@sizeoption@err}{\ClassError{nels} {Cannot use size option \CurrentOption} {The NELS style requires (and automatically loads) 12pt text}} \DeclareOption{10pt}{\@sizeoption@err} \DeclareOption{11pt}{\@sizeoption@err} \ProcessOptions \LoadClass[12pt,twoside]{memoir} % 1. FONT \RequirePackage{textcomp} \RequirePackage{mathptmx} \RequirePackage[mtbold]{mathtime} \RequirePackage[scaled=0.92]{helvet} \def\familydefault{ptm} % 2. PAGE LAYOUT \settrimmedsize{11in}{8.5in}{*} \settypeblocksize{8.5in}{6in}{*} \setlrmargins{1.5in}{*}{*} \setulmargins{1.5in}{*}{*} \setheadfoot{\onelineskip}{\onelineskip} \setheaderspaces{.75in}{*}{*} \checkandfixthelayout % 3. SECTIONS % % I allow a little flexibility with before and after section spacing, % to achieve flush page bottoms. Uncommenting the two lines below % achieve exactly one lineskip (=14.5pt). % \setsecnumdepth{subsection} \def\thesection{\arabic{section}} \renewcommand{\chapter}{\ClassError{nels} {Cannot use the chapter-command} {The NELS style allows only section headings}} \skip0 = 0pt plus 2pt minus 2pt \advance\skip0 by \onelineskip \setbeforesecskip{-\skip0} % \setbeforesecskip{-\onelineskip} % uncomment for strict adherence \setbeforesubsecskip{-\skip0} % \setbeforesubsecskip{-\onelineskip} % uncomment for strict adherence \setsecindent{0in} \setsubsecindent{0in} \setsecheadstyle{\normalfont\bfseries\raggedright} \setsubsecheadstyle{\normalfont\itshape\raggedright} \setaftersecskip{\onelineskip} \setaftersubsecskip{\onelineskip} \setsecnumformat{\hbox to .5in {\csname the#1\endcsname\hfil}} % 4. PAGE STYLE \copypagestyle{nels}{myheadings} \makeoddhead{nels}{}{\textit{\rightmark}}{\thepage} \makeevenhead{nels}{\thepage}{\leftmark}{} \pagestyle{nels} \def\nopagenumbers{\makeoddhead{nels}{}{\textit{\rightmark}}{} \makeevenhead{nels}{}{\leftmark}{} \makeoddfoot{title}{}{}{}} % 5. HEADER TEXT \AtBeginDocument{{\def\thanks#1{}\markboth{\@author}{\@title}}\reference {\copyright\ 2004 by \@author\\ Keir Moulton and Matthew Wolf (eds.), NELS 34: \thepage--\arabic{lastpage}}} % 6. TITLE \droptitle=7\onelineskip% seven empty lines before the title \pretitle{\centering\normalsize\normalfont\bfseries} \posttitle{\par\vspace{2\onelineskip}}% two empty lines after title \preauthor{\centering\normalsize\normalfont} \postauthor{\par\vspace{\onelineskip}}% one empty line after authors \predate{\centering\normalsize\normalfont} \postdate{\par\vspace{4\onelineskip}}% four empty lines after affiliation % the following suppresses paragraph indentation and pre-section % vertical space after the title \def\maketitlehookd{\@afterindenttrue\@afterheading} \def\affiliation#1{\gdef\@date{#1}} \copypagestyle{title}{empty} \makeoddfoot{title}{\flushleft\tiny{\@reference}}{}{} \makeevenfoot{title}{\flushleft\tiny{\@reference}}{}{} \def\reference#1{\gdef\@reference{#1}} % 7. TEXT \parindent=0.5in \parskip=0pt plus 1pt % 8. EXAMPLES % % Use your own example macros: Each example style must have its margins % adjusted in a different way. % % ``Example numbers should be at the left hand margin, not indented. Examples % should start at the 0.5 inch position, i.e. in line with your indented % paragraphs. In the case of several examples given under the same example % number, we suggest indenting to 0.5 inches, giving the subexample letter % (usually a., b., c., etc.), then indenting another 0.25 inches'' % 9. BIBLIOGRAPHY % The following relies on the natbib-package. You still need to % declare a bibliography style, e.g. \bibliographystyle{linquiry2.bst}. \usepackage[sectionbib]{natbib} \bibhang=.5in \renewenvironment{thebibliography}[1]{% \setbeforesecskip{2\onelineskip} \setsecheadstyle{\normalfont\bfseries\centering} \section*{References}% \parindent \z@\bibpreamble\bibfont\list {\@biblabel{\arabic{NAT@ctr}}}{\@bibsetup{#1}% \setcounter{NAT@ctr}{0}}% \ifNAT@openbib \renewcommand\newblock{\par} \else \renewcommand\newblock{\hskip .11em \@plus.33em \@minus.07em}% \fi \sloppy\clubpenalty4000\widowpenalty4000 \sfcode`\.=1000\relax \let\citeN\cite \let\shortcite\cite \let\citeasnoun\cite \tightlist%no space between the bibliography items }{\def\@noitemerr{% \PackageWarning{natbib} {Empty `thebibliography' environment}}% \endlist\vskip-\lastskip} \bibpunct{(}{)}{,}{a}{}{,}