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{\lineskip=.1\baselineskip%
596 \lineskiplimit=\lineskip\linespread{1}\selectfont\vskip\baselineskip}}
597 \DeclareOption{doublespacequotes}{\let\mlastyle@qspread\relax}
598 \ExecuteOptions{nobibstyle,nopapersize,mla,cm,doublespacequotes}
604 % If the \Lopt{papersize} option is set, add the appropriate
605 % \textsc{PostScript} special, or adjust |\pdfpagewidth| and
606 % |\pdfpageheight| if pdf\LaTeX{} is in use.
608 \ifmlastyle@papersize
609 \ifx\@undefined\pdfpagewidth
610 \special{papersize=\the\paperwidth,\the\paperheight}
612 \setlength{\pdfpagewidth}{\paperwidth}
613 \setlength{\pdfpageheight}{\paperheight}
615 \fi % \ifmlastyle@papersize
617 % \begin{macro}{\UL@onin}
618 % Load the \package{ulem} package if the \Lopt{underline} option is set.
619 % By default, \package{ulem} does multiple underlining for nested
620 % emphasis. This is changed to MLA-style behavior with the redefinition
623 \ifmlastyle@underline
624 \RequirePackage{ulem}
625 \def\UL@onin#1{\egroup\UL@stop#1\UL@start}
626 \fi % \ifmlastyle@underline
629 % Load the \package{times} package if the \Lopt{times} option is set.
632 \RequirePackage{times}
633 \fi % \ifmlastyle@times
635 % \subsection{Macros}
636 % \begin{macro}{\instructor}
637 % Define the instructor, along with an obsolete synonym.
639 \def\instructor#1{\gdef\mlastyle@instructor{#1}}
640 \let\professor\instructor
643 % \begin{macro}{\course}
644 % Define the course, along with an obsolete synonym.
646 \def\course#1{\gdef\mlastyle@course{#1}}
647 \let\classname\course
650 % \begin{macro}{\surname}
651 % Define the surname, along with an obsolete synonym.
653 \def\surname#1{\gdef\mlastyle@surname{#1}}
654 \def\mlastyle@surname{\def\ml@##1 ##2,##3@@{##2}%
655 \def\and##1 {\unskip, }\expandafter\ml@\@author, ,@@}
656 \let\lastname\surname
659 % \begin{macro}{\urldate}
660 % \begin{macro}{\theurldate}
661 % These next two respectively set and get the default access date for URLs
662 % in the works cited.
664 \def\urldate#1{\gdef\mlastyle@urldate{#1}}
665 \def\theurldate{\mlastyle@urldate}
666 \let\mlastyle@urldate\@date
671 % \begin{macro}{\bibstyle@mlastyle}
672 % This first block is the beginnings of an implementation for
673 % \package{natbib}. (Surely there is a better way to do this.)
675 \newcommand{\bibstyle@mlastyle}{%
676 \bibpunct[ ]{(}{)}{;}{a}{,}{,}
677 \@ifundefined{chapter}
678 {\gdef\refname{\newpage Works Cited}}
679 {\gdef\bibname{Works Cited}}}
682 % \begin{macro}{\NAT@citex}
683 % The year field is normally empty but contains the title field if it is
684 % needed. This is handled inconsistantly by \package{natbib}, so it is
687 \RequirePackage{natbib}
694 \if*#1*\if*#2*\def\@citea{\def\@citec{\NAT@@close}\NAT@@open}\else
695 \NAT@@open\def\@citea{\def\@citec
696 {\NAT@cmt#2\NAT@@close}}\def\@citec{#2\NAT@@close}\fi\else
697 \NAT@@open#1\ \if*#2*\def\@citec{\unskip\NAT@@close}\else
698 \def\@citec{#2\NAT@@close}\def\@citea{\def\@citec
699 {\NAT@cmt#2\NAT@@close}}\fi\fi
701 \let\NAT@nm\@empty\let\NAT@year\@empty
702 \@for\@citeb:=\NAT@cite@list\do
703 {\edef\@citeb{\expandafter\@firstofone\@citeb}%
704 \if@filesw\immediate\write\@auxout{\string\citation{\@citeb}}\fi
705 \@ifundefined{b@\@citeb\@extra@b@citeb}{\@citea%
706 {\reset@font\bfseries ?}\NAT@citeundefined
707 \PackageWarning{natbib}%
708 {Citation `\@citeb' on page \thepage \space undefined}%
710 {\let\NAT@last@nm=\NAT@nm\let\NAT@last@yr=\NAT@year
712 \ifNAT@longnames\@ifundefined{bv@\@citeb\@extra@b@citeb}{%
713 \let\NAT@name=\NAT@all@names
714 \global\@namedef{bv@\@citeb\@extra@b@citeb}{}}{}%
716 \ifNAT@full\let\NAT@nm\NAT@all@names\else
717 \let\NAT@nm\NAT@name\fi
718 \ifNAT@swa\ifcase\NAT@ctype
720 \@citea\hyper@natlinkstart{\@citeb\@extra@b@citeb}%
721 \NAT@nmfmt{\NAT@nm}\NAT@date\hyper@natlinkend
723 \ifx\NAT@last@nm\NAT@nm\NAT@yrsep
724 \ifx\NAT@last@yr\@empty\let\NAT@last@yr\relax\fi
725 \ifx\NAT@last@yr\NAT@year
727 \ifx\NAT@temp\NAT@exlab\PackageWarningNoLine{natbib}%
728 {Multiple citation on page \thepage: same authors and
729 year\MessageBreak without distinguishing extra
730 letter,\MessageBreak appears as question mark}\fi
731 \hyper@natlinkstart{\@citeb\@extra@b@citeb}\NAT@exlab
734 \ \hyper@natlinkstart{\@citeb\@extra@b@citeb}\NAT@date
737 \else\@citea\hyper@natlinkstart{\@citeb\@extra@b@citeb}%
739 \hyper@natlinkbreak{\NAT@aysep\ }{\@citeb\@extra@b@citeb}%
740 \NAT@date\hyper@natlinkend
743 \def\@citea{\NAT@sep\ }%
744 \or\@citea\hyper@natlinkstart{\@citeb\@extra@b@citeb}%
745 \NAT@nmfmt{\NAT@nm}\hyper@natlinkend
746 \def\@citea{\NAT@sep\ }%
747 \or\if*\NAT@date*\else
748 \@citea\hyper@natlinkstart{\@citeb\@extra@b@citeb}%
749 \NAT@date\hyper@natlinkend
750 \def\@citea{\NAT@sep\ }\fi
751 \or\@citea\hyper@natlinkstart{\@citeb\@extra@b@citeb}%
752 \NAT@alias\hyper@natlinkend
753 \def\@citea{\NAT@sep\ }%
755 \else\ifcase\NAT@ctype
757 \@citea\hyper@natlinkstart{\@citeb\@extra@b@citeb}%
758 \NAT@nmfmt{\NAT@nm}\hyper@natlinkend
759 \if*#1*\def\@citea{\NAT@sep\ }%
760 \if*#2*\let\@citec\@empty\else
761 \def\@citec{\ \NAT@@open#2\NAT@@close}\fi
762 \else\ \NAT@@open\def\@citea{\NAT@@close\NAT@sep\ }
763 \if*#2*\def\@citec{\NAT@@close}\else
764 \def\@citec{\ #2\NAT@@close}\fi\fi
766 \ifx\NAT@last@nm\NAT@nm\NAT@yrsep
767 \ifx\NAT@last@yr\NAT@year
769 \ifx\NAT@temp\NAT@exlab\PackageWarningNoLine{natbib}%
770 {Multiple citation on page \thepage: same authors and
771 year\MessageBreak without distinguishing extra
772 letter,\MessageBreak appears as question mark}\fi
773 \hyper@natlinkstart{\@citeb\@extra@b@citeb}\NAT@exlab
776 \ \hyper@natlinkstart{\@citeb\@extra@b@citeb}\NAT@date
779 \else\@citea\hyper@natlinkstart{\@citeb\@extra@b@citeb}%
781 \hyper@natlinkbreak{\ \NAT@@open\if*#1*\else#1\ \fi}%
782 {\@citeb\@extra@b@citeb}%
783 \NAT@date\hyper@natlinkend\fi
784 \if*#2*\def\@citec{\NAT@@close}\else
785 \def\@citec{\NAT@cmt#2\NAT@@close}\fi
786 \def\@citea{\NAT@@close\NAT@sep\ }%
788 \or\@citea\hyper@natlinkstart{\@citeb\@extra@b@citeb}%
789 \NAT@nmfmt{\NAT@nm}\hyper@natlinkend
790 \if*#2*\let\@citec\@empty\else
791 \def\@citec{ \NAT@@open#2\NAT@@close}\fi
792 \def\@citea{\NAT@sep\ }%
793 \or\if*\NAT@date*\else\@citea
795 \def\@citea{\NAT@@close\NAT@sep\ }%
796 \if*#2*\def\@citec{\NAT@@close}\else
797 \def\@citec{\NAT@cmt#2\NAT@@close}\fi
798 \hyper@natlinkstart{\@citeb\@extra@b@citeb}%
799 \NAT@date\hyper@natlinkend\fi
800 \or\@citea\hyper@natlinkstart{\@citeb\@extra@b@citeb}%
801 \NAT@alias\hyper@natlinkend
802 \def\@citea{\NAT@sep\ }%
806 \@citec\ifhmode\unskip\fi\endgroup}
809 % \begin{macro}{\NAT@parse@date}
810 % |\NAT@parse@date| fails if the date contains a control sequence, so it
813 \def\NAT@parse@date#1#2#3#4#5#6@@{%
814 \ifcat\relax#1\def\NAT@year{}\def\NAT@exlab{}\else
815 \ifcat a#1\def\NAT@year{}\def\NAT@exlab{#1}\else
816 \ifcat a#2\def\NAT@year{#1}\def\NAT@exlab{#2}\else
817 \ifcat a#3\def\NAT@year{#1#2}\def\NAT@exlab{#3}\else
818 \ifcat a#4\def\NAT@year{#1#2#3}\def\NAT@exlab{#4}\else
819 \def\NAT@year{#1#2#3#4}\def\NAT@exlab{{#5}}\fi\fi\fi\fi\fi}
822 % \begin{macro}{\cite}
823 % \begin{macro}{\citealp}
824 % ^^A\begin{macro}{\citepage}
825 % ^^A\begin{macro}{\citequote}
826 % The following macros, combined with \file{mlastyle.bst}, provide
827 % for a bibliography in MLA style. Note that the definition of |\cite|,
828 % |\citealp|, etc.\ vary depending on the options passed to
829 % \package{mlastyle}.
831 % \begin{macro}{\mlastyle@intcite}
832 % The original |\cite| is stored
833 % in |\mlastyle@intcite|.
835 %\let\mlastyle@intcite\cite
838 % \begin{macro}{\mlastyle@relax}
839 % This macro does nothing. Depending on the options, either |\citeC| or
840 % |\citeM| and its ilk will utilize it.
842 \newcommand{\mlastyle@relax}[2][]{\unskip}
845 % \subsubsection{MLA Style}
846 % \begin{macro}{\citeM}
847 % If the \Lopt{mla} or \Lopt{style} options are used, the following is
852 % If the \Lopt{bibstyle} option is set, specify the bibliography style.
855 \bibliographystyle{mlastyle}
861 \let\mlastyle@citequeue\@empty
862 \def\mlastyle@cite#1#2#3{\csname#1\endcsname[#2]{#3}}
863 \newcommand\citeflush{\ifhmode\unskip\fi
864 \ifx\mlastyle@citequeue\@empty\else\ \let\@citea\relax
865 \citetext{\@for\@citeb:=\mlastyle@citequeue\do{\@citea
866 \expandafter\mlastyle@cite\@citeb\def\@citea{\NAT@sep\ }}}%
867 \global\let\mlastyle@citequeue\@empty\fi}
868 \newcommand\mlastyle@citeadd[3]{\ifx\mlastyle@citequeue\@empty
869 \xdef\mlastyle@citequeue{{#1}{#2}{#3}}\else
870 \xdef\mlastyle@citequeue{\mlastyle@citequeue,%
872 \newcommand\citeadd[2][]{\mlastyle@citeadd{citealp}{#1}{#2}}
873 \newcommand\citea{\@ifstar
874 {\let\mlastyle@star*\mlastyle@citea}
875 {\let\mlastyle@star\@empty\mlastyle@citea}}
876 \newcommand\mlastyle@citea[2][]{\expandafter\citeauthor
877 \mlastyle@star{#2}\mlastyle@citeadd{citeyear}{#1}{#2}}
878 \newcommand\Citea{\@ifstar
879 {\let\mlastyle@star*\mlastyle@Citea}
880 {\let\mlastyle@star\@empty\mlastyle@Citea}}
881 \newcommand\mlastyle@Citea[2][]{\expandafter\Citeauthor
882 \mlastyle@star{#2}\mlastyle@citeadd{citeyear}{#1}{#2}}
883 \newcommand\citepage[2][]{\citeyearpar[#1]{#2}}
884 \newcommand\citepageM[2][]{\unskip\ \citeyearpar[#1]{#2}}
885 \newcommand\citeindirect[2][]{\citep[qtd.\ in][#1]{#2}}
886 \newcommand\citeindirectM[2][]{\unskip{} \citep[qtd.\ in][#1]{#2}}
888 \let\citeC\mlastyle@relax
890 % \subsubsection{Plain Style}
891 % \begin{macro}{\citeC}
892 % This next block is used if the \Lopt{compat} or \Lopt{format} option is
897 % If the \Lopt{bibstyle} option is set, specify the bibliography style.
900 \bibliographystyle{plain}
902 \ifx\@undefined\citet
903 \newcommand{\mlastyle@cite}[2][]{\@tempswafalse\@citex[]{#2}}
904 \newcommand{\citeC}[2][]{~\@tempswafalse\@citex[]{#2}}
906 \newcommand{\mlastyle@cite}[2][]{\citep[]{#2}}
909 \let\cite\mlastyle@cite
910 \let\citepage\mlastyle@cite
911 \let\citeindirect\mlastyle@cite
912 \let\citeM\mlastyle@relax
913 \let\citepageM\mlastyle@relax
914 \let\citeindirectM\mlastyle@relax
923 % \subsection{Formatting}
924 % \begin{macro}{\urlstyle@mlastyle}
925 % This first bit is always done, even if formatting is disabled.
928 \def\url@mlastyle{\url@samestyle
929 \mathchardef\UrlBreakPenalty 0
930 \relpenalty\UrlBreakPenalty
931 \def\UrlBigBreaks{\do\/\do@url@hyp}
935 % \begin{macro}{\mlastyle@i}
936 % This is the standard MLA format indent.
938 \newdimen\mlastyle@i \mlastyle@i=.5in
941 % Everything else is done only if the \Lopt{mla} or \Lopt{format} option
946 % \subsubsection{Macros}
947 % \begin{macro}{\maketitle}
948 % \begin{macro}{\and}
949 % |\maketitle| generates a heading in MLA format.
951 \renewcommand{\maketitle}{%
955 \@ifundefined{mlastyle@instructor}{}{\mlastyle@instructor}\par
956 \@ifundefined{mlastyle@course}{}{\mlastyle@course}\par
957 \@date\end{flushleft}
958 \begin{center}\@title\end{center}\par
964 % \begin{macro}{\today}
965 % |\today| is redefined to DD~Mon.~YYYY format.
967 \def\today{\number\day~\ifcase\month\or
968 Jan.\or Feb.\or Mar.\or Apr.\or May\or June\or July\or
969 Aug.\or Sept.\or Oct.\or Nov.\or Dec.\fi\ \number\year}
972 % \begin{macro}{\slash}
973 % No penalty for |\slash|.
974 % ^^A\let\mlastyle@sl@sh=/
976 \edef\slash{/\penalty\z@}
978 % ^^A \def\mlastyle@slash{/\futurelet\mlastyle@slashnext\mlastyle@slashx}
979 % ^^A \def\mlastyle@slashx{\ifx\mlastyle@slashnext/\else
980 % ^^A \penalty\exhyphenpenalty\fi}
982 % \begin{macro}{\@makecaption}
983 % |\@makecaption| should left align its contents.
985 \long\def\@makecaption#1#2{\noindent #1\par\noindent #2\strut\par}
988 % \begin{macro}{\section}
989 % \begin{macro}{\subsection}
990 % \begin{macro}{\subsubsection}
991 % Sections are formatted by centering the section name and beginning a new
992 % page. Subsections simply center the section name.
994 \renewcommand{\section}{\@startsection{section}{1}{\z@
995 }{0pt}{1sp}{\centering}}
996 \renewcommand{\subsection}{\@startsection{subsection}{2}{\z@
997 }{0pt}{1sp}{\noindent}}
998 \renewcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@
999 }{0pt}{1sp}{\noindent}}
1001 % ^^A\let\mlastyle@vfont\verbatim@font
1002 % ^^A\def\verbatim@font{\mlastyle@qspread\mlastyle@vfont}
1006 % \subsubsection{Environments}
1007 % ^^A%\newenvironment{blocks}{\begin{quote} \linespread{1} \selectfont}{\end{quote} \linespread{2} \small \selectfont}
1008 % ^^A%\newenvironment{blockm}{\begin{quotation} \linespread{1} \selectfont}{\end{quotation} \linespread{2} \selectfont}
1009 % \begin{environment}{verse}
1010 % Indented 1 inch, with an additional .25 inch hanging indent.
1012 \renewenvironment{verse}{\list{}{\mlastyle@qspread
1013 \advance\leftmargin1.5\mlastyle@i\itemindent-.5\mlastyle@i
1014 \listparindent\itemindent}\item\relax}{\endlist}
1017 % \begin{environment}{quotation}
1018 % Indented 1 inch, with a paragraph indent of an additional .25 inches.
1020 \renewenvironment{quotation}{\list{}{\mlastyle@qspread
1021 \advance\leftmargin\mlastyle@i\itemindent.5\mlastyle@i
1022 \listparindent\itemindent}\item\relax}{\endlist}
1025 % \begin{environment}{quote}
1026 % Identical to the |quotation| environment, except the first paragraph is not
1029 \renewenvironment{quote}{\list{}{\mlastyle@qspread
1030 \advance\leftmargin\mlastyle@i
1031 \listparindent.5\mlastyle@i}\item\relax}{\endlist}
1034 % \begin{environment}{workscited}
1035 % \begin{macro}{\bibent}
1036 % Works cited environment, for compatibility with \package{mla-paper}.
1038 \newenvironment{workscited}%
1039 {\newpage{\centerline{Works Cited}}}{\newpage}
1040 \newcommand{\bibent}{\noindent\hangindent\mlastyle@i}
1044 % \subsubsection{Margins}
1045 % Top and bottom margins are 1 inch each. The header is flush with the
1046 % right margin, .5 inches from the top of the page.
1048 \addtolength{\voffset}{-.5in}
1049 \setlength{\textheight}{\paperheight}
1050 \addtolength{\textheight}{-2in}
1051 \setlength{\topmargin}{0in}
1052 \setlength\headheight\f@baselineskip
1053 \setlength{\headsep}{.5in}
1054 \addtolength{\headsep}{-\headheight}
1055 \setlength{\footskip}{0.25in}
1058 % Left and right margins in MLA format are each 1 inch wide.
1060 \addtolength{\hoffset}{-.5in}
1061 \setlength{\textwidth}{\paperwidth}
1062 \addtolength{\textwidth}{-2in}
1063 \setlength{\oddsidemargin}{.5in}
1064 \setlength{\evensidemargin}{.5in}
1065 \setlength{\marginparwidth}{.5in}
1067 % \subsubsection{Paragraphs}
1068 % Paragraphs should be left justified, with the first line indented .5
1072 \setlength\parindent\mlastyle@i
1074 % MLA format specifies that all paragraphs should be indented, even those
1075 % beginning a new section. This snippet from \package{indentfirst} changes
1076 % \LaTeX{} to meet that requirement.
1078 \let\@afterindentfalse\@afterindenttrue
1081 % Double space {\em everywhere}. In a 12pt font, the default
1082 % |\baselineskip| is changed from 14.5pt to 14.4pt.
1083 % ^^A\RequirePackage{doublespace}
1086 \ifdim\baselineskip=14.5pt
1087 \renewcommand\normalsize{%
1088 \@setfontsize\normalsize\@xiipt{14.4}%
1089 \abovedisplayskip 12\p@ \@plus3\p@ \@minus7\p@
1090 \abovedisplayshortskip \z@ \@plus3\p@
1091 \belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
1092 \belowdisplayskip \abovedisplayskip
1093 \let\@listi\@listI}\normalsize
1096 \ifx\relax\mlastyle@qspread
1097 \lineskiplimit=.5\baselineskip
1099 \lineskiplimit=.2\baselineskip
1101 \lineskip=\lineskiplimit
1102 \leftmargini\parindent
1103 \def\@listi{\leftmargin\leftmargini
1104 \parsep\z@\itemsep\z@\topsep -3\p@\relax}
1107 \def\@listii{\leftmargin\leftmarginii
1108 \parsep\z@\itemsep\z@\topsep -3\p@\relax}
1109 \def\@listiii{\leftmargin\leftmarginiii
1110 \parsep\z@\itemsep\z@\topsep -3\p@\relax}
1111 \def\@listiv{\leftmargin\leftmarginiv
1112 \parsep\z@\itemsep\z@\topsep -3\p@\relax}
1113 \def\@listv{\leftmargin\leftmarginv
1114 \parsep\z@\itemsep\z@\topsep -3\p@\relax}
1115 \def\@listvi{\leftmargin\leftmarginvi
1116 \parsep\z@\itemsep\z@\topsep -3\p@\relax}
1118 % \begin{macro}{\nonfrenchspacing}
1119 % Only one space after colons, unless someone else has already tinkered
1120 % with its space factor.
1122 \let\mlastyle@intnfs\nonfrenchspacing
1123 \def\nonfrenchspacing{\mlastyle@intnfs
1124 \ifnum\the\sfcode`\:=2000\sfcode`\:=1999\fi}
1125 \ifnum\the\sfcode`\:=2000\sfcode`\:=1999\fi
1128 % \subsubsection{Header}
1129 % The last name and page number appear on every page, including the first.
1131 \RequirePackage{fancyhdr}
1132 \fancypagestyle{plain}{\fancyhf{}}
1133 \fancypagestyle{mlastyle}{
1135 \rhead{\mlastyle@surname{} \thepage}
1136 \renewcommand{\headrulewidth}{0pt}
1137 \renewcommand{\footrulewidth}{0pt}}
1138 \pagestyle{mlastyle}
1140 % \subsubsection{Notes}
1141 % \begin{macro}{\@footnotetext}
1142 % \begin{macro}{\footnoterule}
1143 % This code is terrible, but seems to work in practice. Suggestions
1147 \ifnum\mlastyle@prevsplit=\z@\else
1148 \vbox to \z@{\linespread{1}\normalsize\vss\vbox{\noindent
1149 \leaders\hrule\@height 3\p@\@depth-2.6\p@
1151 \hfill\strut}\kern\z@}%
1153 \xdef\mlastyle@prevsplit{\the\insertpenalties}}
1154 \def\mlastyle@prevsplit{0}
1155 \skip\footins=\f@baselineskip\relax
1156 \skip\footins=2.15\skip\footins
1157 \long\def\@footnotetext#1{\insert\footins{%
1158 \linespread{1}\normalsize
1159 \splittopskip1.7\baselineskip
1161 \parindent\mlastyle@i
1162 \rule\z@{1.7\baselineskip}
1164 \ignorespaces#1\@finalstrut\strutbox
1169 % \begin{macro}{\enoteformat}
1170 % \begin{macro}{\enoteheading}
1171 % \begin{macro}{\enotesize}
1172 % Endnotes are supported, but only if the \package{endnotes} package is
1173 % loaded {\em before\/} this package.
1175 \ifx\@undefined\endnote
1176 \let\note\footnote\else
1177 \def\enoteheading{\newpage\section*{\notesname}}
1178 \def\enoteformat{\leavevmode\makeenmark{} }
1179 \def\enotesize{\normalsize}
1186 % \subsubsection{Bibliography}
1187 % \begin{macro}{\url@mlastyle}
1188 % |\url| is needed to format urls in the bibliography.
1193 % ^^A\ifx\@undefined\url{
1195 % ^^A \gdef\url{\bgroup\catcode`/=13
1196 % ^^A \let/\slash\mlastyle@url}
1197 % ^^A \gdef\mlastyle@url#1{#1\egroup}}
1199 % \begin{environment}{thebibliography}
1200 % The definition of |thebibliography| varies depending on the document
1203 \ifx\@undefined\citet
1204 \renewenvironment\thebibliography#1{\clearpage
1205 \@ifundefined{chapter}
1206 {\section*{\refname}}
1207 {\chapter*{\bibname}}
1208 \list{\@biblabel{\@arabic\c@enumiv}}%
1209 {\settowidth\labelwidth{\@biblabel{#1}}}
1210 \leftmargin\labelwidth
1211 \advance\leftmargin\labelsep
1212 \itemindent-\leftmargin
1213 \let\newblock\@empty
1219 {\@latex@warning{Empty `thebibliography' environment}}%
1223 % If the \package{natbib} package is loaded, the following is executed
1227 \bibhang\mlastyle@i\bibsep\z@
1230 % ^^A \newcommand\bibpreamble{%
1231 % ^^A \@ifundefined{citet}{}%
1232 % ^^A {\bibhang\mlastyle@i\bibsep\z@}}
1234 \fi % \ifmlastyle@format