44a745eebd6d0039c4bbc7b74556a1d2e0c6b461
[latex-mlastyle.git] / mlastyle.dtx
1 % \iffalse meta-comment
2 %
3 % Copyright (C) 2003 by Tim Pope <latex@rebelongto.us>
4 % ----------------------------------------------------
5
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:
10 %
11 %    http://www.latex-project.org/lppl.txt
12 %
13 % and version 1.2 or later is part of all distributions of LaTeX 
14 % version 1999/12/01 or later.
15 %
16 % \fi
17 %
18 % \iffalse
19 %<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
20 %<package>\ProvidesPackage{mlastyle}
21 %<package>   [2003/11/09 v0.9 MLA format and documentation style]
22 %
23 %<*driver>
24 \begin{filecontents}{mlastyle.bib}
25 @PREAMBLE{"\def\BibTex{\rmfamily B\kern -.05em\textsc {i\kern -.025emb}\kern -.08emT\kern -.1667em\lower .7ex\hbox {E}\kern -.125emX}"}
26
27 @BOOK{handbook,
28   AUTHOR = "Joseph Gibaldi",
29   TITLE = "MLA Handbook for Writers of Research Papers",
30   KEY = "MLA Handbook",
31   EDITION = "Sixth",
32   ADDRESS = "New York",
33   PUBLISHER = "MLA",
34   YEAR = "2003"}
35
36 @BOOK{latexdps,
37   AUTHOR = "Leslie Lamport",
38   TITLE = "{\LaTeX}: A Document Preparation System",
39   KEY = "{\LaTeX}",
40   EDITION = "Second",
41   ADDRESS = "Reading",
42   PUBLISHER = "Addison-Wesley",
43   YEAR = "1994"}
44
45 @MANUAL{lshort,
46   AUTHOR  = "Tobias Oetker and Hubert Partl and Irene Hyna and Elisabeth 
47 Schlegl",
48   TITLE   = "The Not So Short Introduction to {\LaTeXe}",
49   KEY     = "Not So Short",
50   YEAR    = "2000",
51   MONTH   = dec,
52   VERSION = "4.0",
53   ACCESSDATE = "1~"#nov#"~2003",
54   URL     = "CTAN://info/lshort/"}
55
56 @MANUAL{btxdoc,
57   AUTHOR  = "Oren Patashnik",
58   TITLE   = "{\BibTex ing}",
59   YEAR    = "1988",
60   MONTH   = feb,
61   ACCESSDATE = "1~"#nov#"~2003",
62   URL     = "CTAN://biblio/bibtex/distribs/doc/btxdoc.tex"}
63 \end{filecontents}
64 \documentclass[draft]{ltxdoc}
65 \iffalse
66   \usepackage[mla]{mlastyle}
67   \bibliographystyle{mlastyle}
68   \addtolength{\marginparwidth}{1in}
69   \addtolength{\textwidth}{-1in}
70   \addtolength{\headwidth}{-1in}
71 \else
72   \IfFileExists{natbib.sty}{
73     \usepackage{natbib}
74     \citeindextrue
75     \bibpunct{[}{]}{,}{n}{}{,}%{
76     \bibliographystyle{plainnat}}
77     {\bibliographystyle{plain}}
78   \IfFileExists{url.sty}{\usepackage{url}}{}
79   \usepackage[compat]{mlastyle}
80   %\addtolength{\headsep}{-5pt}
81   %\addtolength{\headheight}{-12pt}
82   %\addtolength{\topmargin}{-17pt}
83   %\addtolength{\textheight}{22pt}
84   \IfFileExists{ulem.sty}{\usepackage[normalem]{ulem}}{\let\uline\emph}
85 \fi
86 \IfFileExists{times.sty}%
87 {\newcommand{\examp}[2][]{{\let\emph\uline\fontfamily{ptm}\selectfont##2}##1}}%
88 {\newcommand{\examp}[2][]{``##2##1''}}
89
90 {\makeatletter\gdef\NAT@MLA#1{#1}\gdef\NAT@idxtxt
91 {\expandafter\NAT@MLA\NAT@name\ \NAT@open\NAT@num\NAT@close}}
92 \EnableCrossrefs
93 \CodelineIndex
94 \RecordChanges
95 %\OnlyDescription
96 \begin{document}
97   \DocInput{mlastyle.dtx}
98 \end{document}
99 %</driver>
100 % \fi
101 %
102 % \CheckSum{0}
103 %
104 % \CharacterTable
105 %  {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
106 %   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
107 %   Digits        \0\1\2\3\4\5\6\7\8\9
108 %   Exclamation   \!     Double quote  \"     Hash (number) \#
109 %   Dollar        \$     Percent       \%     Ampersand     \&
110 %   Acute accent  \'     Left paren    \(     Right paren   \)
111 %   Asterisk      \*     Plus          \+     Comma         \,
112 %   Minus         \-     Point         \.     Solidus       \/
113 %   Colon         \:     Semicolon     \;     Less than     \<
114 %   Equals        \=     Greater than  \>     Question mark \?
115 %   Commercial at \@     Left bracket  \[     Backslash     \\
116 %   Right bracket \]     Circumflex    \^     Underscore    \_
117 %   Grave accent  \`     Left brace    \{     Vertical bar  \|
118 %   Right brace   \}     Tilde         \~}
119 %
120 %
121 % \changes{v0.9}{2003/11/09}{Converted to \texttt{dtx} file}
122 % \changes{v0.8}{2003/10/15}{Initial version}
123 %
124 % \GetFileInfo{mlastyle.sty}
125 %
126 % \DoNotIndex{\ }
127 % \DoNotIndex{\.}
128 % \DoNotIndex{\@afterindentfalse}
129 % \DoNotIndex{\@afterindenttrue}
130 % \DoNotIndex{\@arabic}
131 % \DoNotIndex{\@author}
132 % \DoNotIndex{\@auxout}
133 % \DoNotIndex{\@citea}
134 % \DoNotIndex{\@citeb}
135 % \DoNotIndex{\@date}
136 % \DoNotIndex{\@empty}
137 % \DoNotIndex{\@firstofone}
138 % \DoNotIndex{\@for}
139 % \DoNotIndex{\@ifundefined}
140 % \DoNotIndex{\@latex@warning}
141 % \DoNotIndex{\@listI}
142 % \DoNotIndex{\@listi}
143 % \DoNotIndex{\@listii}
144 % \DoNotIndex{\@listiii}
145 % \DoNotIndex{\@listiv}
146 % \DoNotIndex{\@listv}
147 % \DoNotIndex{\@listvi}
148 % \DoNotIndex{\@m}
149 % \DoNotIndex{\@startsection}
150 % \DoNotIndex{\@tempswafalse}
151 % \DoNotIndex{\@title}
152 % \DoNotIndex{\@undefined}
153 % \DoNotIndex{\DeclareOption}
154 % \DoNotIndex{\ExecuteOptions}
155 % \DoNotIndex{\G@refundefinedtrue}
156 % \DoNotIndex{\ProcessOptions}
157 % \DoNotIndex{\RequirePackage}
158 % \DoNotIndex{\UL@start,\UL@stop}
159 % \DoNotIndex{\addtolength}
160 % \DoNotIndex{\advance}
161 % \DoNotIndex{\baselineskip}
162 % \DoNotIndex{\bibpreamble,\bibpunct,\bibsep}
163 % \DoNotIndex{\begin}
164 % \DoNotIndex{\bfseries}
165 % \DoNotIndex{\bgroup}
166 % \DoNotIndex{\c@enumiv}
167 % \DoNotIndex{\catcode}
168 % \DoNotIndex{\centering}
169 % \DoNotIndex{\centerline}
170 % \DoNotIndex{\chapter}
171 % \DoNotIndex{\citation}
172 % \DoNotIndex{\citet,\citep}
173 % \DoNotIndex{\clearpage}
174 % \DoNotIndex{\csname}
175 % \DoNotIndex{\day}
176 % \DoNotIndex{\def}
177 % \DoNotIndex{\do}
178 % \DoNotIndex{\edef}
179 % \DoNotIndex{\egroup}
180 % \DoNotIndex{\else}
181 % \DoNotIndex{\end}
182 % \DoNotIndex{\endcsname}
183 % \DoNotIndex{\endlist}
184 % \DoNotIndex{\exhyphenpenalty}
185 % \DoNotIndex{\expandafter}
186 % \DoNotIndex{\f@baselineskip}
187 % \DoNotIndex{\fancyhf}
188 % \DoNotIndex{\fancypagestyle}
189 % \DoNotIndex{\fi}
190 % \DoNotIndex{\futurelet}
191 % \DoNotIndex{\gdef}
192 % \DoNotIndex{\global}
193 % \DoNotIndex{\hangindent}
194 % \DoNotIndex{\headrulewidth}
195 % \DoNotIndex{\if@filesw}
196 % \DoNotIndex{\if@tempswa}
197 % \DoNotIndex{\ifcase}
198 % \DoNotIndex{\ifmlastyle@bibstyle}
199 % \DoNotIndex{\ifmlastyle@format}
200 % \DoNotIndex{\ifmlastyle@pages}
201 % \DoNotIndex{\ifmlastyle@papersize}
202 % \DoNotIndex{\ifmlastyle@style}
203 % \DoNotIndex{\ifmlastyle@times}
204 % \DoNotIndex{\ifmlastyle@underline}
205 % \DoNotIndex{\ifx}
206 % \DoNotIndex{\immediate}
207 % \DoNotIndex{\item}
208 % \DoNotIndex{\itemindent}
209 % \DoNotIndex{\itemsep}
210 % \DoNotIndex{\labelsep}
211 % \DoNotIndex{\labelwidth}
212 % \DoNotIndex{\leavevmode}
213 % \DoNotIndex{\leftmargin}
214 % \DoNotIndex{\leftmargini,\leftmarginii,\leftmarginiii}
215 % \DoNotIndex{\leftmarginiv,\leftmarginv,\leftmarginvi}
216 % \DoNotIndex{\let}
217 % \DoNotIndex{\linespread}
218 % \DoNotIndex{\list}
219 % \DoNotIndex{\listparindent}
220 % \DoNotIndex{\makeenmark}
221 % \DoNotIndex{\mbox}
222 % \DoNotIndex{\ml@}
223 % \DoNotIndex{\mlastyle@bibstylefalse}
224 % \DoNotIndex{\mlastyle@bibstyletrue}
225 % \DoNotIndex{\mlastyle@cite}
226 % \DoNotIndex{\mlastyle@course}
227 % \DoNotIndex{\mlastyle@formatfalse}
228 % \DoNotIndex{\mlastyle@formattrue}
229 % \DoNotIndex{\mlastyle@instructor}
230 % \DoNotIndex{\mlastyle@intbib}
231 % \DoNotIndex{\mlastyle@pagesfalse}
232 % \DoNotIndex{\mlastyle@pagestrue}
233 % \DoNotIndex{\mlastyle@papersizefalse}
234 % \DoNotIndex{\mlastyle@papersizetrue}
235 % \DoNotIndex{\mlastyle@qspread}
236 % \DoNotIndex{\mlastyle@sl@sh}
237 % \DoNotIndex{\mlastyle@slash}
238 % \DoNotIndex{\mlastyle@slashnext}
239 % \DoNotIndex{\mlastyle@slashx}
240 % \DoNotIndex{\mlastyle@stylefalse}
241 % \DoNotIndex{\mlastyle@styletrue}
242 % \DoNotIndex{\mlastyle@surname}
243 % \DoNotIndex{\mlastyle@timesfalse}
244 % \DoNotIndex{\mlastyle@timestrue}
245 % \DoNotIndex{\mlastyle@underlinefalse}
246 % \DoNotIndex{\mlastyle@underlinetrue}
247 % \DoNotIndex{\month}
248 % \DoNotIndex{\newblock}
249 % \DoNotIndex{\newcommand}
250 % \DoNotIndex{\newdimen}
251 % \DoNotIndex{\newenvironment}
252 % \DoNotIndex{\newif}
253 % \DoNotIndex{\newpage}
254 % \DoNotIndex{\noindent}
255 % \DoNotIndex{\normalsize}
256 % \DoNotIndex{\notesname}
257 % \DoNotIndex{\number}
258 % \DoNotIndex{\or}
259 % \DoNotIndex{\p@}
260 % \DoNotIndex{\pagestyle}
261 % \DoNotIndex{\par}
262 % \DoNotIndex{\parindent}
263 % \DoNotIndex{\parsep}
264 % \DoNotIndex{\penalty}
265 % \DoNotIndex{\relax}
266 % \DoNotIndex{\renewcommand}
267 % \DoNotIndex{\renewenvironment}
268 % \DoNotIndex{\reset@font}
269 % \DoNotIndex{\rhead}
270 % \DoNotIndex{\selectfont}
271 % \DoNotIndex{\setlength}
272 % \DoNotIndex{\settowidth}
273 % \DoNotIndex{\sfcode}
274 % \DoNotIndex{\skip}
275 % \DoNotIndex{\sloppy}
276 % \DoNotIndex{\space}
277 % \DoNotIndex{\string}
278 % \DoNotIndex{\the}
279 % \DoNotIndex{\thebibliography}
280 % \DoNotIndex{\thepage}
281 % \DoNotIndex{\topsep}
282 % \DoNotIndex{\usecounter}
283 % \DoNotIndex{\unskip}
284 % \DoNotIndex{\vskip}
285 % \DoNotIndex{\write}
286 % \DoNotIndex{\year}
287 % \DoNotIndex{\z@}
288 % \DoNotIndex{\bibhang}
289 % \DoNotIndex{\evensidemargin}
290 % \DoNotIndex{\headheight}
291 % \DoNotIndex{\headsep}
292 % \DoNotIndex{\hoffset}
293 % \DoNotIndex{\marginparwidth}
294 % \DoNotIndex{\oddsidemargin}
295 % \DoNotIndex{\raggedbottom}
296 % \DoNotIndex{\raggedright}
297 % \DoNotIndex{\textheight}
298 % \DoNotIndex{\textwidth}
299 % \DoNotIndex{\topmargin}
300 % \DoNotIndex{\voffset}
301 % \DoNotIndex{\paperheight}
302 % \DoNotIndex{\paperwidth}
303 % \DoNotIndex{\pdfpageheight}
304 % \DoNotIndex{\pdfpagewidth}
305 % \DoNotIndex{\special}
306 %
307 % \hyphenation{pre-am-ble wide-spread}
308 %
309 % \newcommand{\Lopt}[1]{\textsf {#1}}
310 % \newcommand{\file}[1]{\texttt {#1}}
311 % \newcommand{\package}[1]{\textsf {#1}}
312 % ^^A\newcommand{\Lcount}[1]{\textsl {\small#1}}
313 % ^^A\newcommand{\pstyle}[1]{\textsl {#1}}
314 %
315 % \newcommand{\OptionIndex}[1]{\index{#1\actualchar\Lopt{#1} (option)\encapchar usage}\index{options:\levelchar\Lopt{#1}}}
316 %
317 % \title{The \package{mlastyle} package\thanks{This document
318 %   corresponds to \package{mlastyle}~\fileversion, dated \filedate.}}
319 % \author{Tim Pope \\ \texttt{latex@rebelongto.us}}
320 % \surname{Pope}
321 %
322 % \maketitle
323 %
324 % \tableofcontents
325 %
326 % \section{Introduction}
327 %
328 % ^^A MLA style, consisting of a set of documentation conventions, has
329 % ^^A gained widespread acceptance in the humanities.
330 % According to the {\em MLA Handbook for Writers of Research
331 % Papers}\citeC{handbook}, MLA style is a set of ``commonly agreed-on
332 % rules for documenting quotations, facts, opinions and paraphrases'' that
333 % ``is preferred by a substantial majority of scholarly journals in
334 % language and literature{\makeatletter\ifmlastyle@style
335 % .''\citeM[xvi]{handbook}\else.''\fi} \LaTeX{} is a
336 % document preparation system enjoying popularity in the scientific field.
337 % It should come as no surprise that complete, up-to-date implementations
338 % of MLA style for \LaTeX{} are in short supply.  The \LaTeX{} package
339 % \package{mlastyle} aims to fill this void.
340 %
341 % \section{Usage}
342 %
343 % A sample document follows.
344 % \begin{verbatim}
345 %\documentclass[12pt]{article}
346 %\usepackage{mlastyle}
347 %
348 %\author{John Doe}
349 %\instructor{Professor Smith}
350 %\course{English 101}
351 %\date{1~Jan.\ 1970}
352 %\title{The Sadism Inherent in Compulsory English Classes}
353 %
354 %\begin{document}
355 %\maketitle
356 %'Nuff said.
357 %\end{document}\end{verbatim}
358 % \subsection{Initialization Macros}
359 % The \index{heading|usage}mandatory heading is generated with
360 % \DescribeMacro{\maketitle}|\maketitle|.  Use the standard macros
361 % |\author|, |\title|, and |\date| to specify the relevant information.
362 % To define the instructor and name of the course, use the aptly named
363 % \DescribeMacro{\instructor}|\instructor|\marg{instructor} and
364 % \DescribeMacro{\course}|\course|\marg{course} macros.
365 %
366 % The last name for use in the header\index{header|usage} is derived from
367 % |\author|.  If this does not produce the desired result, use
368 % \DescribeMacro{\surname}|\surname|\marg{last name} to override it.
369 %
370 % MLA style recommends the DD~Mon.~YYYY format for specifying dates;
371 % \DescribeMacro{\today}|\today| has been conveniently redefined to this.
372 % However, other formats can be used as long as done so consistently
373 % throughout the document.  Also note that the date in the
374 % heading\index{heading|usage} should be the due date of the assignment;
375 % students who finish assignments early would be wise to call
376 % |\date|\marg{due date}.
377 %
378 % \subsection{Environments}
379 % Three environments have been modified from standard \LaTeX to better
380 % suit MLA format.  To typeset \index{poetry|usage}poetry and
381 % \index{drama|usage}drama, use the \DescribeEnv{verse}|verse|
382 % environment.  Quotations\index{quotations|usage} of a single paragraph
383 % or less always use the \DescribeEnv{quote}|quote| environment.  For
384 % longer passages, use the \DescribeEnv{quotation}|quotation| environment
385 % if the beginning of the passage marks the beginning of a paragraph.
386 % Otherwise, use the |quote| environment.
387 %
388 % Be sure to follow MLA guidelines when using these environments.  Short
389 % quotes should be enclosed in quotation marks and included directly in
390 % the text.
391 %
392 % \subsection{Modes of Operation}
393 % The \package{mlastyle} package has four basic modes of operations,
394 % selected with one of four mutually exclusive options.  The
395 % \OptionIndex{format}\Lopt{format}
396 % option tells \package{mlastyle} to use MLA format (i.e., 1 inch margins,
397 % double-spaced, etc.).  The \OptionIndex{style}\Lopt{style} option tells
398 % \package{mlastyle} to use MLA style (i.e., the format of parenthetical
399 % documentation, etc).  Each of these options
400 % disables the other; to use both MLA format and MLA style, specify the
401 % \OptionIndex{mla}\Lopt{mla} option, or nothing at all.
402 %
403 % To disable both MLA style and MLA format, use the
404 % \OptionIndex{compat}\Lopt{compat} option.  This differs from omitting
405 % the package entirely in that certain macros are still defined (e.g.,
406 % |\instructor|).  Also, citations are handled a bit differently than in
407 % standard \LaTeX{} (see section~\ref{sec:documentation}).
408 %
409 % In addition to the above, several other options modify the behavior of
410 % \package{mlastyle}.
411 %
412 % \subsubsection{Italics vs.\ Underlining} \index{underlining|usage}
413 % \index{italics|usage}\label{sec:italics}
414 % The {\em MLA Handbook\/}\citeC{handbook} dictates that emphasis should
415 % be indicated by underlining the text\citeM[94]{handbook}.  Thus, the
416 % \package{ulem} package, which underlines all emphasized
417 % text, is loaded by default in \Lopt{mla} and \Lopt{format} modes.  To
418 % disable this, use the \OptionIndex{italics}\Lopt{italics} option.
419 % Conversely, if underlining is desired in \Lopt{style} or \Lopt{compat}
420 % mode, the \OptionIndex{underline}\Lopt{underline} option can be used.
421 %
422 % \subsubsection{Fonts}
423 % By default, \package{mlastyle} uses \TeX's standard Computer Modern
424 % font.  Some profess\-ors\penalty500---particularly those
425 % concerned with document length---require assignments to be set in
426 % \examp[.]{Times New Roman}  This can be achieved with the
427 % \OptionIndex{times}\Lopt{times} option, which simply loads the
428 % \package{times} package.  This opposite of this option is
429 % \OptionIndex{cm}\Lopt{cm}, which reverts to Computer Modern.
430 %
431 % \index{works cited|usage}
432 % \subsection{Documenting Sources} \label{sec:documentation}
433 %
434 % The \package{mlastyle} package reimplements the
435 % \DescribeEnv{thebibliography}|thebibliography| environment to generate
436 % the list of works cited in MLA style.  Instruction in the basic use of
437 % \LaTeX's bibliography features is beyond the scope of this document;
438 % however, the following example, which should be included just before
439 % |\end{document}|, might prove to be a useful starting point:
440 %\begin{verbatim}
441 %\begin{thebibliography}{}
442 %
443 %\bibitem[Lamport]{latexdps}
444 %Lamport, Leslie.
445 %\newblock \emph{\LaTeX: A Document Preparation System}.
446 %\newblock 2nd.~ed.
447 %\newblock Reading: Addison-Wesley, 1994.
448 %
449 %\end{thebibliography}\end{verbatim}
450 % In this example, |Lamport| is the author's last name (for use in
451 % citations) and |latexdps| is the marker used to reference it (see
452 % section~\ref{sec:parenthetical}).
453 %
454 % For information on automatically generating the list of works cited with
455 % \BibTeX, see section~\ref{sec:bibtex}.
456 %
457 % \subsubsection{Parenthetical Documentation} \label{sec:parenthetical}
458 % A simple citation can by achieved with a call to
459 % \DescribeMacro{\cite}|\cite|\oarg{pages}\marg{marker}, where
460 % marker refers to the key given to either
461 % \index{BibTeX=\BibTeX|usage}\BibTeX{} or the |\bibitem| macro (|latex|
462 % in the above example).
463 % Omit \oarg{pages} if the source has no page numbers.
464 % Multiple sources can be cited using the syntax
465 % |\cite|\oarg{pages}|{|\meta{marker
466 % 1}\texttt{,}\penalty\exhyphenpenalty\meta{marker 2}\ldots|}|; however, page
467 % numbers can currently be specified only for the last referenced source.
468 % To work around this limitation, use |\citealp|, explained below.
469 %
470 % Three additional citation commands are provided, all of which take the
471 % same arguments as |\cite|.  To omit the author information from the
472 % citation, use \DescribeMacro{\citepage}|\citepage|.  Indirect
473 % citations---those of the format \examp{(qtd. in Pope
474 % \pageref{sec:italics})}---can be
475 % created with \DescribeMacro{\citeindirect}|\citeindirect|.  Finally, the
476 % parentheses are omitted by \DescribeMacro{\citealp}|\citealp|.  This was
477 % intended for use in cross references, but it can also help in citing
478 % multiple works.  The result of
479 % |(\citealp[42]{texbook}|\texttt{; }|\citealp[69]{latexdps})|
480 % would be something like \examp[.]{(Knuth 42; Lamport 69)}
481 %
482 % \subsubsection{Using {\rm \BibTeX}} \label{sec:bibtex}
483 % Coupled with \index{BibTeX=\BibTeX|usage}\BibTeX,
484 % \package{mlastyle} provides a experimental implementation of MLA
485 % documentation style.  Put\SpecialUsageIndex{\bibliographystyle}
486 % |\bibliographystyle{mlastyle}| in the document preamble to load the
487 % bibliography style.  Alternatively, the
488 % \OptionIndex{bibstyle}\Lopt{bibstyle} option can handle this
489 % automatically, loading a bibliography style of |mlastyle| in \Lopt{mla}
490 % and \Lopt{style} modes and a bibliography style of |plain| in
491 % \Lopt{format} and \Lopt{compat} modes.
492 %
493 % Use of \BibTeX{} is also beyond the scope of this document; consult
494 % Patashnik\citeC{btxdoc} for an introduction.
495 % Briefly, to use the following example, substitute
496 % |\bibliography|\marg{filename} for the |thebibliography| environment.
497 % Then create \meta{filename}\file{.bib} with the contents below.
498 % Generating the document entails running \file{latex} on the \file{.tex}
499 % file, \file{bibtex} on the resulting \file{.aux} file, then \file{latex}
500 % twice more.
501 %\begin{verbatim}
502 %@BOOK{latexdps,
503 %  AUTHOR = "Leslie Lamport",
504 %  TITLE = "{\LaTeX}: A Document Preparation System",
505 %  KEY = "{\LaTeX}",
506 %  EDITION = "Second",
507 %  ADDRESS = "Reading",
508 %  PUBLISHER = "Addison-Wesley",
509 %  YEAR = "1994"}\end{verbatim}
510 %
511 % In \package{mlastyle}, The |KEY| field serves the additional purpose of
512 % specifying an abbreviated title.  This is unnecessary in the above
513 % example.  If an additional book by Leslie Lamport was included, however,
514 % the |KEY| field would allow |\cite{latexdps}| to yield \examp{(Lamport,
515 % \emph{\LaTeX\/})} instead of \examp[.]{(Lamport, \emph{\LaTeX: A
516 % Doc\-um\-ent Pre\-pa\-ra\-tion Sys\-tem\/})}
517 %
518 % Note that only entries referenced by a citation are included in the list
519 % of works cited; to force the inclusion of an entry or all entries, use
520 % |\nocite|\marg{marker} and |\nocite{*}|, respectively.
521 %
522 % \StopEventually{\PrintChanges\bibliography{mlastyle}\PrintIndex}
523 %
524 % \section{Implementation}
525 %    \begin{macrocode}
526 %<*package>
527 %    \end{macrocode}
528 %
529 % \subsection{Options}
530 % \begin{macro}{\ifmlastyle@*}
531 % \begin{macro}{\mlastyle@*true}
532 % \begin{macro}{\mlastyle@*false}
533 % Most options are implemented by modifying a |\newif| declared for that
534 % purpose.
535 %    \begin{macrocode}
536 \newif\ifmlastyle@bibstyle
537 \DeclareOption{bibstyle}{\mlastyle@bibstyletrue}
538 \DeclareOption{nobibstyle}{\mlastyle@bibstylefalse}
539 \newif\ifmlastyle@papersize
540 \DeclareOption{papersize}{\mlastyle@papersizetrue}
541 \DeclareOption{nopapersize}{\mlastyle@papersizefalse}
542 \newif\ifmlastyle@underline
543 \DeclareOption{underline}{\mlastyle@underlinetrue}
544 \DeclareOption{italics}{\mlastyle@underlinefalse}
545 \newif\ifmlastyle@times
546 \DeclareOption{times}{\mlastyle@timestrue}
547 \DeclareOption{cm}{\mlastyle@timesfalse}
548 \newif\ifmlastyle@style
549 \DeclareOption{compat}{\mlastyle@stylefalse
550         \mlastyle@formatfalse
551         \mlastyle@underlinefalse}
552 \DeclareOption{mla}{\mlastyle@styletrue
553         \mlastyle@formattrue
554         \mlastyle@underlinetrue}
555 \newif\ifmlastyle@format
556 \DeclareOption{format}{\mlastyle@stylefalse
557         \mlastyle@formattrue
558         \mlastyle@underlinetrue}
559 \DeclareOption{style}{\mlastyle@styletrue
560         \mlastyle@formatfalse
561         \mlastyle@underlinefalse}
562 \DeclareOption{singlespacequotes}{
563   \def\mlastyle@qspread{\linespread{1}\selectfont\vskip\baselineskip}}
564 \DeclareOption{doublespacequotes}{\let\mlastyle@qspread\relax}
565 \ExecuteOptions{nobibstyle,nopapersize,mla,cm,doublespacequotes}
566 \ProcessOptions
567 %    \end{macrocode}
568 % \end{macro}
569 % \end{macro}
570 % \end{macro}
571 % If the \Lopt{papersize} option is set, add the appropriate
572 % \textsc{PostScript} special, or adjust |\pdfpagewidth| and
573 % |\pdfpageheight| if pdf\LaTeX{} is in use.
574 %    \begin{macrocode}
575 \ifmlastyle@papersize
576   \ifx\@undefined\pdfpagewidth
577     \special{papersize=\the\paperwidth,\the\paperheight}
578   \else
579     \setlength{\pdfpagewidth}{\paperwidth}
580     \setlength{\pdfpageheight}{\paperheight}
581   \fi
582 \fi % \ifmlastyle@papersize
583 %    \end{macrocode}
584 % If the \Lopt{bibstyle} option is set, specify the bibliography style.
585 %    \begin{macrocode}
586 \ifmlastyle@bibstyle
587   \ifmlastyle@style
588     \bibliographystyle{mlastyle}
589   \else
590     \bibliographystyle{plain}
591   \fi
592 \fi % \ifmlastyle@bibstyle
593 %    \end{macrocode}
594 % \begin{macro}{\UL@onin}
595 % Load the \package{ulem} package if the \Lopt{underline} option is set.
596 % By default, \package{ulem} does multiple underlining for nested
597 % emphasis.  This is changed to MLA-style behavior with the redefinition
598 % of |\UL@onin|.
599 %    \begin{macrocode}
600 \ifmlastyle@underline
601   \RequirePackage{ulem}
602   \def\UL@onin#1{\egroup\UL@stop#1\UL@start}
603 \fi % \ifmlastyle@underline
604 %    \end{macrocode}
605 % \end{macro}
606 % Load the \package{times} package if the \Lopt{times} option is set.
607 %    \begin{macrocode}
608 \ifmlastyle@times
609   \RequirePackage{times}
610 \fi % \ifmlastyle@times
611 %    \end{macrocode}
612 % \subsection{Macros}
613 % \begin{macro}{\instructor}
614 % Define the instructor, along with an obsolete synonym.
615 %    \begin{macrocode}
616 \def\instructor#1{\gdef\mlastyle@instructor{#1}}
617 \let\professor\instructor
618 %    \end{macrocode}
619 % \end{macro}
620 % \begin{macro}{\course}
621 % Define the course, along with an obsolete synonym.
622 %    \begin{macrocode}
623 \def\course#1{\gdef\mlastyle@course{#1}}
624 \let\classname\course
625 %    \end{macrocode}
626 % \end{macro}
627 % \begin{macro}{\surname}
628 % Define the surname, along with an obsolete synonym.
629 %    \begin{macrocode}
630 \def\surname#1{\gdef\mlastyle@surname{#1}}
631 \def\mlastyle@surname{\def\ml@##1 ##2,##3@@{##2}%
632   \expandafter\ml@\@author, ,@@}
633 \let\lastname\surname
634 %    \end{macrocode}
635 % \end{macro}
636 % \subsection{Formatting}
637 % Formatting is done if the \Lopt{mla} or \Lopt{format} option is set.
638 %    \begin{macrocode}
639 \ifmlastyle@format
640 %    \end{macrocode}
641 % \begin{macro}{\mlastyle@i}
642 % This is the standard MLA format indent.
643 %    \begin{macrocode}
644   \newdimen\mlastyle@i \mlastyle@i=.5in
645 %    \end{macrocode}
646 % \end{macro}
647 % \subsubsection{Macros}
648 % \begin{macro}{\maketitle}
649 % |\maketitle| generates a heading in MLA format.
650 %    \begin{macrocode}
651   \renewcommand{\maketitle}{\begin{flushleft}
652     \@author\par
653     \@ifundefined{mlastyle@instructor}{}{\mlastyle@instructor}\par
654     \@ifundefined{mlastyle@course}{}{\mlastyle@course}\par
655     \@date\end{flushleft}
656     \begin{center}\@title\end{center}\par
657   }
658 %    \end{macrocode}
659 % \end{macro}
660 % \begin{macro}{\today}
661 % |\today| is redefined to DD~Mon.~YYYY format.
662 %    \begin{macrocode}
663 \def\today{\number\day~\ifcase\month\or
664   Jan.\or Feb.\or Mar.\or Apr.\or May\or June\or July\or 
665   Aug.\or Sept.\or Oct.\or Nov.\or Dec.\fi\ \number\year}
666 %    \end{macrocode}
667 % \end{macro}
668 % \begin{macro}{\slash}
669 % No penalty for |\slash|, and plain /'s permit line breaks if necessary.
670 % ^^A\let\mlastyle@sl@sh=/
671 %    \begin{macrocode}
672   \def\slash{/\penalty\z@}
673   \def\mlastyle@slash{/\futurelet\mlastyle@slashnext\mlastyle@slashx}
674   \def\mlastyle@slashx{\ifx\mlastyle@slashnext/\else
675     \penalty\exhyphenpenalty\fi}
676 %    \end{macrocode}
677 % \end{macro}
678 % \begin{macro}{\section}
679 % \begin{macro}{\subsection}
680 % \begin{macro}{\subsubsection}
681 % Sections are formatted by centering the section name and beginning a new
682 % page.  Subsections simply center the section name.
683 %    \begin{macrocode}
684   \renewcommand{\section}{\clearpage\@startsection{section}{1}{\z@
685     }{0pt}{1sp}{\centering}}
686   \renewcommand{\subsection}{\@startsection{subsection}{2}{\z@
687     }{0pt}{1sp}{\centering}}
688   \renewcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@
689     }{0pt}{1sp}{\centering}}
690 %    \end{macrocode}
691 % ^^A\let\mlastyle@vfont\verbatim@font
692 % ^^A\def\verbatim@font{\mlastyle@qspread\mlastyle@vfont}
693 % \end{macro}
694 % \end{macro}
695 % \end{macro}
696 % \subsubsection{Environments}
697 % ^^A%\newenvironment{blocks}{\begin{quote} \linespread{1} \selectfont}{\end{quote} \linespread{2} \small \selectfont}
698 % ^^A%\newenvironment{blockm}{\begin{quotation} \linespread{1} \selectfont}{\end{quotation} \linespread{2} \selectfont}
699 % \begin{environment}{verse}
700 % Indented 1 inch, with an additional .25 inch hanging indent.
701 %    \begin{macrocode}
702   \renewenvironment{verse}{\list{}{\mlastyle@qspread
703     \advance\leftmargin1.5\mlastyle@i\itemindent-.5\mlastyle@i
704     \listparindent\itemindent}\item\relax}{\endlist}
705 %    \end{macrocode}
706 % \end{environment}
707 % \begin{environment}{quotation}
708 % Indented 1 inch, with a paragraph indent of an additional .25 inches.
709 %    \begin{macrocode}
710   \renewenvironment{quotation}{\list{}{\mlastyle@qspread
711     \advance\leftmargin\mlastyle@i\itemindent.5\mlastyle@i
712     \listparindent\itemindent}\item\relax}{\endlist}
713 %    \end{macrocode}
714 % \end{environment}
715 % \begin{environment}{quote}
716 % Identical to the |quotation| environment, except the first paragraph is not
717 % indented.
718 %    \begin{macrocode}
719   \renewenvironment{quote}{\list{}{\mlastyle@qspread
720     \advance\leftmargin\mlastyle@i
721     \listparindent.5\mlastyle@i}\item\relax}{\endlist}
722 %    \end{macrocode}
723 % \end{environment}
724 % \begin{environment}{workscited}
725 % Works cited environment, for compatibility with \package{mla-paper}.
726 %    \begin{macrocode}
727   \newenvironment{workscited}%
728     {\newpage{\centerline{Works Cited}}}{\newpage}
729   \newcommand{\bibent}{\noindent \hangindent\mlastyle@i}
730 %    \end{macrocode}
731 % \end{environment}
732 % \subsubsection{Margins}
733 % Top and bottom margins are 1 inch each.  The header is flush with the
734 % right margin at .5 inches from the top of the page.
735 % ^^A\addtolength{\headheight}{-1pt}
736 % ^^A\setlength{\headheight}{1.4\headheight}% kludge
737 %    \begin{macrocode}
738   \addtolength{\voffset}{-.5in}
739   \setlength{\textheight}{\paperheight}
740   \addtolength{\textheight}{-2in}
741   \setlength{\topmargin}{0in}
742   \setlength\headheight\f@baselineskip
743   \setlength{\headsep}{.5in}
744   \addtolength{\headsep}{-\headheight}
745   \setlength{\footskip}{0.25in}
746   \raggedbottom
747 %    \end{macrocode}
748 % Left and right margins in MLA format are each 1 inch wide.
749 %    \begin{macrocode}
750   \addtolength{\hoffset}{-.5in}
751   \setlength{\textwidth}{\paperwidth}
752   \addtolength{\textwidth}{-2in}
753   \setlength{\oddsidemargin}{.5in}
754   \setlength{\evensidemargin}{.5in}
755   \setlength{\marginparwidth}{.5in}
756 %    \end{macrocode}
757 % \subsubsection{Paragraphs}
758 % Paragraphs should be left justified, with the first line indented .5
759 % inches.
760 %    \begin{macrocode}
761   \raggedright
762   \setlength\parindent\mlastyle@i
763 %    \end{macrocode}
764 % MLA format specifies that all paragraphs should be indented, even those
765 % beginning a new section.  This snippet from \package{indentfirst} changes
766 % \LaTeX{} to meet that requirement.
767 %    \begin{macrocode}
768   \let\@afterindentfalse\@afterindenttrue
769   \@afterindenttrue
770 %    \end{macrocode}
771 % Double space {\em everywhere}.
772 % ^^A\RequirePackage{doublespace}
773 %    \begin{macrocode}
774   \linespread{2.0}
775   \leftmargini\parindent
776   \def\@listi{\leftmargin\leftmargini
777   \parsep\z@\itemsep\z@\topsep -3\p@\relax}
778   \let\@listI\@listi
779   \@listi
780   \def\@listii{\leftmargin\leftmarginii
781   \parsep\z@\itemsep\z@\topsep -3\p@\relax}
782   \def\@listiii{\leftmargin\leftmarginiii
783   \parsep\z@\itemsep\z@\topsep -3\p@\relax}
784   \def\@listiv{\leftmargin\leftmarginiv
785   \parsep\z@\itemsep\z@\topsep -3\p@\relax}
786   \def\@listv{\leftmargin\leftmarginv
787   \parsep\z@\itemsep\z@\topsep -3\p@\relax}
788   \def\@listvi{\leftmargin\leftmarginvi
789   \parsep\z@\itemsep\z@\topsep -3\p@\relax}
790 %    \end{macrocode}
791 % Only one space after colons.
792 %    \begin{macrocode}
793 \ifnum\the\sfcode`\:=2000
794   \sfcode`\:=1999
795 \fi
796 %    \end{macrocode}
797 % \subsubsection{Header}
798 % The last name and page number appear on every page, including the first.
799 %    \begin{macrocode}
800   \RequirePackage{fancyhdr}
801   \fancypagestyle{plain}{\fancyhf{}}
802   \fancypagestyle{mlastyle}{
803     \fancyhf{}
804     \rhead{\mlastyle@surname{} \thepage}
805     \renewcommand{\headrulewidth}{0pt}
806     \renewcommand{\footrulewidth}{0pt}}
807   \pagestyle{mlastyle}
808 %    \end{macrocode}
809 % \subsubsection{Notes}
810 % Footnotes should be indented .5 inches; however .56 inches is used
811 % in a crude attempt to compensate for
812 % the alignment provided by the \package{footmisc} package.  Endnotes are
813 % preferred in MLA style anyway, so this should not be a problem in most
814 % circumstances.
815 %    \begin{macrocode}
816   \RequirePackage[ragged,norule]{footmisc}
817   \def\footnotelayout{\linespread{1}\footnotesize\raggedright{} }
818   \footnotemargin\mlastyle@i
819   \advance\footnotemargin .35em
820   \skip\footins=2\baselineskip
821   \footnotesep 1.2\footnotesep
822   \addtolength\footnotesep{\baselineskip}
823   \def\footnotesize{\normalsize}
824 %    \end{macrocode}
825 % ^^A\let\footnoterule\relax
826 % Endnotes are supported, but only if the \package{endnotes} package is
827 % loaded {\em before\/} this package.
828 %    \begin{macrocode}
829   \ifx\@undefined\endnote\else
830     \def\enoteheading{\newpage\section*{\notesname}}
831     \def\enoteformat{\leavevmode\makeenmark{} }
832     \def\enotesize{\normalsize}
833   \fi
834 %    \end{macrocode}
835 % \subsubsection{Bibliography}
836 % \begin{environment}{thebibliography}
837 % The definition of |\thebibliography| varies depending on the document
838 % class.
839 %    \begin{macrocode}
840 \ifx\@undefined\url{
841   \catcode`/=13
842     \gdef\url{\bgroup\catcode`/=13
843     \let/\slash\mlastyle@url}
844     \gdef\mlastyle@url#1{#1\egroup}
845 }\fi
846 \ifx\@undefined\citet
847   \@ifundefined{chapter}
848 %    \end{macrocode}
849 % Article class.
850 %    \begin{macrocode}
851   { \def\thebibliography#1{\newpage\section*{\refname}
852       \list{\@biblabel{\@arabic\c@enumiv}}%
853         {\settowidth\labelwidth{\@biblabel{#1}}}
854         \leftmargin\labelwidth
855         \advance\leftmargin\labelsep
856         \itemindent-\leftmargin
857         \def\newblock{}
858         \usecounter{enumiv}
859         \sloppy%\sfcode`\.=\@m
860       }}
861 %    \end{macrocode}
862 % Report/book class.
863 %    \begin{macrocode}
864   { \def\thebibliography#1{\chapter*{\bibname}
865       \list{\@biblabel{\@arabic\c@enumiv}}%
866         {\settowidth\labelwidth{\@biblabel{#1}}}
867         \leftmargin\labelwidth
868         \advance\leftmargin\labelsep
869         \itemindent-\leftmargin
870         \def\newblock{}
871         \usecounter{enumiv}
872         \sloppy%\sfcode`\.=\@m
873       }}
874 %    \end{macrocode}
875 % \end{environment}
876 % \subsubsection{Experimental \package{natbib} Implementation}
877 %    \begin{macrocode}
878 \else
879   \newcommand\bibpreamble{%
880     \@ifundefined{citet}{}%
881     {\bibhang\mlastyle@i\bibsep\z@}}
882 \fi
883 %    \end{macrocode}
884 %    \begin{macrocode}
885 \fi % \ifmlastyle@format
886 %    \end{macrocode}
887 % \subsection{Style}
888 % \begin{macro}{\bibstyle@mlastyle}
889 % This first block is the beginnings of an implementation for
890 % \package{natbib}.
891 %    \begin{macrocode}
892 \def\mlastyle@notitle
893   { \ \ \ \ \unskip\unskip\unskip\unskip\unskip\unskip}
894 \newif\ifmlastyle@pages
895 \renewcommand\NAT@citetp
896 {\@ifnextchar[{\mlastyle@pagestrue\NAT@@citetp}%
897   {\mlastyle@pagesfalse\NAT@@citetp[]}}
898 \newcommand{\bibstyle@mlastyle}{%
899   \bibpunct[\mlastyle@space]{\mlastyle@brack(}{\mlastyle@brack)}%
900     {;}{a}{\mlastyle@comma}{,}
901   \gdef\mlastyle@brack##1{\ifx\NAT@date\mlastyle@notitle
902     \ifmlastyle@pages ##1\else\ifNAT@swa\ifnum
903     \NAT@ctype=0 ##1\else\unskip\fi\else\unskip\fi\fi\else ##1\fi}
904   \gdef\mlastyle@comma{\ifx\NAT@date\mlastyle@notitle\else,\fi}
905   \gdef\mlastyle@space{\ifx\NAT@date\mlastyle@notitle{}\else{} \fi}
906   \gdef\mlastyle@space{\ifx\NAT@date\mlastyle@notitle
907     \ifnum\NAT@ctype<2
908       \ifNAT@par\ifNAT@swa{} \fi\else{} \fi\fi\else{} \fi}
909   \@ifundefined{chapter}
910   {\gdef\refname{Works Cited}}
911   {\gdef\bibname{Works Cited}}}
912 %    \end{macrocode}
913 %\end{macro}
914 % \begin{macro}{\cite}
915 % \begin{macro}{\citealp}
916 % ^^A\begin{macro}{\citepage}
917 % ^^A\begin{macro}{\citequote}
918 % The following macros, combined with \file{mlastyle.bst}, provide
919 % for a bibliography in MLA style.  Note that the definition of |\cite|,
920 % |\citealp|, etc.\ vary depending on the options passed to
921 % \package{mlastyle}.
922 %
923 % \begin{macro}{\mlastyle@intcite}
924 % The original |\cite| is stored
925 % in |\mlastyle@intcite|.
926 %    \begin{macrocode}
927 \let\mlastyle@intcite\cite
928 %    \end{macrocode}
929 % \end{macro}
930 % \begin{macro}{\mlastyle@relax}
931 % This macro does nothing.  Depending on the options, either |\citeC| or
932 % |\citeM| and its ilk will utilize it.
933 %    \begin{macrocode}
934 \newcommand{\mlastyle@relax}[2][]{\unskip}
935 %    \end{macrocode}
936 % \end{macro}
937 % \subsubsection{MLA Style}
938 % \begin{macro}{\@cite}
939 % \begin{macro}{\citeM}
940 % If the \Lopt{mla} or \Lopt{style} options are used, the following is
941 % executed.
942 %    \begin{macrocode}
943 \ifmlastyle@style
944 \ifx\@undefined\citet
945   \def\@cite#1#2{(#1\if@tempswa{} #2\fi)}
946   \def\cite{\def\@cite##1##2{(##1\if@tempswa{}
947     ##2\fi)}\mlastyle@intcite}
948   \def\citealp{\def\@cite##1##2{##1\if@tempswa{}
949     ##2\fi}\mlastyle@intcite}
950   \let\citeN\citealp
951   \def\citeM{\def\@cite##1##2{ (##1\if@tempswa{}
952     ##2\fi)}\mlastyle@intcite}
953   \def\citepage{\def\@cite##1##2{\if@tempswa(##2)\fi}\mlastyle@intcite}
954   \def\citepageM{\def\@cite##1##2{\if@tempswa{}
955     (##2)\fi}\mlastyle@intcite}
956   \def\citeindirect{\def\@cite##1##2%
957   {(qtd. in ##1\if@tempswa{} ##2\fi)}\mlastyle@intcite}
958   \def\citeindirectM{\def\@cite##1##2%
959   { (qtd. in ##1\if@tempswa{} ##2\fi)}\mlastyle@intcite}
960   \let\citeC\mlastyle@relax
961 %    \end{macrocode}
962 % \end{macro}
963 % \end{macro}
964 % \iffalse
965 % Place commas in-between citations in the same |\citeyear|, |\citeyearNP|,
966 % |\citeN|, or |\shortciteN| command.
967 % Use something like |\citeN{ref1,ref2,ref3}| and |\citeN{ref4}| for a list.
968 %
969 % \@citedata and \@citedatax:
970 %  \def\@citedata{%
971 %    \@ifnextchar [{\@tempswatrue\@citedatax}%
972 %                {\@tempswafalse\@citedatax[]}%
973 %  }
974 %  \def\@citedatax[#1]#2{%
975 %  \let\@citea\@empty
976 %  \if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi%
977 %    \def\@citea{}\@cite{\@for\@citeb:=#2\do%
978 %      {\@citea\def\@citea{; }\@ifundefined% by Young
979 %        {b@\@citeb}{{\bf ?}%
980 %        \@warning{Citation `\@citeb' on page \thepage \space undefined}}%
981 %  {\csname b@\@citeb\endcsname}}}{#1}}%
982 % \fi
983 % \begin{macro}{\@citex}
984 % This is the original |\@citex| from \LaTeX{} modified to use semicolons.
985 %    \begin{macrocode}
986 \def\@citex[#1]#2{%
987   \let\@citea\@empty
988   \@cite{\@for\@citeb:=#2\do
989     {\@citea\def\@citea{;\penalty-1\ }%
990      \edef\@citeb{\expandafter\@firstofone\@citeb\@empty}%
991      \if@filesw\immediate\write\@auxout{\string\citation{\@citeb}}\fi
992      \@ifundefined{b@\@citeb}{\mbox{\reset@font\bfseries ?}%
993        \G@refundefinedtrue
994        \@latex@warning
995          {Citation `\@citeb' on page \thepage \space undefined}}%
996        {{\csname b@\@citeb\endcsname}}}}{#1}}
997 %    \end{macrocode}
998 % \end{macro}
999 % \begin{macro}{\@biblabel}
1000 % No labels in the bibliography.
1001 %    \begin{macrocode}
1002   \def\@biblabel#1{#1}
1003   \labelsep\z@
1004   \let\mlastyle@intbib\thebibliography
1005   \def\thebibliography#1{\mlastyle@intbib{#1}
1006     \itemindent-\leftmargin\def\@biblabel##1{}}
1007 %    \end{macrocode}
1008 % \end{macro}
1009 % Title either the bibliography or the references ``Works Cited,''
1010 % depending on the document class.
1011 %    \begin{macrocode}
1012   \@ifundefined{chapter}
1013   {\renewcommand\refname{Works Cited}}
1014   {\renewcommand\bibname{Works Cited}}
1015 \else
1016   \let\cite\citep
1017   \newcommand\citepage[2][]{\citeyearpar[#1]{#2}}
1018   \newcommand\citepageM[2][]{ \citetext{#2}}
1019   \newcommand\citeindirect[2][]{\citep[qtd.\ in][#1]{#2}}
1020   \newcommand\citeindirectM[2][]{ \citep[qtd.\ in][#1]{#2}}
1021   \let\citeN\citealp
1022   \let\citeC\mlastyle@relax
1023 \fi
1024 %    \end{macrocode}
1025 %
1026 % ^^A% Define the command \workscited{bib}{style}{nocite}
1027 % ^^A%\newcommand{\workscited}[3]{%
1028 % ^^A%  \ifx\chapter\@undefined%
1029 % ^^A%    \addcontentsline{toc}{chapter}{\bfseries\bibname}% report style
1030 % ^^A%  \else
1031 % ^^A%    \addcontentsline{toc}{section}{\bfseries\refname}% article style
1032 % ^^A%  \fi
1033 % ^^A%  \bibliography{#1}\bibliographystyle{#2}\nocite{#3}}
1034 % ^^A% \fi
1035 % ^^A\newcommand{\annote}[1]{\begin{list}{}{%
1036 % ^^A                \setlength{\labelwidth}{0pt}
1037 % ^^A                \addtolength{\leftmargin}{\parindent}
1038 % ^^A                \setlength{\labelsep}{0pt}}%
1039 % ^^A                \item #1 \end{list}}
1040 % \subsubsection{Plain Style}
1041 % \begin{macro}{\citeC}
1042 % This next block is used if the \Lopt{compat} or \Lopt{format} option is
1043 % set.
1044 %    \begin{macrocode}
1045 \else
1046   \ifx\@undefined\citet
1047     \newcommand{\mlastyle@cite}[2][]{\@tempswafalse\@citex[]{#2}}
1048     \newcommand{\citeC}[2][]{~\@tempswafalse\@citex[]{#2}}
1049   \else
1050     \newcommand{\mlastyle@cite}[2][]{\citep[]{#2}}
1051     \def\citeC{ \citep}
1052   \fi
1053   \let\cite\mlastyle@cite
1054   \let\citepage\mlastyle@cite
1055   \let\citeindirect\mlastyle@cite
1056   \let\citeM\mlastyle@relax
1057   \let\citepageM\mlastyle@relax
1058   \let\citeindirectM\mlastyle@relax
1059 \fi
1060 %    \end{macrocode}
1061 % \end{macro}
1062 %
1063 % ^^A\end{macro}
1064 % ^^A\end{macro}
1065 % \end{macro}
1066 % \end{macro}
1067 %    \begin{macrocode}
1068 %</package>
1069 %    \end{macrocode}
1070 %
1071 % \Finale
1072 \endinput
1073 % vim:tw=74