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