1 % \iffalse meta-comment
3 % Copyright (C) 2003 by Tim Pope <latex@rebelongto.us>
4 % ----------------------------------------------------
6 % This file may be distributed and/or modified under the
7 % conditions of the LaTeX Project Public License, either version 1.2
8 % of this license or (at your option) any later version.
9 % The latest version of this license is in:
11 % http://www.latex-project.org/lppl.txt
13 % and version 1.2 or later is part of all distributions of LaTeX
14 % version 1999/12/01 or later.
19 %<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
20 %<package>\ProvidesPackage{mlastyle}
21 %<package> [2003/10/21 v1.0 .dtx mlastyle file]
24 \documentclass{ltxdoc}
25 \usepackage[compat]{mlastyle}
31 \DocInput{mlastyle.dtx}
39 % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
40 % Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
41 % Digits \0\1\2\3\4\5\6\7\8\9
42 % Exclamation \! Double quote \" Hash (number) \#
43 % Dollar \$ Percent \% Ampersand \&
44 % Acute accent \' Left paren \( Right paren \)
45 % Asterisk \* Plus \+ Comma \,
46 % Minus \- Point \. Solidus \/
47 % Colon \: Semicolon \; Less than \<
48 % Equals \= Greater than \> Question mark \?
49 % Commercial at \@ Left bracket \[ Backslash \\
50 % Right bracket \] Circumflex \^ Underscore \_
51 % Grave accent \` Left brace \{ Vertical bar \|
52 % Right brace \} Tilde \~}
55 % \changes{v1.0}{2003/09/25}{Initial version}
57 % \GetFileInfo{mlastyle.sty}
61 % \DoNotIndex{\@afterindentfalse}
62 % \DoNotIndex{\@afterindenttrue}
63 % \DoNotIndex{\@arabic}
64 % \DoNotIndex{\@author}
65 % \DoNotIndex{\@auxout}
66 % \DoNotIndex{\@citea}
67 % \DoNotIndex{\@citeb}
69 % \DoNotIndex{\@empty}
70 % \DoNotIndex{\@firstofone}
72 % \DoNotIndex{\@ifundefined}
73 % \DoNotIndex{\@latex@warning}
74 % \DoNotIndex{\@listI}
75 % \DoNotIndex{\@listi}
76 % \DoNotIndex{\@listii}
77 % \DoNotIndex{\@listiii}
78 % \DoNotIndex{\@listiv}
79 % \DoNotIndex{\@listv}
80 % \DoNotIndex{\@listvi}
81 % \DoNotIndex{\@startsection}
82 % \DoNotIndex{\@tempswafalse}
83 % \DoNotIndex{\@title}
84 % \DoNotIndex{\@undefined}
85 % \DoNotIndex{\DeclareOption}
86 % \DoNotIndex{\ExecuteOptions}
87 % \DoNotIndex{\G@refundefinedtrue}
88 % \DoNotIndex{\ProcessOptions}
89 % \DoNotIndex{\RequirePackage}
90 % \DoNotIndex{\addtolength}
91 % \DoNotIndex{\advance}
92 % \DoNotIndex{\baselineskip}
94 % \DoNotIndex{\bfseries}
95 % \DoNotIndex{\c@enumiv}
96 % \DoNotIndex{\catcode}
97 % \DoNotIndex{\centering}
98 % \DoNotIndex{\centerline}
99 % \DoNotIndex{\chapter}
100 % \DoNotIndex{\citation}
101 % \DoNotIndex{\clearpage}
102 % \DoNotIndex{\csname}
109 % \DoNotIndex{\endcsname}
110 % \DoNotIndex{\endlist}
111 % \DoNotIndex{\exhyphenpenalty}
112 % \DoNotIndex{\expandafter}
113 % \DoNotIndex{\f@baselineskip}
114 % \DoNotIndex{\fancyhf}
115 % \DoNotIndex{\fancypagestyle}
117 % \DoNotIndex{\futurelet}
119 % \DoNotIndex{\hangindent}
120 % \DoNotIndex{\headrulewidth}
121 % \DoNotIndex{\if@filesw}
122 % \DoNotIndex{\if@tempswa}
123 % \DoNotIndex{\ifcase}
124 % \DoNotIndex{\ifmlastyle@bibstyle}
125 % \DoNotIndex{\ifmlastyle@format}
126 % \DoNotIndex{\ifmlastyle@papersize}
127 % \DoNotIndex{\ifmlastyle@style}
128 % \DoNotIndex{\ifmlastyle@times}
129 % \DoNotIndex{\ifmlastyle@underline}
131 % \DoNotIndex{\immediate}
133 % \DoNotIndex{\itemindent}
134 % \DoNotIndex{\itemsep}
135 % \DoNotIndex{\labelsep}
136 % \DoNotIndex{\labelwidth}
137 % \DoNotIndex{\leavevmode}
138 % \DoNotIndex{\leftmargin}
139 % \DoNotIndex{\leftmargini,\leftmarginii,\leftmarginiii}
140 % \DoNotIndex{\leftmarginiv,\leftmarginv,\leftmarginvi}
142 % \DoNotIndex{\linespread}
144 % \DoNotIndex{\listparindent}
145 % \DoNotIndex{\makeenmark}
147 % \DoNotIndex{\mlastyle@bibstylefalse}
148 % \DoNotIndex{\mlastyle@bibstyletrue}
149 % \DoNotIndex{\mlastyle@cite}
150 % \DoNotIndex{\mlastyle@course}
151 % \DoNotIndex{\mlastyle@formatfalse}
152 % \DoNotIndex{\mlastyle@formattrue}
153 % \DoNotIndex{\mlastyle@instructor}
154 % \DoNotIndex{\mlastyle@intbib}
155 % \DoNotIndex{\mlastyle@papersizefalse}
156 % \DoNotIndex{\mlastyle@papersizetrue}
157 % \DoNotIndex{\mlastyle@qspread}
158 % \DoNotIndex{\mlastyle@sl@sh}
159 % \DoNotIndex{\mlastyle@slash}
160 % \DoNotIndex{\mlastyle@slashnext}
161 % \DoNotIndex{\mlastyle@slashx}
162 % \DoNotIndex{\mlastyle@stylefalse}
163 % \DoNotIndex{\mlastyle@styletrue}
164 % \DoNotIndex{\mlastyle@surname}
165 % \DoNotIndex{\mlastyle@timesfalse}
166 % \DoNotIndex{\mlastyle@timestrue}
167 % \DoNotIndex{\mlastyle@underlinefalse}
168 % \DoNotIndex{\mlastyle@underlinetrue}
169 % \DoNotIndex{\month}
170 % \DoNotIndex{\newblock}
171 % \DoNotIndex{\newcommand}
172 % \DoNotIndex{\newenvironment}
173 % \DoNotIndex{\newif}
174 % \DoNotIndex{\newpage}
175 % \DoNotIndex{\noindent}
176 % \DoNotIndex{\normalsize}
177 % \DoNotIndex{\notesname}
178 % \DoNotIndex{\number}
181 % \DoNotIndex{\pagestyle}
183 % \DoNotIndex{\parindent}
184 % \DoNotIndex{\parsep}
185 % \DoNotIndex{\penalty}
186 % \DoNotIndex{\relax}
187 % \DoNotIndex{\renewcommand}
188 % \DoNotIndex{\renewenvironment}
189 % \DoNotIndex{\reset@font}
190 % \DoNotIndex{\rhead}
191 % \DoNotIndex{\setlength}
192 % \DoNotIndex{\settowidth}
193 % \DoNotIndex{\sfcode}
195 % \DoNotIndex{\sloppy}
196 % \DoNotIndex{\space}
197 % \DoNotIndex{\string}
198 % \DoNotIndex{\sw@llow}
200 % \DoNotIndex{\thepage}
201 % \DoNotIndex{\topsep}
202 % \DoNotIndex{\usecounter}
203 % \DoNotIndex{\vskip}
204 % \DoNotIndex{\write}
207 % \DoNotIndex{\evensidemargin}
208 % \DoNotIndex{\headheight}
209 % \DoNotIndex{\headsep}
210 % \DoNotIndex{\hoffset}
211 % \DoNotIndex{\marginparwidth}
212 % \DoNotIndex{\oddsidemargin}
213 % \DoNotIndex{\raggedbottom}
214 % \DoNotIndex{\raggedright}
215 % \DoNotIndex{\textheight}
216 % \DoNotIndex{\textwidth}
217 % \DoNotIndex{\topmargin}
218 % \DoNotIndex{\voffset}
219 % \DoNotIndex{\paperheight}
220 % \DoNotIndex{\paperwidth}
221 % \DoNotIndex{\pdfpageheight}
222 % \DoNotIndex{\pdfpagewidth}
223 % \DoNotIndex{\special}
225 % \newcommand*{\Lopt}[1]{\textsf {#1}}
226 % \newcommand*{\file}[1]{\texttt {#1}}
227 % \newcommand*{\package}[1]{\textsf {#1}}
228 % \newcommand*{\Lcount}[1]{\textsl {\small#1}}
229 % \newcommand*{\pstyle}[1]{\textsl {#1}}
231 % \title{The \package{mlastyle} package\thanks{This document
232 % corresponds to \package{mlastyle}~\fileversion, dated \filedate.}}
233 % \author{Tim Pope \\ \texttt{latex@rebelongto.us}}
237 % \section{Introduction}
239 % MLA style is ugly. Nevertheless, it is often required, particularly in
244 % A sample document follows.
246 %\documentclass[12pt]{article}
247 %\usepackage{mlastyle}
250 %\instructor{Professor Smith}
251 %\course{English 101}
253 %\title{The Futility of Compulsory English Classes}
258 %\end{document}\end{verbatim}
259 % \subsection{Initiation Macros}
260 % \DescribeMacro{\maketitle}
261 % \DescribeMacro{\instructor}
262 % \DescribeMacro{\course}
263 % The mandatory heading\index{heading|usage} is generated with
264 % |\maketitle|. Use the standard macros |\author|, |\title|, and |\date|
265 % to specify the relevant information. To define the instructor and name
266 % of the course, use the aptly named |\instructor|\marg{instructor} and
267 % |\instructor|\marg{course} macros.
269 % \DescribeMacro{\surname}
270 % The last name for use in the header\index{header|usage} is derived from
271 % |\author|. If this does not produce the desired result, use
272 % |\surname|\marg{last name} to override it.
274 % \DescribeMacro{\date}
275 % \DescribeMacro{\today}
276 % MLA style recommends the DD~Mon.~YYYY format for specifying dates;
277 % |\today| has been conveniently redefined to this. However, other
278 % formats can be used as long as done so consistantly throughout the
279 % document. Also note that the date in the header should be the due date
280 % of the assignment, so be sure to explictly call |\date|\marg{due date}
281 % if you actually finish your assignments early.
283 % \subsection{Environments}
284 % \DescribeEnv{verse}
285 % \DescribeEnv{quote}
286 % \DescribeEnv{quotation}
287 % Three environments have been modified from standard \LaTeX to better
288 % suit MLA format. To typeset poetry\index{poetry|usage} and
289 % drama\index{drama|usage}, use the |verse| environment.
290 % Quotations\index{quotations|usage} of a single paragraph or less always
291 % use the |quote| environment. For longer passages, use the |quotation|
292 % environment if the beginning of the passage marks the beginning of a
293 % paragraph. Otherwise, use the |quote| environment.
295 % Be sure to follow MLA guidelines when using these environments. Short
296 % quotes should be enclosed in quotation marks and included directly in
299 % \subsection{Documentating Sources}
301 % Coupled with \BibTeX\index{BibTeX\actualchar\BibTeX|usage}
302 % \package{mlastyle} provides a experimental implementation of MLA
303 % documentation style. Put |\bibliographystyle{mlastyle}| in the document
304 % preamble to load the bibliography style.
306 % \StopEventually{\PrintChanges\PrintIndex}
308 % \section{Implementation}
312 % \subsection{Options}
314 % \begin{macro}{\ifmlastyle@*}
315 % \begin{macro}{\mlastyle@*true}
316 % \begin{macro}{\mlastyle@*false}
317 % Most options are implemented by modifying a |\newif| declared for this
320 \newif\ifmlastyle@bibstyle
321 \DeclareOption{bibstyle}{\mlastyle@bibstyletrue}
322 \DeclareOption{nobibstyle}{\mlastyle@bibstylefalse}
323 \newif\ifmlastyle@papersize
324 \DeclareOption{papersize}{\mlastyle@papersizetrue}
325 \DeclareOption{nopapersize}{\mlastyle@papersizefalse}
326 \newif\ifmlastyle@underline
327 \DeclareOption{underline}{\mlastyle@underlinetrue}
328 \DeclareOption{italics}{\mlastyle@underlinefalse}
329 \newif\ifmlastyle@times
330 \DeclareOption{times}{\mlastyle@timestrue}
331 \DeclareOption{cm}{\mlastyle@timesfalse}
332 \newif\ifmlastyle@style
333 \DeclareOption{compat}{\mlastyle@stylefalse
334 \mlastyle@formatfalse
335 \mlastyle@underlinefalse}
336 \DeclareOption{mla}{\mlastyle@styletrue
338 \mlastyle@underlinetrue}
339 \newif\ifmlastyle@format
340 \DeclareOption{format}{\mlastyle@stylefalse
342 \mlastyle@underlinetrue}
343 \DeclareOption{style}{\mlastyle@styletrue
344 \mlastyle@formatfalse
345 \mlastyle@underlinefalse}
346 \DeclareOption{singlespacequotes}{
347 \def\mlastyle@qspread{\linespread{1}\normalsize\vskip\baselineskip}}
348 \DeclareOption{doublespacequotes}{\let\mlastyle@qspread\relax}
349 \ExecuteOptions{nobibstyle,nopapersize,mla,cm,doublespacequotes}
355 % If the \Lopt{papersize} option is set, add the appropriate
356 % \textsc{PostScript} special, or adjust |\pdfpagewidth| and
357 % |\pdfpageheight| if pdf\LaTeX{} is in use.
359 \ifmlastyle@papersize
360 \ifx\@undefined\pdfpagewidth
361 \special{papersize=\the\paperwidth,\the\paperheight}
363 \setlength{\pdfpagewidth}{\paperwidth}
364 \setlength{\pdfpageheight}{\paperheight}
366 \fi % \ifmlastyle@papersize
368 % If the \Lopt{bibstyle} option is set, specify the bibliography style.
372 \bibliographystyle{mlastyle}
374 \bibliographystyle{plain}
376 \fi % \ifmlastyle@bibstyle
378 % Load the \package{ulem} package if the \Lopt{underline} option is set.
380 \ifmlastyle@underline
381 \RequirePackage{ulem}
382 \fi % \ifmlastyle@underline
384 % Load the \package{times} package if the \Lopt{times} option is set.
387 \RequirePackage{times}
388 \fi % \ifmlastyle@times
390 % \subsection{Macros}
391 % \begin{macro}{\instructor}
392 % Define the instructor, along with an obsolete synonym.
394 \def\instructor#1{\gdef\mlastyle@instructor{#1}}
395 \let\professor\instructor
398 % \begin{macro}{\course}
399 % Define the course, along with an obsolete synonym.
401 \def\course#1{\gdef\mlastyle@course{#1}}
402 \let\classname\course
405 % \begin{macro}{\surname}
406 % Define the surname, along with an obsolete synonym.
408 \def\surname#1{\gdef\mlastyle@surname{#1}}
409 \def\mlastyle@surname{\def\sw@llow##1 {}\expandafter\sw@llow\@author}
410 \let\lastname\surname
413 % \subsection{Formatting}
414 % Formatting is only done if the \Lopt{format} option is set. This is the
419 % \subsubsection{Macros}
420 % \begin{macro}{\maketitle}
421 % Redefined |\maketitle| generate a heading in MLA format.
423 \renewcommand{\maketitle}{\begin{flushleft}
425 \@ifundefined{mlastyle@instructor}{}{\mlastyle@instructor}\par
426 \@ifundefined{mlastyle@course}{}{\mlastyle@course}\par
427 \@date\end{flushleft}
428 \begin{center}\@title\end{center}\par
432 % \begin{macro}{\today}
433 % |\today| is redefined to DD~Mon.~YYYY format.
435 \def\today{\number\day~\ifcase\month\or
436 Jan.\or Feb.\or Mar.\or Apr.\or May\or June\or July\or
437 Aug.\or Sept.\or Oct.\or Nov.\or Dec.\fi\ \number\year}
440 % \begin{macro}{\slash}
441 % No penalty for |\slash|, and plain /'s permit line breaks if necessary.
443 \def\slash{/\penalty\z@}
444 %\let\mlastyle@sl@sh=/
445 \def\mlastyle@slash{/\futurelet\mlastyle@slashnext\mlastyle@slashx}
446 \def\mlastyle@slashx{\ifx\mlastyle@slashnext/\else
447 \penalty\exhyphenpenalty\fi}
450 % \begin{macro}{\section}
451 % \begin{macro}{\subsection}
452 % Sections are formatted by centering the section name and beginning a new
453 % page. Subsections simply center the section name.
455 \renewcommand{\section}{\clearpage\@startsection{section}{1}{\z@
456 }{0pt}{1sp}{\centering}}
457 \renewcommand{\subsection}{\@startsection{subsection}{2}{\z@
458 }{0pt}{1sp}{\centering}}
462 % \subsubsection{Environments}
463 % ^^A%\newenvironment{blocks}{\begin{quote} \linespread{1} \small \normalsize}{\end{quote} \linespread{2} \small \normalsize}
464 % ^^A%\newenvironment{blockm}{\begin{quotation} \linespread{1} \small \normalsize}{\end{quotation} \linespread{2} \small \normalsize}
465 % \begin{environment}{verse}
466 % Indented 1 inch, with an additional .25 inch hanging indent.
468 \renewenvironment{verse}{\list{}{\mlastyle@qspread
469 \advance\leftmargin.75in\itemindent-.25in
470 \listparindent\itemindent}\item\relax}{\endlist}
473 % \begin{environment}{quotation}
474 % Indented 1 inch, with a paragraph indent of an additional .25 inches.
476 \renewenvironment{quotation}{\list{}{\mlastyle@qspread
477 \advance\leftmargin.5in\itemindent.25in
478 \listparindent\itemindent}\item\relax}{\endlist}
481 % \begin{environment}{quote}
482 % Identical to the |quotation| environment, except the first paragraph is not
485 \renewenvironment{quote}{\list{}{\mlastyle@qspread
486 \advance\leftmargin.5in
487 \listparindent.25in}\item\relax}{\endlist}
490 % \begin{environment}{workscited}
491 % Works Cited environment, for compatibility with \package{mla-paper}.
493 \newenvironment{workscited}%
494 {\newpage{\centerline{Works Cited}}}{\newpage}
495 \newcommand{\bibent}{\noindent \hangindent .5in}
498 % \subsubsection{Margins}
499 % Top and bottom margins are 1 inch each. The header is flush with the
500 % right margin at .5 inches from the top of the page.
501 % ^^A%\settoheight{\headheight}{\llap{\parbox[b]{\textwidth}{\large\raggedleft Pope}}}
503 \addtolength{\voffset}{-0.5in}
504 \setlength{\textheight}{\paperheight}
505 \addtolength{\textheight}{-2in}
506 \setlength{\topmargin}{0in}
507 %\addtolength{\headheight}{-1pt}
508 %\setlength{\headheight}{1.4\headheight}% kludge
509 \setlength\headheight\f@baselineskip
510 \setlength{\headsep}{0.5in}
511 \addtolength{\headsep}{-\headheight}
512 \setlength{\footskip}{0.25in}
515 % Left and right margins in MLA format are each 1 inch wide.
517 \addtolength{\hoffset}{-0.5in}
518 \setlength{\textwidth}{\paperwidth}
519 \addtolength{\textwidth}{-2in}
520 \setlength{\oddsidemargin}{0.5in}
521 \setlength{\evensidemargin}{0.5in}
522 \setlength{\marginparwidth}{0.5in}
524 % \subsubsection{Paragraphs}
525 % Paragraphs should be left justified, with the first line indented .5
529 \setlength{\parindent}{.5in}
531 % MLA format specifies that all paragraphs should be indented, even those
532 % beginning a new section. This snippet from \package{indentfirst} changes
533 % \LaTeX{} to meet that requirement.
535 \let\@afterindentfalse\@afterindenttrue
538 % Double space {\em everywhere}.
539 % ^^A\RequirePackage{doublespace}
542 \leftmargini\parindent
543 \def\@listi{\leftmargin\leftmargini
544 \parsep\z@\itemsep\z@\topsep -3\p@\relax}
547 \def\@listii{\leftmargin\leftmarginii
548 \parsep\z@\itemsep\z@\topsep -3\p@\relax}
549 \def\@listiii{\leftmargin\leftmarginiii
550 \parsep\z@\itemsep\z@\topsep -3\p@\relax}
551 \def\@listiv{\leftmargin\leftmarginiv
552 \parsep\z@\itemsep\z@\topsep -3\p@\relax}
553 \def\@listv{\leftmargin\leftmarginv
554 \parsep\z@\itemsep\z@\topsep -3\p@\relax}
555 \def\@listvi{\leftmargin\leftmarginvi
556 \parsep\z@\itemsep\z@\topsep -3\p@\relax}
558 % \subsubsection{Header}
559 % The last name and page number appear on every page, including the first.
561 \RequirePackage{fancyhdr}
562 \fancypagestyle{plain}{\fancyhf{}}
563 \fancypagestyle{mlastyle}{
565 \rhead{\mlastyle@surname{} \thepage}
566 \renewcommand{\headrulewidth}{0pt}
567 \renewcommand{\footrulewidth}{0pt}
571 % \subsubsection{Notes}
572 % Footnotes should be indented .5 inches; however .56 inches is used
573 % in a crude attempt to compensate for
574 % the alignment provided by the \package{footmisc} package. Endnotes are
575 % preferred in MLA style anyway, so this should not be a problem in most
578 \RequirePackage[ragged,norule]{footmisc}
579 \def\footnotelayout{\linespread{1}\footnotesize\raggedright{} }
580 \footnotemargin .56in
581 \skip\footins=2\baselineskip
582 \footnotesep 1.2\footnotesep
583 \addtolength\footnotesep{\baselineskip}
584 \def\footnotesize{\normalsize}
586 % ^^A\let\footnoterule\relax
587 % Endnotes are supported, but only if the \package{endnotes} package is
588 % loaded {\em before\/} this package.
590 \ifx\@undefined\endnote\else
591 \def\enoteheading{\newpage\section*{\notesname}}
592 \def\enoteformat{\leavevmode\makeenmark{} }
593 \def\enotesize{\normalsize}
596 % \subsubsection{Miscellaneous}
597 % The definition of |\thebibliography| varies depending on the document
600 \@ifundefined{chapter}
605 \def\thebibliography#1{\newpage\section*{\refname}
606 \list{\@biblabel{\@arabic\c@enumiv}}%
607 {\settowidth\labelwidth{\@biblabel{#1}}}
608 \leftmargin\labelwidth
609 \advance\leftmargin\labelsep
610 \itemindent-\leftmargin
613 \sloppy%\sfcode`\.=1000\relax
615 \let/=\mlastyle@slash
621 \def\thebibliography#1{\chapter*{\bibname}
622 \list{\@biblabel{\@arabic\c@enumiv}}%
623 {\settowidth\labelwidth{\@biblabel{#1}}}
624 \leftmargin\labelwidth
625 \advance\leftmargin\labelsep
626 \itemindent-\leftmargin
629 \sloppy%\sfcode`\.=1000\relax
631 \let/=\mlastyle@slash
634 % We're done formatting!
636 \fi % \ifmlastyle@format
638 % \subsection{Works Cited}
639 % \begin{macro}{\cite}
640 % The following macros, combined with \file{mlastyle.bst}, provide
641 % for a bibliography in MLA style. Note that the definition of |\cite|,
642 % |\citeN|, etc.\ vary depending on the options passed to
643 % \package{mlastyle}.
645 % \begin{macro}{\mlastyle@intcite}
646 % Since the original |\cite| is needed after it is overridden, it is stored
647 % in |\mlastyle@intcite|.
649 \let\mlastyle@intcite\cite
652 % \begin{macro}{\mlastyle@relax}
653 % This macro does nothing. Depending on the options, ither |\citeC| or
654 % |\citeM| and its ilk will utilize it.
656 \newcommand{\mlastyle@relax}[2][]{}
659 % \subsubsection{MLA Style}
660 % \begin{macro}{\citeM}
661 % If the \Lopt{mla} or \Lopt{style} options are used, the following is
665 \def\@cite#1#2{(#1\if@tempswa{} #2\fi)}
666 \def\cite{\def\@cite##1##2{(##1\if@tempswa{} ##2\fi)}\mlastyle@intcite}
667 \def\citeN{\def\@cite##1##2{##1\if@tempswa{} ##2\fi}\mlastyle@intcite}
668 \def\citeM{\def\@cite##1##2{ (##1\if@tempswa{} ##2\fi)}\mlastyle@intcite}
669 \def\citepage{\def\@cite##1##2{\if@tempswa(##2)\fi}\mlastyle@intcite}
670 \def\citepageM{\def\@cite##1##2{\if@tempswa{} (##2)\fi}\mlastyle@intcite}
671 \def\citeindirect{\def\@cite##1##2%
672 {(qtd. in ##1\if@tempswa{} ##2\fi)}\mlastyle@intcite}
673 \def\citeindirectM{\def\@cite##1##2%
674 { (qtd. in ##1\if@tempswa{} ##2\fi)}\mlastyle@intcite}
675 \let\citeC\mlastyle@relax
679 % Place commas in-between citations in the same |\citeyear|, |\citeyearNP|,
680 % |\citeN|, or |\shortciteN| command.
681 % Use something like |\citeN{ref1,ref2,ref3}| and |\citeN{ref4}| for a list.
683 % \@citedata and \@citedatax:
685 % \@ifnextchar [{\@tempswatrue\@citedatax}%
686 % {\@tempswafalse\@citedatax[]}%
688 % \def\@citedatax[#1]#2{%
690 % \if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi%
691 % \def\@citea{}\@cite{\@for\@citeb:=#2\do%
692 % {\@citea\def\@citea{; }\@ifundefined% by Young
693 % {b@\@citeb}{{\bf ?}%
694 % \@warning{Citation `\@citeb' on page \thepage \space undefined}}%
695 % {\csname b@\@citeb\endcsname}}}{#1}}%
697 % \begin{macro}{\@citex}
698 % This is the original |\@citex| from \LaTeX{} modified to use semicolons.
702 \@cite{\@for\@citeb:=#2\do
703 {\@citea\def\@citea{;\penalty-1\ }%
704 \edef\@citeb{\expandafter\@firstofone\@citeb\@empty}%
705 \if@filesw\immediate\write\@auxout{\string\citation{\@citeb}}\fi
706 \@ifundefined{b@\@citeb}{\mbox{\reset@font\bfseries ?}%
709 {Citation `\@citeb' on page \thepage \space undefined}}%
710 {{\csname b@\@citeb\endcsname}}}}{#1}}
713 % \begin{macro}{\@biblabel}
714 % No labels in the bibliography.
718 \let\mlastyle@intbib\thebibliography
719 \def\thebibliography#1{\mlastyle@intbib{#1}
720 \itemindent-\leftmargin\def\@biblabel##1{}}
723 % Title the either the bibliography or the references ``Works Cited,''
724 % depending on the document class.
726 \@ifundefined{chapter}
727 {\renewcommand\refname{Works Cited}}
728 {\renewcommand\bibname{Works Cited}}
731 % ^^A% Define the command \workscited{bib}{style}{nocite}
732 % ^^A%\newcommand{\workscited}[3]{%
733 % ^^A% \ifx\chapter\@undefined%
734 % ^^A% \addcontentsline{toc}{chapter}{\bfseries\bibname}% report style
736 % ^^A% \addcontentsline{toc}{section}{\bfseries\refname}% article style
738 % ^^A% \bibliography{#1}\bibliographystyle{#2}\nocite{#3}}
740 % ^^A\newcommand{\annote}[1]{\begin{list}{}{%
741 % ^^A \setlength{\labelwidth}{0pt}
742 % ^^A \addtolength{\leftmargin}{\parindent}
743 % ^^A \setlength{\labelsep}{0pt}}%
744 % ^^A \item #1 \end{list}}
745 % \subsubsection{Plain Style}
746 % \begin{macro}{\citeC}
747 % This next block is used only if the \Lopt{compat} option is set.
750 \newcommand{\mlastyle@cite}[2][]{\@tempswafalse\@citex[]{#2}}
751 \let\cite\mlastyle@cite
752 \let\citepage\mlastyle@cite
753 \let\citeindirect\mlastyle@cite
754 \newcommand{\citeC}[2][]{ \@tempswafalse\@citex[]{#2}}
755 \let\citeM\mlastyle@relax
756 \let\citepageM\mlastyle@relax
757 \let\citeindirectM\mlastyle@relax