% This is UCLAWPL.STY, a LaTeX style for preparing documents for % (based on apparently a long line of hacked documents, % most directly from a certain biometrika.sty which I cribbed from % http://www.maths.lancs.ac.uk/~smithdm1/latex/ % Before that, it appears to have been the ASTRON.STY file, to be % used with the bib file ASTRON.BST, an adaptation of APALIKE.BST % by Oren Patashnik and Suzan King. % this was turned into UCLAWPL.STY by Adam Albright % any questions or problems should be directed to: aalbrigh@ucla.edu % we DON'T want things hanging off the edge: \setlength\overfullrule{0pt} % first, we will be using Times for the font: \renewcommand{\sfdefault}{phv} \renewcommand{\rmdefault}{ptm} \renewcommand{\ttdefault}{pcr} % and in 12 point: \renewcommand\@ptsize{2} %\renewcommand{\footnotesize}{\fontsize\@xpt{12}\selectfont}% % annoyingly, the lines are slightly too close together in word % so we need to squish things a little \def\baselinestretch{.915} % according to the specifications, the top header will come 1.6 % inches down on the page, so this means that \topmargin is .6" \topmargin 0.0in % the header will be 12pt, I will annoyingly express this in % the (approx) inch size, because we need the text to start % right at 2" and I don't know how to guarantee this otherwise \headheight 0.166in \headsep 0.234in \topskip 0.0in % both top & bottom margins are 1", leaving 9in for text \textheight 9.0in \oddsidemargin 0in \evensidemargin 0in \textwidth 6.5in % and things this narrow have problems with justification: \tolerance 9999 \pagestyle{fancy} % paragraphs indented 0.125 inch, 12pt between paragraphs \parindent 0.125in \parskip 12pt % here's the stuff to make the title: \renewcommand\maketitle{\par \begingroup \renewcommand\thefootnote{\@fnsymbol\c@footnote}% \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}% \long\def\@makefntext##1{\parindent 1em\noindent % \hb@xt@1.8em{% \hb@xt@0.0625in{% % the smaller indent for footnotes \hss\@textsuperscript{\normalfont\@thefnmark}}##1}% \if@twocolumn \ifnum \col@number=\@ne \@maketitle \else \twocolumn[\@maketitle]% \fi \else \newpage \global\@topnum\z@ % Prevents figures from going at top of page. \@maketitle \fi \thispagestyle{fancy}\@thanks \endgroup \setcounter{footnote}{0}% \global\let\thanks\relax \global\let\maketitle\relax \global\let\@maketitle\relax \global\let\@thanks\@empty \global\let\@author\@empty \global\let\@date\@empty \global\let\@title\@empty \global\let\title\relax \global\let\author\relax \global\let\date\relax \global\let\and\relax } \def\@maketitle{% \newpage \null % \vskip 2em% \begin{center}% % \let \footnote \thanks {\large \textsc{\@title} }%\par}% \vskip 10pt% { % \lineskip .5em% \begin{tabular}[t]{c}% \@author \end{tabular} } % \par}% % \vskip 1em% \end{center}% % \par % \vskip 1.5em} } % and for the abstract: \renewenvironment{abstract}{% \footnotesize % \begin{center}% % {\vspace{\z@}}% % \end{center}% \quotation } {\if@twocolumn\else\endquotation\fi} % for tables and figures, captions need to be 8pt: \long\def\@makecaption#1#2{% \vskip\abovecaptionskip \sbox\@tempboxa{{\footnotesize #1: #2}}% \ifdim \wd\@tempboxa >\hsize {\footnotesize #1: #2}%\par \else \global \@minipagefalse \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}% \fi \vskip\belowcaptionskip} % and separated from other things by 8pt: \setlength\abovecaptionskip{8pt} \setlength\belowcaptionskip{8pt} % footnotes have a smallish indent %\setlength{\footnotemargin}{0.0625in} % bibliography stuff \@ifundefined{chapter}{\def\thebibliography#1{\section*{References\@mkboth {REFERENCES}{REFERENCES}}\list {\relax}{\setlength{\labelsep}{0em} \setlength{\itemindent}{-\bibhang} \setlength{\itemsep}{0pt} \setlength{\parsep}{0pt} \setlength{\leftmargin}{\bibhang}} \def\newblock{\hskip .11em plus .33em minus .07em} \sloppy\clubpenalty4000\widowpenalty4000 \sfcode`\.=1000\relax}}% {\def\thebibliography#1{\chapter*{Bibliography\@mkboth {BIBLIOGRAPHY}{BIBLIOGRAPHY}}\list {\relax}{\setlength{\labelsep}{0em} \setlength{\itemindent}{-\bibhang} \setlength{\itemsep}{0pt} \setlength{\parsep}{0pt} \setlength{\leftmargin}{\bibhang}} \def\newblock{\hskip .11em plus .33em minus .07em} \sloppy\clubpenalty4000\widowpenalty4000 \sfcode`\.=1000\relax}} % the indent size for the bibliography: \setlength{\bibhang}{.25in} %\setlength{\bibhang}{1.4em} % for examples, we need to redefine some sizes % (***NOTE: this was designed to be used with gb4e's example style!!!***) % GACK!!! for some reason these aren't working, it's considering + and % - as text, not operators... giving up for now! \setlength\rightmargin{0pt} %\setlength{\labelsep}{.25in minus \labelwidth} %\setlength{\leftmargin}{\labelwidth plus \labelsep plus .25in} \setlength\leftmargin{\labelwidth} \addtolength\leftmargin{\labelsep} \addtolength\leftmargin{.25in} % here's the stuff to take care of section & subsection headings \@addtoreset{equation}{section} \def\@seccntformat#1{\@ifundefined{#1@cntformat}% {\csname the#1\endcsname.\quad}% default {\csname #1@cntformat\endcsname}% individual control } \def\section@cntformat{\thesection.\quad} \def\subsection@cntformat{\textit{\thesection.}\quad} \def\thesubsection {\thesection$.$\arabic{subsection}} \def\section{ \makeatletter \renewcommand{\@seccntformat}[1]{\csname the##1\endcsname.\hspace{0.5em}} \makeatother \@startsection {section}{1}{\z@}{-3.5ex plus -1ex minus -.2ex}{2.3ex plus .2ex}{\normalsize\sc\center}} \def\subsection{ \makeatletter \renewcommand{\@seccntformat}[1]{\textit{\csname the##1\endcsname}.\hspace{0.5em}} \makeatother \@startsection{subsection}{2}{\z@}{-3.25ex plus -1ex minus -.2ex}{1.5ex plus .2ex}{\normalsize\it\center}} \def\subsubsection{\@startsection{subsubsection}{3}{\z@}{-3.25ex plus -1ex minus -.2ex}{1.5ex plus .2ex}{\normalsize\it\center}} \def\paragraph{\@startsection {paragraph}{4}{\z@}{3.25ex plus 1ex minus .2ex}{-1em}{\normalsize\bf}} \def\subparagraph{\@startsection {subparagraph}{4}{\parindent}{3.25ex plus 1ex minus .2ex}{-1em}{\normalsize\bf}} % and the appendix headings \renewcommand\appendix{\par \renewcommand\thesection{Appendix \@Alph\c@section} \def\section{ %\makeatletter %\renewcommand{\@seccntformat}[1]{\csname the##1\endcsname.\hspace{0.5em}} %\makeatother \@startsection{section}{2}{\z@}{-3.25ex plus -1ex minus -.2ex}{1.5ex plus .2ex}{\normalsize\it\center}} } % and a way to end the appendix and go back to normal: \newcommand\startthereferences{ \renewcommand\thesection{@section} \def\section{ \@startsection {section}{1}{\z@}{-3.5ex plus -1ex minus -.2ex}{2.3ex plus .2ex}{\normalsize\sc\center}}}