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