%
% \GetFileInfo{mlastyle.sty}
%
-% \DoNotIndex{\ }
-% \DoNotIndex{\.}
+% \DoNotIndex{\ ,\:,\/}
% \DoNotIndex{\@afterindentfalse,\@afterindenttrue}
% \DoNotIndex{\@arabic}
% \DoNotIndex{\@author}
% \DoNotIndex{\@auxout}
-% \DoNotIndex{\@citea,\@citeb}
+% \DoNotIndex{\@biblabel,\@citea,\@citeb,\@citex}
% \DoNotIndex{\@date}
% \DoNotIndex{\@empty}
% \DoNotIndex{\@for}
% \DoNotIndex{\@ifnextchar,\@ifstar,\@ifundefined}
% \DoNotIndex{\@latex@warning}
% \DoNotIndex{\@listI}
-% \DoNotIndex{\@listi}
-% \DoNotIndex{\@listii}
-% \DoNotIndex{\@listiii}
-% \DoNotIndex{\@listiv}
-% \DoNotIndex{\@listv}
-% \DoNotIndex{\@listvi}
+% \DoNotIndex{\@listi,\@listii,\@listiii}
+% \DoNotIndex{\@listiv,\@listv,\@listvi}
% \DoNotIndex{\@m}
+% \DoNotIndex{\@noitemerr}
% \DoNotIndex{\@startsection}
% \DoNotIndex{\@tempswafalse}
% \DoNotIndex{\@title}
% \DoNotIndex{\ExecuteOptions}
% \DoNotIndex{\G@refundefinedtrue}
% \DoNotIndex{\NAT@@citetp,\NAT@citetp,\NAT@ctype,\NAT@date,\NAT@sep}
+% \DoNotIndex{\ifNAT@par,\ifNAT@swa}
% \DoNotIndex{\ProcessOptions}
% \DoNotIndex{\RequirePackage}
% \DoNotIndex{\UL@start,\UL@stop}
+% \DoNotIndex{\url@samestyle,\urlstyle,\UrlBigBreaks,\UrlBreakPenalty}
+% \DoNotIndex{\do@url@hyp}
% \DoNotIndex{\addtolength}
% \DoNotIndex{\advance}
% \DoNotIndex{\baselineskip}
% \DoNotIndex{\headrulewidth}
% \DoNotIndex{\if@filesw}
% \DoNotIndex{\if@tempswa}
-% \DoNotIndex{\ifcase}
+% \DoNotIndex{\ifcase,\ifhmode,\ifnum}
% \DoNotIndex{\ifmlastyle@bibstyle}
% \DoNotIndex{\ifmlastyle@format}
% \DoNotIndex{\ifmlastyle@pages}
% \DoNotIndex{\linespread}
% \DoNotIndex{\list}
% \DoNotIndex{\listparindent}
+% \DoNotIndex{\mathchardef}
% \DoNotIndex{\makeenmark}
% \DoNotIndex{\mbox}
% \DoNotIndex{\ml@}
% \DoNotIndex{\mlastyle@formattrue}
% \DoNotIndex{\mlastyle@instructor}
% \DoNotIndex{\mlastyle@intbib}
+% \DoNotIndex{\mlastyle@intnfs}
% \DoNotIndex{\mlastyle@pagesfalse}
% \DoNotIndex{\mlastyle@pagestrue}
% \DoNotIndex{\mlastyle@papersizefalse}
% \DoNotIndex{\mlastyle@slash}
% \DoNotIndex{\mlastyle@slashnext}
% \DoNotIndex{\mlastyle@slashx}
+% \DoNotIndex{\mlastyle@star}
% \DoNotIndex{\mlastyle@stylefalse}
% \DoNotIndex{\mlastyle@styletrue}
% \DoNotIndex{\mlastyle@surname}
% \DoNotIndex{\mlastyle@timestrue}
% \DoNotIndex{\mlastyle@underlinefalse}
% \DoNotIndex{\mlastyle@underlinetrue}
+% \DoNotIndex{\mlastyle@urldate}
% \DoNotIndex{\month}
% \DoNotIndex{\newblock}
% \DoNotIndex{\newcommand}
% \DoNotIndex{\usecounter}
% \DoNotIndex{\unskip}
% \DoNotIndex{\vskip}
+% \DoNotIndex{\xdef}
% \DoNotIndex{\write}
% \DoNotIndex{\year}
% \DoNotIndex{\z@}
\let\lastname\surname
% \end{macrocode}
% \end{macro}
-
+% \begin{macro}{\urldate}
+% \begin{macro}{\theurldate}
+% These next two respectively set and get the default access date for URLs
+% in the works cited.
+% \begin{macrocode}
+\def\urldate#1{\gdef\mlastyle@urldate{#1}}
+\def\theurldate{\mlastyle@urldate}
+\let\mlastyle@urldate\@date
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
% \subsection{Style}
% \begin{macro}{\bibstyle@mlastyle}
% This first block is the beginnings of an implementation for
% \package{natbib}. (Surely there is a better way to do this.)
% \begin{macrocode}
\newcommand{\bibstyle@mlastyle}{%
- \bibpunct[\mlastyle@space]{\mlastyle@brack(}{\mlastyle@brack)}%
- {\unskip;}{a}{\mlastyle@comma}{,}
+ \bibpunct[ ]{(}{)}{;}{a}{,}{,}
+ %\bibpunct[\mlastyle@space]{\mlastyle@brack(}{\mlastyle@brack)}%
+ % {\unskip;}{a}{\mlastyle@comma}{,}
\gdef\mlastyle@brack##1{\ifx\NAT@date\mlastyle@notitle
\ifmlastyle@pages ##1\else\ifNAT@swa\ifnum
\NAT@ctype=0 ##1\else\unskip\fi\else\unskip\fi\fi\else ##1\fi}
% \end{macro}
% \end{macro}
% \subsection{Formatting}
-% Formatting is done if the \Lopt{mla} or \Lopt{format} option is set.
+% \begin{macro}{\urlstyle@mlastyle}
+% This first bit is always done, even if formatting is disabled.
% \begin{macrocode}
-\ifmlastyle@format
+\RequirePackage{url}
+\def\url@mlastyle{\url@samestyle
+ \mathchardef\UrlBreakPenalty 0
+ \relpenalty\UrlBreakPenalty
+ \def\UrlBigBreaks{\do\/\do@url@hyp}
+}
% \end{macrocode}
+% \end{macro}
% \begin{macro}{\mlastyle@i}
% This is the standard MLA format indent.
% \begin{macrocode}
\newdimen\mlastyle@i \mlastyle@i=.5in
% \end{macrocode}
% \end{macro}
+% Everything else is done only if the \Lopt{mla} or \Lopt{format} option
+% is set.
+% \begin{macrocode}
+\ifmlastyle@format
+% \end{macrocode}
% \subsubsection{Macros}
% \begin{macro}{\maketitle}
% \begin{macro}{\and}
% No penalty for |\slash|.
% ^^A\let\mlastyle@sl@sh=/
% \begin{macrocode}
- \def\slash{/\penalty\z@}
+ \edef\slash{/\penalty\z@}
% \end{macrocode}
% ^^A \def\mlastyle@slash{/\futurelet\mlastyle@slashnext\mlastyle@slashx}
% ^^A \def\mlastyle@slashx{\ifx\mlastyle@slashnext/\else
% Only one space after colons, unless someone else has already tinkered
% with its space factor.
% \begin{macrocode}
-\let\nonfrenchspacing\mlstyle@intnfs
-\def\nonfrenchspacing{\mlastyle@intnfs
- \ifnum\the\sfcode`\:=2000\sfcode`\:=1999\fi}
+ \let\mlastyle@intnfs\nonfrenchspacing
+ \def\nonfrenchspacing{\mlastyle@intnfs
+ \ifnum\the\sfcode`\:=2000\sfcode`\:=1999\fi}
\ifnum\the\sfcode`\:=2000\sfcode`\:=1999\fi
% \end{macrocode}
% \end{macro}
\def\footnotesize{\normalsize}
% \end{macrocode}
% ^^A\let\footnoterule\relax
+% \begin{macro}{\enoteformat}
+% \begin{macro}{\enoteheading}
+% \begin{macro}{\enotesize}
% Endnotes are supported, but only if the \package{endnotes} package is
% loaded {\em before\/} this package.
% \begin{macrocode}
\def\enotesize{\normalsize}
\fi
% \end{macrocode}
+% \end{macro}
+% \end{macro}
+% \end{macro}
% \subsubsection{Bibliography}
-% \textsc{To Do}: Switch to the \package{url} package.
+% \begin{macro}{\url@mlastyle}
+% |\url| is needed to format urls in the bibliography.
% \begin{macrocode}
-\ifx\@undefined\url{
- \catcode`/=13
- \gdef\url{\bgroup\catcode`/=13
- \let/\slash\mlastyle@url}
- \gdef\mlastyle@url#1{#1\egroup}
-}\fi
+\urlstyle{mla}
% \end{macrocode}
+% \end{macro}
+% ^^A\ifx\@undefined\url{
+% ^^A \catcode`/=13
+% ^^A \gdef\url{\bgroup\catcode`/=13
+% ^^A \let/\slash\mlastyle@url}
+% ^^A \gdef\mlastyle@url#1{#1\egroup}}
+% ^^A}\fi
% \begin{environment}{thebibliography}
% The definition of |thebibliography| varies depending on the document
% class.