1 % \iffalse meta-comment
3 % Copyright (C) 2003 by Tim Pope <latex@rebelongto.us>
4 % ----------------------------------------------------
6 % This file may be distributed and/or modified under the
7 % conditions of the LaTeX Project Public License, either version 1.2
8 % of this license or (at your option) any later version.
9 % The latest version of this license is in:
11 % http://www.latex-project.org/lppl.txt
13 % and version 1.2 or later is part of all distributions of LaTeX
14 % version 1999/12/01 or later.
19 %<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
20 %<package>\ProvidesPackage{mlastyle}
21 %<package> [2003/11/09 v0.9 MLA format and documentation style]
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}"}
28 AUTHOR = "Joseph Gibaldi",
29 TITLE = "MLA Handbook for Writers of Research Papers",
37 AUTHOR = "Leslie Lamport",
38 TITLE = "{\LaTeX}: A Document Preparation System",
42 PUBLISHER = "Addison-Wesley",
46 AUTHOR = "Tobias Oetker and Hubert Partl and Irene Hyna and Elisabeth
48 TITLE = "The Not So Short Introduction to {\LaTeXe}",
53 ACCESSDATE = "1~"#nov#"~2003",
54 URL = "CTAN://info/lshort/"}
57 AUTHOR = "Oren Patashnik",
58 TITLE = "{\BibTex ing}",
61 ACCESSDATE = "1~"#nov#"~2003",
62 URL = "CTAN://biblio/bibtex/distribs/doc/btxdoc.tex"}
64 \documentclass[draft]{ltxdoc}
66 \usepackage[mla]{mlastyle}
67 \bibliographystyle{mlastyle}
68 \addtolength{\marginparwidth}{1in}
69 \addtolength{\textwidth}{-1in}
70 \addtolength{\headwidth}{-1in}
72 \IfFileExists{natbib.sty}{
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}
86 \IfFileExists{times.sty}%
87 {\newcommand{\examp}[2][]{{\let\emph\uline\fontfamily{ptm}\selectfont##2}##1}}%
88 {\newcommand{\examp}[2][]{``##2##1''}}
90 {\makeatletter\gdef\NAT@MLA#1{#1}\gdef\NAT@idxtxt
91 {\expandafter\NAT@MLA\NAT@name{} \NAT@open\NAT@num\NAT@close}}
97 \DocInput{mlastyle.dtx}
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 \~}
121 % \changes{v0.9}{2003/11/09}{Converted to \texttt{dtx} file}
122 % \changes{v0.8}{2003/10/15}{Initial version}
124 % \GetFileInfo{mlastyle.sty}
126 % \makeatletter ^^A Get |\ | out of my index, damn it!
127 % \def\DoNotIndex{\begingroup \MakePrivateLetters
131 % \index@excludelist{\ }
133 % \DoNotIndex{\ ,\:,\/,\.}
134 % \DoNotIndex{\@afterindentfalse,\@afterindenttrue}
135 % \DoNotIndex{\@arabic}
136 % \DoNotIndex{\@author}
137 % \DoNotIndex{\@auxout}
138 % \DoNotIndex{\@biblabel,\@citea,\@citeb,\@citex}
139 % \DoNotIndex{\@date}
140 % \DoNotIndex{\@empty}
142 % \DoNotIndex{\@ifnextchar,\@ifstar,\@ifundefined}
143 % \DoNotIndex{\@latex@warning}
144 % \DoNotIndex{\@listI}
145 % \DoNotIndex{\@listi,\@listii,\@listiii}
146 % \DoNotIndex{\@listiv,\@listv,\@listvi}
148 % \DoNotIndex{\@noitemerr}
149 % \DoNotIndex{\@setfontsize}
150 % \DoNotIndex{\@startsection}
151 % \DoNotIndex{\@tempswafalse}
152 % \DoNotIndex{\@title}
153 % \DoNotIndex{\@undefined}
154 % \DoNotIndex{\@xiipt}
155 % \DoNotIndex{\@width,\@height,\@depth}
156 % \DoNotIndex{\@minus,\@plus}
157 % \DoNotIndex{\DeclareOption}
158 % \DoNotIndex{\ExecuteOptions}
159 % \DoNotIndex{\G@refundefinedtrue}
160 % \DoNotIndex{\NAT@@citetp,\NAT@citetp,\NAT@ctype,\NAT@date,\NAT@sep}
161 % \DoNotIndex{\hyper@natlinkbreak,\hyper@natlinkend,\hyper@natlinkstart}
162 % \DoNotIndex{\@citec,\@extra@b@citeb,\@firstofone,\@namedef}
163 % \DoNotIndex{\NAT@@close,\NAT@@open,\NAT@alias,\NAT@all@names,\NAT@aysep}
164 % \DoNotIndex{\NAT@cite@list,\NAT@citeundefined,\NAT@cmt,\NAT@exlab}
165 % \DoNotIndex{\NAT@last@nm,\NAT@last@yr,\NAT@name,\NAT@nm,\NAT@nmfmt}
166 % \DoNotIndex{\NAT@parse,\NAT@sort@cites,\NAT@temp,\NAT@year,\NAT@yrsep}
167 % \DoNotIndex{\ifNAT@par,\ifNAT@swa,\ifNAT@full,\ifNAT@longnames}
168 % \DoNotIndex{\PackageWarning,\PackageWarningNoLine,\MessageBreak}
169 % \DoNotIndex{\ProcessOptions}
170 % \DoNotIndex{\RequirePackage}
171 % \DoNotIndex{\UL@start,\UL@stop}
172 % \DoNotIndex{\url@samestyle,\urlstyle,\UrlBigBreaks,\UrlBreakPenalty}
173 % \DoNotIndex{\do@url@hyp}
174 % \DoNotIndex{\abovedisplayskip,\abovedisplayshortskip}
175 % \DoNotIndex{\belowdisplayshortskip,\belowdisplayskip}
176 % \DoNotIndex{\addtolength}
177 % \DoNotIndex{\advance}
178 % \DoNotIndex{\baselineskip,\lineskip,\lineskiplimit}
179 % \DoNotIndex{\bibpreamble,\bibpunct,\bibsep}
180 % \DoNotIndex{\begin}
181 % \DoNotIndex{\bfseries}
182 % \DoNotIndex{\bgroup,\egroup,\begingroup,\endgroup}
183 % \DoNotIndex{\c@enumiv}
184 % \DoNotIndex{\catcode}
185 % \DoNotIndex{\centering}
186 % \DoNotIndex{\centerline}
187 % \DoNotIndex{\chapter}
188 % \DoNotIndex{\citation}
189 % \DoNotIndex{\citet,\citep}
190 % \DoNotIndex{\clearpage}
191 % \DoNotIndex{\color@begingroup,\color@endgroup}
192 % \DoNotIndex{\csname}
199 % \DoNotIndex{\endnote,\footnote}
200 % \DoNotIndex{\endcsname}
201 % \DoNotIndex{\endlist}
202 % \DoNotIndex{\exhyphenpenalty}
203 % \DoNotIndex{\expandafter}
204 % \DoNotIndex{\f@baselineskip}
205 % \DoNotIndex{\fancyhf}
206 % \DoNotIndex{\fancypagestyle}
208 % \DoNotIndex{\futurelet}
210 % \DoNotIndex{\global}
211 % \DoNotIndex{\hbox,\hfill,\hrule}
212 % \DoNotIndex{\hangindent}
213 % \DoNotIndex{\headrulewidth,\footrulewidth}
214 % \DoNotIndex{\ignorespaces}
215 % \DoNotIndex{\if@filesw}
216 % \DoNotIndex{\if@tempswa}
217 % \DoNotIndex{\if,\ifcase,\ifcat,\ifdim,\ifhmode,\ifnum,\ifx}
218 % \DoNotIndex{\ifmlastyle@bibstyle}
219 % \DoNotIndex{\ifmlastyle@format}
220 % \DoNotIndex{\ifmlastyle@pages}
221 % \DoNotIndex{\ifmlastyle@papersize}
222 % \DoNotIndex{\ifmlastyle@style}
223 % \DoNotIndex{\ifmlastyle@times}
224 % \DoNotIndex{\ifmlastyle@underline}
225 % \DoNotIndex{\immediate}
226 % \DoNotIndex{\insert,\insertpenalties}
228 % \DoNotIndex{\itemindent}
229 % \DoNotIndex{\itemsep}
231 % \DoNotIndex{\labelsep,\labelwidth}
232 % \DoNotIndex{\lastname,\citeN}
233 % \DoNotIndex{\leaders}
234 % \DoNotIndex{\leavevmode}
235 % \DoNotIndex{\leftmargin}
236 % \DoNotIndex{\leftmargini,\leftmarginii,\leftmarginiii}
237 % \DoNotIndex{\leftmarginiv,\leftmarginv,\leftmarginvi}
238 % \DoNotIndex{\let,\long}
239 % \DoNotIndex{\linespread}
241 % \DoNotIndex{\listparindent}
242 % \DoNotIndex{\mathchardef}
243 % \DoNotIndex{\makeenmark}
246 % \DoNotIndex{\mlastyle@bibstylefalse}
247 % \DoNotIndex{\mlastyle@bibstyletrue}
248 % \DoNotIndex{\mlastyle@cite}
249 % \DoNotIndex{\mlastyle@course}
250 % \DoNotIndex{\mlastyle@formatfalse}
251 % \DoNotIndex{\mlastyle@formattrue}
252 % \DoNotIndex{\mlastyle@instructor}
253 % \DoNotIndex{\mlastyle@intbib}
254 % \DoNotIndex{\mlastyle@intnfs}
255 % \DoNotIndex{\mlastyle@pagesfalse}
256 % \DoNotIndex{\mlastyle@pagestrue}
257 % \DoNotIndex{\mlastyle@papersizefalse}
258 % \DoNotIndex{\mlastyle@papersizetrue}
259 % \DoNotIndex{\mlastyle@prevsplit}
260 % \DoNotIndex{\mlastyle@qspread}
261 % \DoNotIndex{\mlastyle@sl@sh}
262 % \DoNotIndex{\mlastyle@slash}
263 % \DoNotIndex{\mlastyle@slashnext}
264 % \DoNotIndex{\mlastyle@slashx}
265 % \DoNotIndex{\mlastyle@star}
266 % \DoNotIndex{\mlastyle@stylefalse}
267 % \DoNotIndex{\mlastyle@styletrue}
268 % \DoNotIndex{\mlastyle@surname}
269 % \DoNotIndex{\mlastyle@timesfalse}
270 % \DoNotIndex{\mlastyle@timestrue}
271 % \DoNotIndex{\mlastyle@underlinefalse}
272 % \DoNotIndex{\mlastyle@underlinetrue}
273 % \DoNotIndex{\mlastyle@urldate}
274 % \DoNotIndex{\month}
275 % \DoNotIndex{\newblock}
276 % \DoNotIndex{\newcommand}
277 % \DoNotIndex{\newdimen}
278 % \DoNotIndex{\newenvironment}
279 % \DoNotIndex{\newif}
280 % \DoNotIndex{\newpage}
281 % \DoNotIndex{\noindent}
282 % \DoNotIndex{\normalsize}
283 % \DoNotIndex{\notesname}
284 % \DoNotIndex{\number}
287 % \DoNotIndex{\pagestyle}
289 % \DoNotIndex{\parindent}
290 % \DoNotIndex{\parsep}
291 % \DoNotIndex{\penalty}
292 % \DoNotIndex{\protected@xdef}
293 % \DoNotIndex{\relax}
294 % \DoNotIndex{\relpenalty}
295 % \DoNotIndex{\renewcommand}
296 % \DoNotIndex{\renewenvironment}
297 % \DoNotIndex{\rhead}
298 % \DoNotIndex{\reset@font,\selectfont}
299 % \DoNotIndex{\rule,\strut,\strutbox}
300 % \DoNotIndex{\splittopskip}
301 % \DoNotIndex{\setlength}
302 % \DoNotIndex{\settowidth}
303 % \DoNotIndex{\sfcode}
305 % \DoNotIndex{\sloppy}
306 % \DoNotIndex{\space}
307 % \DoNotIndex{\string}
309 % \DoNotIndex{\thebibliography}
310 % \DoNotIndex{\thepage}
311 % \DoNotIndex{\topsep}
312 % \DoNotIndex{\usecounter}
313 % \DoNotIndex{\unskip}
314 % \DoNotIndex{\vbox,\vskip,\vss}
316 % \DoNotIndex{\write}
319 % \DoNotIndex{\footnotesep,\footins,\@finalstrut,\@makefnmark}
320 % \DoNotIndex{\bibhang}
321 % \DoNotIndex{\evensidemargin}
322 % \DoNotIndex{\headheight}
323 % \DoNotIndex{\headsep,\footskip}
324 % \DoNotIndex{\hoffset}
325 % \DoNotIndex{\marginparwidth}
326 % \DoNotIndex{\oddsidemargin}
327 % \DoNotIndex{\raggedbottom}
328 % \DoNotIndex{\raggedright}
329 % \DoNotIndex{\textheight}
330 % \DoNotIndex{\textwidth}
331 % \DoNotIndex{\topmargin}
332 % \DoNotIndex{\voffset}
333 % \DoNotIndex{\paperheight}
334 % \DoNotIndex{\paperwidth}
335 % \DoNotIndex{\pdfpageheight}
336 % \DoNotIndex{\pdfpagewidth}
337 % \DoNotIndex{\special}
339 % \hyphenation{pre-am-ble wide-spread}
341 % \newcommand{\Lopt}[1]{\textsf {#1}}
342 % \newcommand{\file}[1]{\texttt {#1}}
343 % \newcommand{\package}[1]{\textsf {#1}}
344 % ^^A\newcommand{\Lcount}[1]{\textsl {\small#1}}
345 % ^^A\newcommand{\pstyle}[1]{\textsl {#1}}
347 % \newcommand{\OptionIndex}[1]{\index{#1\actualchar\Lopt{#1} (option)\encapchar usage}\index{options:\levelchar\Lopt{#1}}}
349 % \title{The \package{mlastyle} package\thanks{This document
350 % corresponds to \package{mlastyle}~\fileversion, dated \filedate.}}
351 % \author{Tim Pope \\ \texttt{latex@rebelongto.us}}
358 % \section{Introduction}
360 % ^^A MLA style, consisting of a set of documentation conventions, has
361 % ^^A gained widespread acceptance in the humanities.
362 % According to the {\em MLA Handbook for Writers of Research
363 % Papers}\citeC{handbook}, MLA style is a set of ``commonly agreed-on
364 % rules for documenting quotations, facts, opinions and paraphrases'' that
365 % ``is preferred by a substantial majority of scholarly journals in
366 % language and literature{\makeatletter\ifmlastyle@style
367 % .''\citeM[xvi]{handbook}\else.''\fi} \LaTeX{} is a
368 % document preparation system enjoying popularity in the scientific field.
369 % It should come as no surprise that complete, up-to-date implementations
370 % of MLA style for \LaTeX{} are in short supply. The \LaTeX{} package
371 % \package{mlastyle} aims to fill this void.
375 % A sample document follows.
377 %\documentclass[12pt]{article}
378 %\usepackage{mlastyle}
381 %\instructor{Professor Smith}
382 %\course{English 101}
384 %\title{The Sadism Inherent in Compulsory English Classes}
389 %\end{document}\end{verbatim}
390 % \subsection{Initialization Macros}
391 % The \index{heading|usage}mandatory heading is generated with
392 % \DescribeMacro{\maketitle}|\maketitle|. Use the standard macros
393 % |\author|, |\title|, and |\date| to specify the relevant information.
394 % To define the instructor and name of the course, use the aptly named
395 % \DescribeMacro{\instructor}|\instructor|\marg{instructor} and
396 % \DescribeMacro{\course}|\course|\marg{course} macros.
398 % The last name for use in the header\index{header|usage} is derived from
399 % |\author|. If this does not produce the desired result, use
400 % \DescribeMacro{\surname}|\surname|\marg{last name} to override it.
402 % MLA style recommends the DD~Mon.~YYYY format for specifying dates;
403 % \DescribeMacro{\today}|\today| has been conveniently redefined to this.
404 % However, other formats can be used as long as done so consistently
405 % throughout the document. Also note that the date in the
406 % heading\index{heading|usage} should be the due date of the assignment;
407 % students who finish assignments early would be wise to call
408 % |\date|\marg{due date}.
410 % \subsection{Environments}
411 % Three environments have been modified from standard \LaTeX to better
412 % suit MLA format. To typeset \index{poetry|usage}poetry and
413 % \index{drama|usage}drama, use the \DescribeEnv{verse}|verse|
414 % environment. Quotations\index{quotations|usage} of a single paragraph
415 % or less always use the \DescribeEnv{quote}|quote| environment. For
416 % longer passages, use the \DescribeEnv{quotation}|quotation| environment
417 % if the beginning of the passage marks the beginning of a paragraph.
418 % Otherwise, use the |quote| environment.
420 % Be sure to follow MLA guidelines when using these environments. Short
421 % quotes should be enclosed in quotation marks and included directly in
424 % \subsection{Modes of Operation}
425 % The \package{mlastyle} package has four basic modes of operations,
426 % selected with one of four mutually exclusive options. The
427 % \OptionIndex{format}\Lopt{format}
428 % option tells \package{mlastyle} to use MLA format (i.e., 1 inch margins,
429 % double-spaced, etc.). The \OptionIndex{style}\Lopt{style} option tells
430 % \package{mlastyle} to use MLA style (i.e., the format of parenthetical
431 % documentation, etc). Each of these options
432 % disables the other; to use both MLA format and MLA style, specify the
433 % \OptionIndex{mla}\Lopt{mla} option, or nothing at all.
435 % To disable both MLA style and MLA format, use the
436 % \OptionIndex{compat}\Lopt{compat} option. This differs from omitting
437 % the package entirely in that certain macros are still defined (e.g.,
438 % |\instructor|). Also, citations are handled a bit differently than in
439 % standard \LaTeX{} (see section~\ref{sec:documentation}).
441 % In addition to the above, several other options modify the behavior of
442 % \package{mlastyle}.
444 % \subsubsection{Italics vs.\ Underlining} \index{underlining|usage}
445 % \index{italics|usage}\label{sec:italics}
446 % The {\em MLA Handbook\/}\citeC{handbook} dictates that emphasis should
447 % be indicated by underlining the text\citeM[94]{handbook}. Thus, the
448 % \package{ulem} package, which underlines all emphasized
449 % text, is loaded by default in \Lopt{mla} and \Lopt{format} modes. To
450 % disable this, use the \OptionIndex{italics}\Lopt{italics} option.
451 % Conversely, if underlining is desired in \Lopt{style} or \Lopt{compat}
452 % mode, the \OptionIndex{underline}\Lopt{underline} option can be used.
454 % \subsubsection{Fonts}
455 % By default, \package{mlastyle} uses \TeX's standard Computer Modern
456 % font. Some profess\-ors\penalty500---particularly those
457 % concerned with document length---require assignments to be set in
458 % \examp[.]{Times New Roman} This can be achieved with the
459 % \OptionIndex{times}\Lopt{times} option, which simply loads the
460 % \package{times} package. This opposite of this option is
461 % \OptionIndex{cm}\Lopt{cm}, which reverts to Computer Modern.
463 % \index{works cited|usage}
464 % \subsection{Documenting Sources} \label{sec:documentation}
466 % The \package{mlastyle} package reimplements the
467 % \DescribeEnv{thebibliography}|thebibliography| environment to generate
468 % the list of works cited in MLA style. Instruction in the basic use of
469 % \LaTeX's bibliography features is beyond the scope of this document;
470 % however, the following example, which should be included just before
471 % |\end{document}|, might prove to be a useful starting point:
473 %\begin{thebibliography}{}
475 %\bibitem[Lamport]{latexdps}
477 %\newblock \emph{\LaTeX: A Document Preparation System}.
479 %\newblock Reading: Addison-Wesley, 1994.
481 %\end{thebibliography}\end{verbatim}
482 % In this example, |Lamport| is the author's last name (for use in
483 % citations) and |latexdps| is the marker used to reference it (see
484 % section~\ref{sec:parenthetical}).
486 % For information on automatically generating the list of works cited with
487 % \BibTeX, see section~\ref{sec:bibtex}.
489 % \subsubsection{Parenthetical Documentation} \label{sec:parenthetical}
490 % A simple citation can by achieved with a call to
491 % \DescribeMacro{\cite}|\cite|\oarg{pages}\marg{marker}, where
492 % marker refers to the key given to either
493 % \index{BibTeX=\BibTeX|usage}\BibTeX{} or the |\bibitem| macro (|latex|
494 % in the above example).
495 % Omit \oarg{pages} if the source has no page numbers.
496 % Multiple sources can be cited using the syntax
497 % |\cite|\oarg{pages}|{|\meta{marker
498 % 1}\texttt{,}\penalty\exhyphenpenalty\meta{marker 2}\ldots|}|; however, page
499 % numbers can currently be specified only for the last referenced source.
500 % To work around this limitation, use |\citealp|, explained below.
502 % Three additional citation commands are provided, all of which take the
503 % same arguments as |\cite|. To omit the author information from the
504 % citation, use \DescribeMacro{\citepage}|\citepage|. Indirect
505 % citations---those of the format \examp{(qtd. in Pope
506 % \pageref{sec:italics})}---can be
507 % created with \DescribeMacro{\citeindirect}|\citeindirect|. Finally, the
508 % parentheses are omitted by \DescribeMacro{\citealp}|\citealp|. This was
509 % intended for use in cross references, but it can also help in citing
510 % multiple works. The result of
511 % |(\citealp[42]{texbook}|\texttt{; }|\citealp[69]{latexdps})|
512 % would be something like \examp[.]{(Knuth 42; Lamport 69)}
514 % \subsubsection{Using {\rm \BibTeX}} \label{sec:bibtex}
515 % Coupled with \index{BibTeX=\BibTeX|usage}\BibTeX,
516 % \package{mlastyle} provides a experimental implementation of MLA
517 % documentation style. Put\SpecialUsageIndex{\bibliographystyle}
518 % |\bibliographystyle{mlastyle}| in the document preamble to load the
519 % bibliography style. Alternatively, the
520 % \OptionIndex{bibstyle}\Lopt{bibstyle} option can handle this
521 % automatically, loading a bibliography style of |mlastyle| in \Lopt{mla}
522 % and \Lopt{style} modes and a bibliography style of |plain| in
523 % \Lopt{format} and \Lopt{compat} modes.
525 % Use of \BibTeX{} is also beyond the scope of this document; consult
526 % Patashnik\citeC{btxdoc} for an introduction.
527 % Briefly, to use the following example, substitute
528 % |\bibliography|\marg{filename} for the |thebibliography| environment.
529 % Then create \meta{filename}\file{.bib} with the contents below.
530 % Generating the document entails running \file{latex} on the \file{.tex}
531 % file, \file{bibtex} on the resulting \file{.aux} file, then \file{latex}
535 % AUTHOR = "Leslie Lamport",
536 % TITLE = "{\LaTeX}: A Document Preparation System",
538 % EDITION = "Second",
539 % ADDRESS = "Reading",
540 % PUBLISHER = "Addison-Wesley",
541 % YEAR = "1994"}\end{verbatim}
543 % In \package{mlastyle}, The |KEY| field serves the additional purpose of
544 % specifying an abbreviated title. This is unnecessary in the above
545 % example. If an additional book by Leslie Lamport was included, however,
546 % the |KEY| field would allow |\cite{latexdps}| to yield \examp{(Lamport,
547 % \emph{\LaTeX\/})} instead of \examp[.]{(Lamport, \emph{\LaTeX: A
548 % Doc\-um\-ent Pre\-pa\-ra\-tion Sys\-tem\/})}
550 % Note that only entries referenced by a citation are included in the list
551 % of works cited; to force the inclusion of an entry or all entries, use
552 % |\nocite|\marg{marker} and |\nocite{*}|, respectively.
554 % \StopEventually{\PrintChanges\bibliography{mlastyle}\PrintIndex}
556 % \section{Implementation}
561 % \subsection{Options}
562 % \begin{macro}{\ifmlastyle@*}
563 % \begin{macro}{\mlastyle@*true}
564 % \begin{macro}{\mlastyle@*false}
565 % Most options are implemented by modifying a |\newif| declared for that
568 \newif\ifmlastyle@bibstyle
569 \DeclareOption{bibstyle}{\mlastyle@bibstyletrue}
570 \DeclareOption{nobibstyle}{\mlastyle@bibstylefalse}
571 \newif\ifmlastyle@papersize
572 \DeclareOption{papersize}{\mlastyle@papersizetrue}
573 \DeclareOption{nopapersize}{\mlastyle@papersizefalse}
574 \newif\ifmlastyle@underline
575 \DeclareOption{underline}{\mlastyle@underlinetrue}
576 \DeclareOption{italics}{\mlastyle@underlinefalse}
577 \newif\ifmlastyle@times
578 \DeclareOption{times}{\mlastyle@timestrue}
579 \DeclareOption{cm}{\mlastyle@timesfalse}
580 \newif\ifmlastyle@style
581 \DeclareOption{compat}{\mlastyle@stylefalse
582 \mlastyle@formatfalse
583 \mlastyle@underlinefalse}
584 \DeclareOption{mla}{\mlastyle@styletrue
586 \mlastyle@underlinetrue}
587 \newif\ifmlastyle@format
588 \DeclareOption{format}{\mlastyle@stylefalse
590 \mlastyle@underlinetrue}
591 \DeclareOption{style}{\mlastyle@styletrue
592 \mlastyle@formatfalse
593 \mlastyle@underlinefalse}
594 \DeclareOption{singlespacequotes}{
595 \def\mlastyle@qspread{\linespread{1}\selectfont\vskip\baselineskip}}
596 \DeclareOption{doublespacequotes}{\let\mlastyle@qspread\relax}
597 \ExecuteOptions{nobibstyle,nopapersize,mla,cm,doublespacequotes}
603 % If the \Lopt{papersize} option is set, add the appropriate
604 % \textsc{PostScript} special, or adjust |\pdfpagewidth| and
605 % |\pdfpageheight| if pdf\LaTeX{} is in use.
607 \ifmlastyle@papersize
608 \ifx\@undefined\pdfpagewidth
609 \special{papersize=\the\paperwidth,\the\paperheight}
611 \setlength{\pdfpagewidth}{\paperwidth}
612 \setlength{\pdfpageheight}{\paperheight}
614 \fi % \ifmlastyle@papersize
616 % \begin{macro}{\UL@onin}
617 % Load the \package{ulem} package if the \Lopt{underline} option is set.
618 % By default, \package{ulem} does multiple underlining for nested
619 % emphasis. This is changed to MLA-style behavior with the redefinition
622 \ifmlastyle@underline
623 \RequirePackage{ulem}
624 \def\UL@onin#1{\egroup\UL@stop#1\UL@start}
625 \fi % \ifmlastyle@underline
628 % Load the \package{times} package if the \Lopt{times} option is set.
631 \RequirePackage{times}
632 \fi % \ifmlastyle@times
634 % \subsection{Macros}
635 % \begin{macro}{\instructor}
636 % Define the instructor, along with an obsolete synonym.
638 \def\instructor#1{\gdef\mlastyle@instructor{#1}}
639 \let\professor\instructor
642 % \begin{macro}{\course}
643 % Define the course, along with an obsolete synonym.
645 \def\course#1{\gdef\mlastyle@course{#1}}
646 \let\classname\course
649 % \begin{macro}{\surname}
650 % Define the surname, along with an obsolete synonym.
652 \def\surname#1{\gdef\mlastyle@surname{#1}}
653 \def\mlastyle@surname{\def\ml@##1 ##2,##3@@{##2}%
654 \def\and##1 {\unskip, }\expandafter\ml@\@author, ,@@}
655 \let\lastname\surname
658 % \begin{macro}{\urldate}
659 % \begin{macro}{\theurldate}
660 % These next two respectively set and get the default access date for URLs
661 % in the works cited.
663 \def\urldate#1{\gdef\mlastyle@urldate{#1}}
664 \def\theurldate{\mlastyle@urldate}
665 \let\mlastyle@urldate\@date
670 % \begin{macro}{\bibstyle@mlastyle}
671 % This first block is the beginnings of an implementation for
672 % \package{natbib}. (Surely there is a better way to do this.)
674 \newcommand{\bibstyle@mlastyle}{%
675 \bibpunct[ ]{(}{)}{;}{a}{,}{,}
676 \@ifundefined{chapter}
677 {\gdef\refname{Works Cited}}
678 {\gdef\bibname{Works Cited}}}
681 % \begin{macro}{\NAT@citex}
682 % The year field is normally empty but contains the title field if it is
683 % needed. This is handled inconsistantly by \package{natbib}, so it is
686 \RequirePackage{natbib}
693 \if*#1*\if*#2*\def\@citea{\def\@citec{\NAT@@close}\NAT@@open}\else
694 \NAT@@open\def\@citea{\def\@citec
695 {\NAT@cmt#2\NAT@@close}}\def\@citec{#2\NAT@@close}\fi\else
696 \NAT@@open#1\ \if*#2*\def\@citec{\unskip\NAT@@close}\else
697 \def\@citec{#2\NAT@@close}\def\@citea{\def\@citec
698 {\NAT@cmt#2\NAT@@close}}\fi\fi
700 \let\NAT@nm\@empty\let\NAT@year\@empty
701 \@for\@citeb:=\NAT@cite@list\do
702 {\edef\@citeb{\expandafter\@firstofone\@citeb}%
703 \if@filesw\immediate\write\@auxout{\string\citation{\@citeb}}\fi
704 \@ifundefined{b@\@citeb\@extra@b@citeb}{\@citea%
705 {\reset@font\bfseries ?}\NAT@citeundefined
706 \PackageWarning{natbib}%
707 {Citation `\@citeb' on page \thepage \space undefined}%
709 {\let\NAT@last@nm=\NAT@nm\let\NAT@last@yr=\NAT@year
711 \ifNAT@longnames\@ifundefined{bv@\@citeb\@extra@b@citeb}{%
712 \let\NAT@name=\NAT@all@names
713 \global\@namedef{bv@\@citeb\@extra@b@citeb}{}}{}%
715 \ifNAT@full\let\NAT@nm\NAT@all@names\else
716 \let\NAT@nm\NAT@name\fi
717 \ifNAT@swa\ifcase\NAT@ctype
719 \@citea\hyper@natlinkstart{\@citeb\@extra@b@citeb}%
720 \NAT@nmfmt{\NAT@nm}\NAT@date\hyper@natlinkend
722 \ifx\NAT@last@nm\NAT@nm\NAT@yrsep
723 \ifx\NAT@last@yr\@empty\let\NAT@last@yr\relax\fi
724 \ifx\NAT@last@yr\NAT@year
726 \ifx\NAT@temp\NAT@exlab\PackageWarningNoLine{natbib}%
727 {Multiple citation on page \thepage: same authors and
728 year\MessageBreak without distinguishing extra
729 letter,\MessageBreak appears as question mark}\fi
730 \hyper@natlinkstart{\@citeb\@extra@b@citeb}\NAT@exlab
733 \ \hyper@natlinkstart{\@citeb\@extra@b@citeb}\NAT@date
736 \else\@citea\hyper@natlinkstart{\@citeb\@extra@b@citeb}%
738 \hyper@natlinkbreak{\NAT@aysep\ }{\@citeb\@extra@b@citeb}%
739 \NAT@date\hyper@natlinkend
742 \def\@citea{\NAT@sep\ }%
743 \or\@citea\hyper@natlinkstart{\@citeb\@extra@b@citeb}%
744 \NAT@nmfmt{\NAT@nm}\hyper@natlinkend
745 \def\@citea{\NAT@sep\ }%
746 \or\if*\NAT@date*\else
747 \@citea\hyper@natlinkstart{\@citeb\@extra@b@citeb}%
748 \NAT@date\hyper@natlinkend
749 \def\@citea{\NAT@sep\ }\fi
750 \or\@citea\hyper@natlinkstart{\@citeb\@extra@b@citeb}%
751 \NAT@alias\hyper@natlinkend
752 \def\@citea{\NAT@sep\ }%
754 \else\ifcase\NAT@ctype
756 \@citea\hyper@natlinkstart{\@citeb\@extra@b@citeb}%
757 \NAT@nmfmt{\NAT@nm}\hyper@natlinkend
758 \if*#1*\def\@citea{\NAT@sep\ }%
759 \if*#2*\let\@citec\@empty\else
760 \def\@citec{\ \NAT@@open#2\NAT@@close}\fi
761 \else\ \NAT@@open\def\@citea{\NAT@@close\NAT@sep\ }
762 \if*#2*\def\@citec{\NAT@@close}\else
763 \def\@citec{\ #2\NAT@@close}\fi\fi
765 \ifx\NAT@last@nm\NAT@nm\NAT@yrsep
766 \ifx\NAT@last@yr\NAT@year
768 \ifx\NAT@temp\NAT@exlab\PackageWarningNoLine{natbib}%
769 {Multiple citation on page \thepage: same authors and
770 year\MessageBreak without distinguishing extra
771 letter,\MessageBreak appears as question mark}\fi
772 \hyper@natlinkstart{\@citeb\@extra@b@citeb}\NAT@exlab
775 \ \hyper@natlinkstart{\@citeb\@extra@b@citeb}\NAT@date
778 \else\@citea\hyper@natlinkstart{\@citeb\@extra@b@citeb}%
780 \hyper@natlinkbreak{\ \NAT@@open\if*#1*\else#1\ \fi}%
781 {\@citeb\@extra@b@citeb}%
782 \NAT@date\hyper@natlinkend\fi
783 \if*#2*\def\@citec{\NAT@@close}\else
784 \def\@citec{\NAT@cmt#2\NAT@@close}\fi
785 \def\@citea{\NAT@@close\NAT@sep\ }%
787 \or\@citea\hyper@natlinkstart{\@citeb\@extra@b@citeb}%
788 \NAT@nmfmt{\NAT@nm}\hyper@natlinkend
789 \if*#2*\let\@citec\@empty\else
790 \def\@citec{ \NAT@@open#2\NAT@@close}\fi
791 \def\@citea{\NAT@sep\ }%
792 \or\if*\NAT@date*\else\@citea
794 \def\@citea{\NAT@@close\NAT@sep\ }%
795 \if*#2*\def\@citec{\NAT@@close}\else
796 \def\@citec{\NAT@cmt#2\NAT@@close}\fi
797 \hyper@natlinkstart{\@citeb\@extra@b@citeb}%
798 \NAT@date\hyper@natlinkend\fi
799 \or\@citea\hyper@natlinkstart{\@citeb\@extra@b@citeb}%
800 \NAT@alias\hyper@natlinkend
801 \def\@citea{\NAT@sep\ }%
805 \@citec\ifhmode\unskip\fi\endgroup}
808 % \begin{macro}{\NAT@parse@date}
809 % |\NAT@parse@date| fails if the date contains a control sequence, so it
812 \def\NAT@parse@date#1#2#3#4#5#6@@{%
813 \ifcat\relax#1\def\NAT@year{}\def\NAT@exlab{}\else
814 \ifcat a#1\def\NAT@year{}\def\NAT@exlab{#1}\else
815 \ifcat a#2\def\NAT@year{#1}\def\NAT@exlab{#2}\else
816 \ifcat a#3\def\NAT@year{#1#2}\def\NAT@exlab{#3}\else
817 \ifcat a#4\def\NAT@year{#1#2#3}\def\NAT@exlab{#4}\else
818 \def\NAT@year{#1#2#3#4}\def\NAT@exlab{{#5}}\fi\fi\fi\fi\fi}
821 % \begin{macro}{\cite}
822 % \begin{macro}{\citealp}
823 % ^^A\begin{macro}{\citepage}
824 % ^^A\begin{macro}{\citequote}
825 % The following macros, combined with \file{mlastyle.bst}, provide
826 % for a bibliography in MLA style. Note that the definition of |\cite|,
827 % |\citealp|, etc.\ vary depending on the options passed to
828 % \package{mlastyle}.
830 % \begin{macro}{\mlastyle@intcite}
831 % The original |\cite| is stored
832 % in |\mlastyle@intcite|.
834 %\let\mlastyle@intcite\cite
837 % \begin{macro}{\mlastyle@relax}
838 % This macro does nothing. Depending on the options, either |\citeC| or
839 % |\citeM| and its ilk will utilize it.
841 \newcommand{\mlastyle@relax}[2][]{\unskip}
844 % \subsubsection{MLA Style}
845 % \begin{macro}{\citeM}
846 % If the \Lopt{mla} or \Lopt{style} options are used, the following is
851 % If the \Lopt{bibstyle} option is set, specify the bibliography style.
854 \bibliographystyle{mlastyle}
860 \let\mlastyle@citequeue\@empty
861 \def\mlastyle@cite#1#2#3{\csname#1\endcsname[#2]{#3}}
862 \newcommand\citeflush{\ifhmode\unskip\fi
863 \ifx\mlastyle@citequeue\@empty\else\ \let\@citea\relax
864 \citetext{\@for\@citeb:=\mlastyle@citequeue\do{\@citea
865 \expandafter\mlastyle@cite\@citeb\def\@citea{\NAT@sep\ }}}%
866 \global\let\mlastyle@citequeue\@empty\fi}
867 \newcommand\mlastyle@citeadd[3]{\ifx\mlastyle@citequeue\@empty
868 \xdef\mlastyle@citequeue{{#1}{#2}{#3}}\else
869 \xdef\mlastyle@citequeue{\mlastyle@citequeue,%
871 \newcommand\citeadd[2][]{\mlastyle@citeadd{citealp}{#1}{#2}}
872 \newcommand\citea{\@ifstar
873 {\let\mlastyle@star*\mlastyle@citea}
874 {\let\mlastyle@star\@empty\mlastyle@citea}}
875 \newcommand\mlastyle@citea[2][]{\expandafter\citeauthor
876 \mlastyle@star{#2}\mlastyle@citeadd{citeyear}{#1}{#2}}
877 \newcommand\Citea{\@ifstar
878 {\let\mlastyle@star*\mlastyle@Citea}
879 {\let\mlastyle@star\@empty\mlastyle@Citea}}
880 \newcommand\mlastyle@Citea[2][]{\expandafter\Citeauthor
881 \mlastyle@star{#2}\mlastyle@citeadd{citeyear}{#1}{#2}}
882 \newcommand\citepage[2][]{\citeyearpar[#1]{#2}}
883 \newcommand\citepageM[2][]{\unskip\ \citeyearpar[#1]{#2}}
884 \newcommand\citeindirect[2][]{\citep[qtd.\ in][#1]{#2}}
885 \newcommand\citeindirectM[2][]{\unskip{} \citep[qtd.\ in][#1]{#2}}
887 \let\citeC\mlastyle@relax
889 % \subsubsection{Plain Style}
890 % \begin{macro}{\citeC}
891 % This next block is used if the \Lopt{compat} or \Lopt{format} option is
896 % If the \Lopt{bibstyle} option is set, specify the bibliography style.
899 \bibliographystyle{plain}
901 \ifx\@undefined\citet
902 \newcommand{\mlastyle@cite}[2][]{\@tempswafalse\@citex[]{#2}}
903 \newcommand{\citeC}[2][]{~\@tempswafalse\@citex[]{#2}}
905 \newcommand{\mlastyle@cite}[2][]{\citep[]{#2}}
908 \let\cite\mlastyle@cite
909 \let\citepage\mlastyle@cite
910 \let\citeindirect\mlastyle@cite
911 \let\citeM\mlastyle@relax
912 \let\citepageM\mlastyle@relax
913 \let\citeindirectM\mlastyle@relax
922 % \subsection{Formatting}
923 % \begin{macro}{\urlstyle@mlastyle}
924 % This first bit is always done, even if formatting is disabled.
927 \def\url@mlastyle{\url@samestyle
928 \mathchardef\UrlBreakPenalty 0
929 \relpenalty\UrlBreakPenalty
930 \def\UrlBigBreaks{\do\/\do@url@hyp}
934 % \begin{macro}{\mlastyle@i}
935 % This is the standard MLA format indent.
937 \newdimen\mlastyle@i \mlastyle@i=.5in
940 % Everything else is done only if the \Lopt{mla} or \Lopt{format} option
945 % \subsubsection{Macros}
946 % \begin{macro}{\maketitle}
947 % \begin{macro}{\and}
948 % |\maketitle| generates a heading in MLA format.
950 \renewcommand{\maketitle}{%
954 \@ifundefined{mlastyle@instructor}{}{\mlastyle@instructor}\par
955 \@ifundefined{mlastyle@course}{}{\mlastyle@course}\par
956 \@date\end{flushleft}
957 \begin{center}\@title\end{center}\par
963 % \begin{macro}{\today}
964 % |\today| is redefined to DD~Mon.~YYYY format.
966 \def\today{\number\day~\ifcase\month\or
967 Jan.\or Feb.\or Mar.\or Apr.\or May\or June\or July\or
968 Aug.\or Sept.\or Oct.\or Nov.\or Dec.\fi\ \number\year}
971 % \begin{macro}{\slash}
972 % No penalty for |\slash|.
973 % ^^A\let\mlastyle@sl@sh=/
975 \edef\slash{/\penalty\z@}
977 % ^^A \def\mlastyle@slash{/\futurelet\mlastyle@slashnext\mlastyle@slashx}
978 % ^^A \def\mlastyle@slashx{\ifx\mlastyle@slashnext/\else
979 % ^^A \penalty\exhyphenpenalty\fi}
981 % \begin{macro}{\@makecaption}
982 % |\@makecaption| should left align its contents.
984 \long\def\@makecaption#1#2{\noindent #1\par\noindent #2\strut\par}
987 % \begin{macro}{\section}
988 % \begin{macro}{\subsection}
989 % \begin{macro}{\subsubsection}
990 % Sections are formatted by centering the section name and beginning a new
991 % page. Subsections simply center the section name.
993 \renewcommand{\section}{\clearpage\@startsection{section}{1}{\z@
994 }{0pt}{1sp}{\centering}}
995 \renewcommand{\subsection}{\@startsection{subsection}{2}{\z@
996 }{0pt}{1sp}{\centering}}
997 \renewcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@
998 }{0pt}{1sp}{\noindent}}
1000 % ^^A\let\mlastyle@vfont\verbatim@font
1001 % ^^A\def\verbatim@font{\mlastyle@qspread\mlastyle@vfont}
1005 % \subsubsection{Environments}
1006 % ^^A%\newenvironment{blocks}{\begin{quote} \linespread{1} \selectfont}{\end{quote} \linespread{2} \small \selectfont}
1007 % ^^A%\newenvironment{blockm}{\begin{quotation} \linespread{1} \selectfont}{\end{quotation} \linespread{2} \selectfont}
1008 % \begin{environment}{verse}
1009 % Indented 1 inch, with an additional .25 inch hanging indent.
1011 \renewenvironment{verse}{\list{}{\mlastyle@qspread
1012 \advance\leftmargin1.5\mlastyle@i\itemindent-.5\mlastyle@i
1013 \listparindent\itemindent}\item\relax}{\endlist}
1016 % \begin{environment}{quotation}
1017 % Indented 1 inch, with a paragraph indent of an additional .25 inches.
1019 \renewenvironment{quotation}{\list{}{\mlastyle@qspread
1020 \advance\leftmargin\mlastyle@i\itemindent.5\mlastyle@i
1021 \listparindent\itemindent}\item\relax}{\endlist}
1024 % \begin{environment}{quote}
1025 % Identical to the |quotation| environment, except the first paragraph is not
1028 \renewenvironment{quote}{\list{}{\mlastyle@qspread
1029 \advance\leftmargin\mlastyle@i
1030 \listparindent.5\mlastyle@i}\item\relax}{\endlist}
1033 % \begin{environment}{workscited}
1034 % \begin{macro}{\bibent}
1035 % Works cited environment, for compatibility with \package{mla-paper}.
1037 \newenvironment{workscited}%
1038 {\newpage{\centerline{Works Cited}}}{\newpage}
1039 \newcommand{\bibent}{\noindent\hangindent\mlastyle@i}
1043 % \subsubsection{Margins}
1044 % Top and bottom margins are 1 inch each. The header is flush with the
1045 % right margin, .5 inches from the top of the page.
1047 \addtolength{\voffset}{-.5in}
1048 \setlength{\textheight}{\paperheight}
1049 \addtolength{\textheight}{-2in}
1050 \setlength{\topmargin}{0in}
1051 \setlength\headheight\f@baselineskip
1052 \setlength{\headsep}{.5in}
1053 \addtolength{\headsep}{-\headheight}
1054 \setlength{\footskip}{0.25in}
1057 % Left and right margins in MLA format are each 1 inch wide.
1059 \addtolength{\hoffset}{-.5in}
1060 \setlength{\textwidth}{\paperwidth}
1061 \addtolength{\textwidth}{-2in}
1062 \setlength{\oddsidemargin}{.5in}
1063 \setlength{\evensidemargin}{.5in}
1064 \setlength{\marginparwidth}{.5in}
1066 % \subsubsection{Paragraphs}
1067 % Paragraphs should be left justified, with the first line indented .5
1071 \setlength\parindent\mlastyle@i
1073 % MLA format specifies that all paragraphs should be indented, even those
1074 % beginning a new section. This snippet from \package{indentfirst} changes
1075 % \LaTeX{} to meet that requirement.
1077 \let\@afterindentfalse\@afterindenttrue
1080 % Double space {\em everywhere}. In a 12pt font, the default
1081 % |\baselineskip| is changed from 14.5pt to 14.4pt.
1082 % ^^A\RequirePackage{doublespace}
1085 \ifdim\baselineskip=14.5pt
1086 \renewcommand\normalsize{%
1087 \@setfontsize\normalsize\@xiipt{14.4}%
1088 \abovedisplayskip 12\p@ \@plus3\p@ \@minus7\p@
1089 \abovedisplayshortskip \z@ \@plus3\p@
1090 \belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
1091 \belowdisplayskip \abovedisplayskip
1092 \let\@listi\@listI}\normalsize
1095 \lineskiplimit=.5\baselineskip
1096 \lineskip=\lineskiplimit
1097 \leftmargini\parindent
1098 \def\@listi{\leftmargin\leftmargini
1099 \parsep\z@\itemsep\z@\topsep -3\p@\relax}
1102 \def\@listii{\leftmargin\leftmarginii
1103 \parsep\z@\itemsep\z@\topsep -3\p@\relax}
1104 \def\@listiii{\leftmargin\leftmarginiii
1105 \parsep\z@\itemsep\z@\topsep -3\p@\relax}
1106 \def\@listiv{\leftmargin\leftmarginiv
1107 \parsep\z@\itemsep\z@\topsep -3\p@\relax}
1108 \def\@listv{\leftmargin\leftmarginv
1109 \parsep\z@\itemsep\z@\topsep -3\p@\relax}
1110 \def\@listvi{\leftmargin\leftmarginvi
1111 \parsep\z@\itemsep\z@\topsep -3\p@\relax}
1113 % \begin{macro}{\nonfrenchspacing}
1114 % Only one space after colons, unless someone else has already tinkered
1115 % with its space factor.
1117 \let\mlastyle@intnfs\nonfrenchspacing
1118 \def\nonfrenchspacing{\mlastyle@intnfs
1119 \ifnum\the\sfcode`\:=2000\sfcode`\:=1999\fi}
1120 \ifnum\the\sfcode`\:=2000\sfcode`\:=1999\fi
1123 % \subsubsection{Header}
1124 % The last name and page number appear on every page, including the first.
1126 \RequirePackage{fancyhdr}
1127 \fancypagestyle{plain}{\fancyhf{}}
1128 \fancypagestyle{mlastyle}{
1130 \rhead{\mlastyle@surname{} \thepage}
1131 \renewcommand{\headrulewidth}{0pt}
1132 \renewcommand{\footrulewidth}{0pt}}
1133 \pagestyle{mlastyle}
1135 % \subsubsection{Notes}
1136 % \begin{macro}{\@footnotetext}
1137 % \begin{macro}{\footnoterule}
1138 % This code is terrible, but seems to work in practice. Suggestions
1142 \ifnum\mlastyle@prevsplit=\z@\else
1143 \vbox to \z@{\linespread{1}\normalsize\vss\vbox{\noindent
1144 \leaders\hrule\@height 3\p@\@depth-2.6\p@
1146 \hfill\strut}\kern\z@}%
1148 \xdef\mlastyle@prevsplit{\the\insertpenalties}}
1149 \def\mlastyle@prevsplit{0}
1150 \skip\footins=\f@baselineskip\relax
1151 \skip\footins=2.15\skip\footins
1152 \long\def\@footnotetext#1{\insert\footins{%
1153 \linespread{1}\normalsize
1154 \splittopskip1.7\baselineskip
1156 \parindent\mlastyle@i
1157 \rule\z@{1.7\baselineskip}
1159 \ignorespaces#1\@finalstrut\strutbox
1164 % \begin{macro}{\enoteformat}
1165 % \begin{macro}{\enoteheading}
1166 % \begin{macro}{\enotesize}
1167 % Endnotes are supported, but only if the \package{endnotes} package is
1168 % loaded {\em before\/} this package.
1170 \ifx\@undefined\endnote
1171 \let\note\footnote\else
1172 \def\enoteheading{\newpage\section*{\notesname}}
1173 \def\enoteformat{\leavevmode\makeenmark{} }
1174 \def\enotesize{\normalsize}
1181 % \subsubsection{Bibliography}
1182 % \begin{macro}{\url@mlastyle}
1183 % |\url| is needed to format urls in the bibliography.
1188 % ^^A\ifx\@undefined\url{
1190 % ^^A \gdef\url{\bgroup\catcode`/=13
1191 % ^^A \let/\slash\mlastyle@url}
1192 % ^^A \gdef\mlastyle@url#1{#1\egroup}}
1194 % \begin{environment}{thebibliography}
1195 % The definition of |thebibliography| varies depending on the document
1198 \ifx\@undefined\citet
1199 \renewenvironment\thebibliography#1{\clearpage
1200 \@ifundefined{chapter}
1201 {\section*{\refname}}
1202 {\chapter*{\bibname}}
1203 \list{\@biblabel{\@arabic\c@enumiv}}%
1204 {\settowidth\labelwidth{\@biblabel{#1}}}
1205 \leftmargin\labelwidth
1206 \advance\leftmargin\labelsep
1207 \itemindent-\leftmargin
1208 \let\newblock\@empty
1214 {\@latex@warning{Empty `thebibliography' environment}}%
1218 % If the \package{natbib} package is loaded, the following is executed
1222 \bibhang\mlastyle@i\bibsep\z@
1225 % ^^A \newcommand\bibpreamble{%
1226 % ^^A \@ifundefined{citet}{}%
1227 % ^^A {\bibhang\mlastyle@i\bibsep\z@}}
1229 \fi % \ifmlastyle@format