\addtolength{\textwidth}{-1in}
\addtolength{\headwidth}{-1in}
\else
+ \IfFileExists{natbib.sty}{
+ \usepackage{natbib}
+ \citeindextrue
+ \bibpunct{[}{]}{,}{n}{}{,}%{
+ \bibliographystyle{plainnat}}
+ {\bibliographystyle{plain}}
+ \IfFileExists{url.sty}{\usepackage{url}}{}
\usepackage[compat]{mlastyle}
- \bibliographystyle{plain}
%\addtolength{\headsep}{-5pt}
%\addtolength{\headheight}{-12pt}
%\addtolength{\topmargin}{-17pt}
{\newcommand{\examp}[2][]{{\let\emph\uline\fontfamily{ptm}\selectfont##2}##1}}%
{\newcommand{\examp}[2][]{``##2##1''}}
+{\makeatletter\gdef\NAT@MLA#1{#1}\gdef\NAT@idxtxt
+{\expandafter\NAT@MLA\NAT@name\ \NAT@open\NAT@num\NAT@close}}
\EnableCrossrefs
\CodelineIndex
\RecordChanges
% \DoNotIndex{\addtolength}
% \DoNotIndex{\advance}
% \DoNotIndex{\baselineskip}
+% \DoNotIndex{\bibpreamble,\bibpunct,\bibsep}
% \DoNotIndex{\begin}
% \DoNotIndex{\bfseries}
% \DoNotIndex{\c@enumiv}
% \DoNotIndex{\listparindent}
% \DoNotIndex{\makeenmark}
% \DoNotIndex{\mbox}
+% \DoNotIndex{\ml@}
% \DoNotIndex{\mlastyle@bibstylefalse}
% \DoNotIndex{\mlastyle@bibstyletrue}
% \DoNotIndex{\mlastyle@cite}
% \DoNotIndex{\sloppy}
% \DoNotIndex{\space}
% \DoNotIndex{\string}
-% \DoNotIndex{\sw@llow}
% \DoNotIndex{\the}
% \DoNotIndex{\thebibliography}
% \DoNotIndex{\thepage}
% Define the surname, along with an obsolete synonym.
% \begin{macrocode}
\def\surname#1{\gdef\mlastyle@surname{#1}}
-\def\mlastyle@surname{\def\sw@llow##1 {}\expandafter\sw@llow\@author}
+\def\mlastyle@surname{\def\ml@##1 ##2,##3@@{##2}%
+ \expandafter\ml@\@author, ,@@}
\let\lastname\surname
% \end{macrocode}
% \end{macro}
% \subsection{Formatting}
% Formatting is done if the \Lopt{mla} or \Lopt{format} option is set.
+% \begin{macrocode}
+\ifmlastyle@format
+% \end{macrocode}
% \begin{macro}{\mlastyle@i}
+% This is the standard MLA format indent.
% \begin{macrocode}
\newdimen\mlastyle@i \mlastyle@i=.5in
% \end{macrocode}
% \end{macro}
-% \begin{macrocode}
-\ifmlastyle@format
-% \end{macrocode}
% \subsubsection{Macros}
% \begin{macro}{\maketitle}
% |\maketitle| generates a heading in MLA format.
% The definition of |\thebibliography| varies depending on the document
% class.
% \begin{macrocode}
+\ifx\@undefined\url
+ \def\url#1{{\catcode`/=13\let/=\mlastyle@slash#1}}
+\fi
\ifx\@undefined\citet
\@ifundefined{chapter}
% \end{macrocode}
\itemindent-\leftmargin
\def\newblock{}
\usecounter{enumiv}
- %\catcode`/=13\global\let/=\mlastyle@slash
\sloppy%\sfcode`\.=\@m
}}
% \end{macrocode}
\itemindent-\leftmargin
\def\newblock{}
\usecounter{enumiv}
- %\catcode`/=13\let/=\mlastyle@slash
\sloppy%\sfcode`\.=\@m
}}
% \end{macrocode}
\fi % \ifmlastyle@format
% \end{macrocode}
% \subsection{Style}
+% \begin{macro}{\bibstyle@mlastyle}
% This first block is the beginnings of an implementation for
% \package{natbib}.
% \begin{macrocode}
-\newcommand{\bibstyle@mlastyle}{\bibpunct[ ]{(}{)}{;}{a}{,}{;}
+\newcommand{\bibstyle@mlastyle}%
+{\bibpunct[ ]{(}{)}{;}{a}{\mlastyle@comma}{,}
+\gdef\mlastyle@comma{\ifx\NAT@date\space\def\NAT@date{\unskip}\else,\fi}
\@ifundefined{chapter}
{\gdef\refname{Works Cited}}
{\gdef\bibname{Works Cited}}}
% \end{macrocode}
+%\end{macro}
% \begin{macro}{\cite}
% \begin{macro}{\citealt}
% ^^A\begin{macro}{\citepage}
{\renewcommand\bibname{Works Cited}}
\else
\let\cite\citep
- \newcommand\citepage[2][]{\citetext{#2}}
+ \newcommand\citepage[2][]{\citeyearpar[\unskip #1]{#2}}
\newcommand\citepageM[2][]{ \citetext{#2}}
\newcommand\citeindirect[2][]{\citep[#1][qtd. in]{#2}}
\newcommand\citeindirectM[2][]{ \citep[#1][qtd. in]{#2}}
% set.
% \begin{macrocode}
\else
- \newcommand{\mlastyle@cite}[2][]{\@tempswafalse\@citex[]{#2}}
+ \ifx\@undefined\citet
+ \newcommand{\mlastyle@cite}[2][]{\@tempswafalse\@citex[]{#2}}
+ \newcommand{\citeC}[2][]{~\@tempswafalse\@citex[]{#2}}
+ \else
+ \newcommand{\mlastyle@cite}[2][]{\citep[]{#2}}
+ \def\citeC{ \citep}
+ \fi
\let\cite\mlastyle@cite
\let\citepage\mlastyle@cite
\let\citeindirect\mlastyle@cite
- \newcommand{\citeC}[2][]{~\@tempswafalse\@citex[]{#2}}
\let\citeM\mlastyle@relax
\let\citepageM\mlastyle@relax
\let\citeindirectM\mlastyle@relax