% \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}
% 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}}}
{\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}}