Created a reasonable DoNotIndex list
[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/10/21 v1.0 .dtx mlastyle file] 
22 %
23 %<*driver>
24 \documentclass{ltxdoc}
25 \usepackage[compat]{mlastyle}
26 \EnableCrossrefs
27 \CodelineIndex
28 \RecordChanges
29 %\OnlyDescription
30 \begin{document}
31   \DocInput{mlastyle.dtx}
32 \end{document}
33 %</driver>
34 % \fi
35 %
36 % \CheckSum{0}
37 %
38 % \CharacterTable
39 %  {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
40 %   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
41 %   Digits        \0\1\2\3\4\5\6\7\8\9
42 %   Exclamation   \!     Double quote  \"     Hash (number) \#
43 %   Dollar        \$     Percent       \%     Ampersand     \&
44 %   Acute accent  \'     Left paren    \(     Right paren   \)
45 %   Asterisk      \*     Plus          \+     Comma         \,
46 %   Minus         \-     Point         \.     Solidus       \/
47 %   Colon         \:     Semicolon     \;     Less than     \<
48 %   Equals        \=     Greater than  \>     Question mark \?
49 %   Commercial at \@     Left bracket  \[     Backslash     \\
50 %   Right bracket \]     Circumflex    \^     Underscore    \_
51 %   Grave accent  \`     Left brace    \{     Vertical bar  \|
52 %   Right brace   \}     Tilde         \~}
53 %
54 %
55 % \changes{v1.0}{2003/09/25}{Initial version}
56 %
57 % \GetFileInfo{mlastyle.sty}
58 %
59 % \DoNotIndex{\ }
60 % \DoNotIndex{\.}
61 % \DoNotIndex{\@afterindentfalse}
62 % \DoNotIndex{\@afterindenttrue}
63 % \DoNotIndex{\@arabic}
64 % \DoNotIndex{\@author}
65 % \DoNotIndex{\@auxout}
66 % \DoNotIndex{\@citea}
67 % \DoNotIndex{\@citeb}
68 % \DoNotIndex{\@date}
69 % \DoNotIndex{\@empty}
70 % \DoNotIndex{\@firstofone}
71 % \DoNotIndex{\@for}
72 % \DoNotIndex{\@ifundefined}
73 % \DoNotIndex{\@latex@warning}
74 % \DoNotIndex{\@listI}
75 % \DoNotIndex{\@listi}
76 % \DoNotIndex{\@listii}
77 % \DoNotIndex{\@listiii}
78 % \DoNotIndex{\@listiv}
79 % \DoNotIndex{\@listv}
80 % \DoNotIndex{\@listvi}
81 % \DoNotIndex{\@startsection}
82 % \DoNotIndex{\@tempswafalse}
83 % \DoNotIndex{\@title}
84 % \DoNotIndex{\@undefined}
85 % \DoNotIndex{\DeclareOption}
86 % \DoNotIndex{\ExecuteOptions}
87 % \DoNotIndex{\G@refundefinedtrue}
88 % \DoNotIndex{\ProcessOptions}
89 % \DoNotIndex{\RequirePackage}
90 % \DoNotIndex{\addtolength}
91 % \DoNotIndex{\advance}
92 % \DoNotIndex{\baselineskip}
93 % \DoNotIndex{\begin}
94 % \DoNotIndex{\bfseries}
95 % \DoNotIndex{\c@enumiv}
96 % \DoNotIndex{\catcode}
97 % \DoNotIndex{\centering}
98 % \DoNotIndex{\centerline}
99 % \DoNotIndex{\chapter}
100 % \DoNotIndex{\citation}
101 % \DoNotIndex{\clearpage}
102 % \DoNotIndex{\csname}
103 % \DoNotIndex{\day}
104 % \DoNotIndex{\def}
105 % \DoNotIndex{\do}
106 % \DoNotIndex{\edef}
107 % \DoNotIndex{\else}
108 % \DoNotIndex{\end}
109 % \DoNotIndex{\endcsname}
110 % \DoNotIndex{\endlist}
111 % \DoNotIndex{\exhyphenpenalty}
112 % \DoNotIndex{\expandafter}
113 % \DoNotIndex{\f@baselineskip}
114 % \DoNotIndex{\fancyhf}
115 % \DoNotIndex{\fancypagestyle}
116 % \DoNotIndex{\fi}
117 % \DoNotIndex{\futurelet}
118 % \DoNotIndex{\gdef}
119 % \DoNotIndex{\hangindent}
120 % \DoNotIndex{\headrulewidth}
121 % \DoNotIndex{\if@filesw}
122 % \DoNotIndex{\if@tempswa}
123 % \DoNotIndex{\ifcase}
124 % \DoNotIndex{\ifmlastyle@bibstyle}
125 % \DoNotIndex{\ifmlastyle@format}
126 % \DoNotIndex{\ifmlastyle@papersize}
127 % \DoNotIndex{\ifmlastyle@style}
128 % \DoNotIndex{\ifmlastyle@times}
129 % \DoNotIndex{\ifmlastyle@underline}
130 % \DoNotIndex{\ifx}
131 % \DoNotIndex{\immediate}
132 % \DoNotIndex{\item}
133 % \DoNotIndex{\itemindent}
134 % \DoNotIndex{\itemsep}
135 % \DoNotIndex{\labelsep}
136 % \DoNotIndex{\labelwidth}
137 % \DoNotIndex{\leavevmode}
138 % \DoNotIndex{\leftmargin}
139 % \DoNotIndex{\leftmargini,\leftmarginii,\leftmarginiii}
140 % \DoNotIndex{\leftmarginiv,\leftmarginv,\leftmarginvi}
141 % \DoNotIndex{\let}
142 % \DoNotIndex{\linespread}
143 % \DoNotIndex{\list}
144 % \DoNotIndex{\listparindent}
145 % \DoNotIndex{\makeenmark}
146 % \DoNotIndex{\mbox}
147 % \DoNotIndex{\mlastyle@bibstylefalse}
148 % \DoNotIndex{\mlastyle@bibstyletrue}
149 % \DoNotIndex{\mlastyle@cite}
150 % \DoNotIndex{\mlastyle@course}
151 % \DoNotIndex{\mlastyle@formatfalse}
152 % \DoNotIndex{\mlastyle@formattrue}
153 % \DoNotIndex{\mlastyle@instructor}
154 % \DoNotIndex{\mlastyle@intbib}
155 % \DoNotIndex{\mlastyle@papersizefalse}
156 % \DoNotIndex{\mlastyle@papersizetrue}
157 % \DoNotIndex{\mlastyle@qspread}
158 % \DoNotIndex{\mlastyle@sl@sh}
159 % \DoNotIndex{\mlastyle@slash}
160 % \DoNotIndex{\mlastyle@slashnext}
161 % \DoNotIndex{\mlastyle@slashx}
162 % \DoNotIndex{\mlastyle@stylefalse}
163 % \DoNotIndex{\mlastyle@styletrue}
164 % \DoNotIndex{\mlastyle@surname}
165 % \DoNotIndex{\mlastyle@timesfalse}
166 % \DoNotIndex{\mlastyle@timestrue}
167 % \DoNotIndex{\mlastyle@underlinefalse}
168 % \DoNotIndex{\mlastyle@underlinetrue}
169 % \DoNotIndex{\month}
170 % \DoNotIndex{\newblock}
171 % \DoNotIndex{\newcommand}
172 % \DoNotIndex{\newenvironment}
173 % \DoNotIndex{\newif}
174 % \DoNotIndex{\newpage}
175 % \DoNotIndex{\noindent}
176 % \DoNotIndex{\normalsize}
177 % \DoNotIndex{\notesname}
178 % \DoNotIndex{\number}
179 % \DoNotIndex{\or}
180 % \DoNotIndex{\p@}
181 % \DoNotIndex{\pagestyle}
182 % \DoNotIndex{\par}
183 % \DoNotIndex{\parindent}
184 % \DoNotIndex{\parsep}
185 % \DoNotIndex{\penalty}
186 % \DoNotIndex{\relax}
187 % \DoNotIndex{\renewcommand}
188 % \DoNotIndex{\renewenvironment}
189 % \DoNotIndex{\reset@font}
190 % \DoNotIndex{\rhead}
191 % \DoNotIndex{\setlength}
192 % \DoNotIndex{\settowidth}
193 % \DoNotIndex{\sfcode}
194 % \DoNotIndex{\skip}
195 % \DoNotIndex{\sloppy}
196 % \DoNotIndex{\space}
197 % \DoNotIndex{\string}
198 % \DoNotIndex{\sw@llow}
199 % \DoNotIndex{\the}
200 % \DoNotIndex{\thepage}
201 % \DoNotIndex{\topsep}
202 % \DoNotIndex{\usecounter}
203 % \DoNotIndex{\vskip}
204 % \DoNotIndex{\write}
205 % \DoNotIndex{\year}
206 % \DoNotIndex{\z@}
207 % \DoNotIndex{\evensidemargin}
208 % \DoNotIndex{\headheight}
209 % \DoNotIndex{\headsep}
210 % \DoNotIndex{\hoffset}
211 % \DoNotIndex{\marginparwidth}
212 % \DoNotIndex{\oddsidemargin}
213 % \DoNotIndex{\raggedbottom}
214 % \DoNotIndex{\raggedright}
215 % \DoNotIndex{\textheight}
216 % \DoNotIndex{\textwidth}
217 % \DoNotIndex{\topmargin}
218 % \DoNotIndex{\voffset}
219 % \DoNotIndex{\paperheight}
220 % \DoNotIndex{\paperwidth}
221 % \DoNotIndex{\pdfpageheight}
222 % \DoNotIndex{\pdfpagewidth}
223 % \DoNotIndex{\special}
224 %
225 % \newcommand*{\Lopt}[1]{\textsf {#1}}
226 % \newcommand*{\file}[1]{\texttt {#1}}
227 % \newcommand*{\package}[1]{\textsf {#1}}
228 % \newcommand*{\Lcount}[1]{\textsl {\small#1}}
229 % \newcommand*{\pstyle}[1]{\textsl {#1}}
230 %
231 % \title{The \package{mlastyle} package\thanks{This document
232 %   corresponds to \package{mlastyle}~\fileversion, dated \filedate.}}
233 % \author{Tim Pope \\ \texttt{latex@rebelongto.us}}
234 %
235 % \maketitle
236 %
237 % \section{Introduction}
238 %
239 % MLA style is ugly.  Nevertheless, it is often required, particularly in
240 % the humanities.
241 %
242 % \section{Usage}
243 %
244 % A sample document follows.
245 % \begin{verbatim}
246 %\documentclass[12pt]{article}
247 %\usepackage{mlastyle}
248 %
249 %\author{John Doe}
250 %\instructor{Professor Smith}
251 %\course{English 101}
252 %\date{1~Jan.\ 1970}
253 %\title{The Futility of Compulsory English Classes}
254 %
255 %\begin{document}
256 %\maketitle
257 %'Nuff said.
258 %\end{document}\end{verbatim}
259 % \subsection{Initiation Macros}
260 % \DescribeMacro{\maketitle}
261 % \DescribeMacro{\instructor}
262 % \DescribeMacro{\course}
263 % The mandatory heading\index{heading|usage} is generated with
264 % |\maketitle|.  Use the standard macros |\author|, |\title|, and |\date|
265 % to specify the relevant information.  To define the instructor and name
266 % of the course, use the aptly named |\instructor|\marg{instructor} and
267 % |\instructor|\marg{course} macros.
268 %
269 % \DescribeMacro{\surname}
270 % The last name for use in the header\index{header|usage} is derived from
271 % |\author|.  If this does not produce the desired result, use
272 % |\surname|\marg{last name} to override it.
273 %
274 % \DescribeMacro{\date}
275 % \DescribeMacro{\today}
276 % MLA style recommends the DD~Mon.~YYYY format for specifying dates;
277 % |\today| has been conveniently redefined to this.  However, other
278 % formats can be used as long as done so consistantly throughout the
279 % document.  Also note that the date in the header should be the due date
280 % of the assignment, so be sure to explictly call |\date|\marg{due date}
281 % if you actually finish your assignments early.
282 %
283 % \subsection{Environments}
284 % \DescribeEnv{verse}
285 % \DescribeEnv{quote}
286 % \DescribeEnv{quotation}
287 % Three environments have been modified from standard \LaTeX to better
288 % suit MLA format.  To typeset poetry\index{poetry|usage} and
289 % drama\index{drama|usage}, use the |verse| environment.
290 % Quotations\index{quotations|usage} of a single paragraph or less always
291 % use the |quote| environment.  For longer passages, use the |quotation|
292 % environment if the beginning of the passage marks the beginning of a
293 % paragraph.  Otherwise, use the |quote| environment.
294 %
295 % Be sure to follow MLA guidelines when using these environments.  Short
296 % quotes should be enclosed in quotation marks and included directly in
297 % the text.
298 %
299 % \subsection{Documentating Sources}
300 %
301 % Coupled with \BibTeX\index{BibTeX\actualchar\BibTeX|usage}
302 % \package{mlastyle} provides a experimental implementation of MLA
303 % documentation style.  Put |\bibliographystyle{mlastyle}| in the document
304 % preamble to load the bibliography style.
305 %
306 % \StopEventually{\PrintChanges\PrintIndex}
307 %
308 % \section{Implementation}
309 % \iffalse
310 %<*package>
311 % \fi
312 % \subsection{Options}
313 %
314 % \begin{macro}{\ifmlastyle@*}
315 % \begin{macro}{\mlastyle@*true}
316 % \begin{macro}{\mlastyle@*false}
317 % Most options are implemented by modifying a |\newif| declared for this
318 % purpose.
319 %    \begin{macrocode}
320 \newif\ifmlastyle@bibstyle
321 \DeclareOption{bibstyle}{\mlastyle@bibstyletrue}
322 \DeclareOption{nobibstyle}{\mlastyle@bibstylefalse}
323 \newif\ifmlastyle@papersize
324 \DeclareOption{papersize}{\mlastyle@papersizetrue}
325 \DeclareOption{nopapersize}{\mlastyle@papersizefalse}
326 \newif\ifmlastyle@underline
327 \DeclareOption{underline}{\mlastyle@underlinetrue}
328 \DeclareOption{italics}{\mlastyle@underlinefalse}
329 \newif\ifmlastyle@times
330 \DeclareOption{times}{\mlastyle@timestrue}
331 \DeclareOption{cm}{\mlastyle@timesfalse}
332 \newif\ifmlastyle@style
333 \DeclareOption{compat}{\mlastyle@stylefalse
334         \mlastyle@formatfalse
335         \mlastyle@underlinefalse}
336 \DeclareOption{mla}{\mlastyle@styletrue
337         \mlastyle@formattrue
338         \mlastyle@underlinetrue}
339 \newif\ifmlastyle@format
340 \DeclareOption{format}{\mlastyle@stylefalse
341         \mlastyle@formattrue
342         \mlastyle@underlinetrue}
343 \DeclareOption{style}{\mlastyle@styletrue
344         \mlastyle@formatfalse
345         \mlastyle@underlinefalse}
346 \DeclareOption{singlespacequotes}{
347   \def\mlastyle@qspread{\linespread{1}\normalsize\vskip\baselineskip}}
348 \DeclareOption{doublespacequotes}{\let\mlastyle@qspread\relax}
349 \ExecuteOptions{nobibstyle,nopapersize,mla,cm,doublespacequotes}
350 \ProcessOptions
351 %    \end{macrocode}
352 % \end{macro}
353 % \end{macro}
354 % \end{macro}
355 % If the \Lopt{papersize} option is set, add the appropriate
356 % \textsc{PostScript} special, or adjust |\pdfpagewidth| and
357 % |\pdfpageheight| if pdf\LaTeX{} is in use.
358 %    \begin{macrocode}
359 \ifmlastyle@papersize
360   \ifx\@undefined\pdfpagewidth
361     \special{papersize=\the\paperwidth,\the\paperheight}
362   \else
363     \setlength{\pdfpagewidth}{\paperwidth}
364     \setlength{\pdfpageheight}{\paperheight}
365   \fi
366 \fi % \ifmlastyle@papersize
367 %    \end{macrocode}
368 % If the \Lopt{bibstyle} option is set, specify the bibliography style.
369 %    \begin{macrocode}
370 \ifmlastyle@bibstyle
371   \ifmlastyle@style
372     \bibliographystyle{mlastyle}
373   \else
374     \bibliographystyle{plain}
375   \fi
376 \fi % \ifmlastyle@bibstyle
377 %    \end{macrocode}
378 % Load the \package{ulem} package if the \Lopt{underline} option is set.
379 %    \begin{macrocode}
380 \ifmlastyle@underline
381   \RequirePackage{ulem}
382 \fi % \ifmlastyle@underline
383 %    \end{macrocode}
384 % Load the \package{times} package if the \Lopt{times} option is set.
385 %    \begin{macrocode}
386 \ifmlastyle@times
387   \RequirePackage{times}
388 \fi % \ifmlastyle@times
389 %    \end{macrocode}
390 % \subsection{Macros}
391 % \begin{macro}{\instructor}
392 % Define the instructor, along with an obsolete synonym.
393 %    \begin{macrocode}
394 \def\instructor#1{\gdef\mlastyle@instructor{#1}}
395 \let\professor\instructor
396 %    \end{macrocode}
397 % \end{macro}
398 % \begin{macro}{\course}
399 % Define the course, along with an obsolete synonym.
400 %    \begin{macrocode}
401 \def\course#1{\gdef\mlastyle@course{#1}}
402 \let\classname\course
403 %    \end{macrocode}
404 % \end{macro}
405 % \begin{macro}{\surname}
406 % Define the surname, along with an obsolete synonym.
407 %    \begin{macrocode}
408 \def\surname#1{\gdef\mlastyle@surname{#1}}
409 \def\mlastyle@surname{\def\sw@llow##1 {}\expandafter\sw@llow\@author}
410 \let\lastname\surname
411 %    \end{macrocode}
412 % \end{macro}
413 % \subsection{Formatting}
414 % Formatting is only done if the \Lopt{format} option is set.  This is the
415 % default.
416 %    \begin{macrocode}
417 \ifmlastyle@format
418 %    \end{macrocode}
419 % \subsubsection{Macros}
420 % \begin{macro}{\maketitle}
421 % Redefined |\maketitle| generate a heading in MLA format.
422 %    \begin{macrocode}
423   \renewcommand{\maketitle}{\begin{flushleft}
424     \@author\par
425     \@ifundefined{mlastyle@instructor}{}{\mlastyle@instructor}\par
426     \@ifundefined{mlastyle@course}{}{\mlastyle@course}\par
427     \@date\end{flushleft}
428     \begin{center}\@title\end{center}\par
429   }
430 %    \end{macrocode}
431 % \end{macro}
432 % \begin{macro}{\today}
433 % |\today| is redefined to DD~Mon.~YYYY format.
434 %    \begin{macrocode}
435 \def\today{\number\day~\ifcase\month\or
436   Jan.\or Feb.\or Mar.\or Apr.\or May\or June\or July\or 
437   Aug.\or Sept.\or Oct.\or Nov.\or Dec.\fi\ \number\year}
438 %    \end{macrocode}
439 % \end{macro}
440 % \begin{macro}{\slash}
441 % No penalty for |\slash|, and plain /'s permit line breaks if necessary.
442 %    \begin{macrocode}
443   \def\slash{/\penalty\z@}
444   %\let\mlastyle@sl@sh=/
445   \def\mlastyle@slash{/\futurelet\mlastyle@slashnext\mlastyle@slashx}
446   \def\mlastyle@slashx{\ifx\mlastyle@slashnext/\else
447     \penalty\exhyphenpenalty\fi}
448 %    \end{macrocode}
449 % \end{macro}
450 % \begin{macro}{\section}
451 % \begin{macro}{\subsection}
452 % Sections are formatted by centering the section name and beginning a new
453 % page.  Subsections simply center the section name.
454 %    \begin{macrocode}
455   \renewcommand{\section}{\clearpage\@startsection{section}{1}{\z@
456     }{0pt}{1sp}{\centering}}
457   \renewcommand{\subsection}{\@startsection{subsection}{2}{\z@
458     }{0pt}{1sp}{\centering}}
459 %    \end{macrocode}
460 % \end{macro}
461 % \end{macro}
462 % \subsubsection{Environments}
463 % ^^A%\newenvironment{blocks}{\begin{quote} \linespread{1} \small \normalsize}{\end{quote} \linespread{2} \small \normalsize}
464 % ^^A%\newenvironment{blockm}{\begin{quotation} \linespread{1} \small \normalsize}{\end{quotation} \linespread{2} \small \normalsize}
465 % \begin{environment}{verse}
466 % Indented 1 inch, with an additional .25 inch hanging indent.
467 %    \begin{macrocode}
468   \renewenvironment{verse}{\list{}{\mlastyle@qspread
469     \advance\leftmargin.75in\itemindent-.25in
470     \listparindent\itemindent}\item\relax}{\endlist}
471 %    \end{macrocode}
472 % \end{environment}
473 % \begin{environment}{quotation}
474 % Indented 1 inch, with a paragraph indent of an additional .25 inches.
475 %    \begin{macrocode}
476   \renewenvironment{quotation}{\list{}{\mlastyle@qspread
477     \advance\leftmargin.5in\itemindent.25in
478     \listparindent\itemindent}\item\relax}{\endlist}
479 %    \end{macrocode}
480 % \end{environment}
481 % \begin{environment}{quote}
482 % Identical to the |quotation| environment, except the first paragraph is not
483 % indented.
484 %    \begin{macrocode}
485   \renewenvironment{quote}{\list{}{\mlastyle@qspread
486     \advance\leftmargin.5in
487     \listparindent.25in}\item\relax}{\endlist}
488 %    \end{macrocode}
489 % \end{environment}
490 % \begin{environment}{workscited}
491 % Works Cited environment, for compatibility with \package{mla-paper}.
492 %    \begin{macrocode}
493   \newenvironment{workscited}%
494     {\newpage{\centerline{Works Cited}}}{\newpage}
495   \newcommand{\bibent}{\noindent \hangindent .5in}
496 %    \end{macrocode}
497 % \end{environment}
498 % \subsubsection{Margins}
499 % Top and bottom margins are 1 inch each.  The header is flush with the
500 % right margin at .5 inches from the top of the page.
501 % ^^A%\settoheight{\headheight}{\llap{\parbox[b]{\textwidth}{\large\raggedleft Pope}}}
502 %    \begin{macrocode}
503   \addtolength{\voffset}{-0.5in}
504   \setlength{\textheight}{\paperheight}
505   \addtolength{\textheight}{-2in}
506   \setlength{\topmargin}{0in}
507   %\addtolength{\headheight}{-1pt}
508   %\setlength{\headheight}{1.4\headheight}% kludge
509   \setlength\headheight\f@baselineskip
510   \setlength{\headsep}{0.5in}
511   \addtolength{\headsep}{-\headheight}
512   \setlength{\footskip}{0.25in}
513   \raggedbottom
514 %    \end{macrocode}
515 % Left and right margins in MLA format are each 1 inch wide.
516 %    \begin{macrocode}
517   \addtolength{\hoffset}{-0.5in}
518   \setlength{\textwidth}{\paperwidth}
519   \addtolength{\textwidth}{-2in}
520   \setlength{\oddsidemargin}{0.5in}
521   \setlength{\evensidemargin}{0.5in}
522   \setlength{\marginparwidth}{0.5in}
523 %    \end{macrocode}
524 % \subsubsection{Paragraphs}
525 % Paragraphs should be left justified, with the first line indented .5
526 % inches.
527 %    \begin{macrocode}
528   \raggedright
529   \setlength{\parindent}{.5in}
530 %    \end{macrocode}
531 % MLA format specifies that all paragraphs should be indented, even those
532 % beginning a new section.  This snippet from \package{indentfirst} changes
533 % \LaTeX{} to meet that requirement.
534 %    \begin{macrocode}
535   \let\@afterindentfalse\@afterindenttrue
536   \@afterindenttrue
537 %    \end{macrocode}
538 % Double space {\em everywhere}.
539 % ^^A\RequirePackage{doublespace}
540 %    \begin{macrocode}
541   \linespread{2.0}
542   \leftmargini\parindent
543   \def\@listi{\leftmargin\leftmargini
544   \parsep\z@\itemsep\z@\topsep -3\p@\relax}
545   \let\@listI\@listi
546   \@listi
547   \def\@listii{\leftmargin\leftmarginii
548   \parsep\z@\itemsep\z@\topsep -3\p@\relax}
549   \def\@listiii{\leftmargin\leftmarginiii
550   \parsep\z@\itemsep\z@\topsep -3\p@\relax}
551   \def\@listiv{\leftmargin\leftmarginiv
552   \parsep\z@\itemsep\z@\topsep -3\p@\relax}
553   \def\@listv{\leftmargin\leftmarginv
554   \parsep\z@\itemsep\z@\topsep -3\p@\relax}
555   \def\@listvi{\leftmargin\leftmarginvi
556   \parsep\z@\itemsep\z@\topsep -3\p@\relax}
557 %    \end{macrocode}
558 % \subsubsection{Header}
559 % The last name and page number appear on every page, including the first.
560 %    \begin{macrocode}
561   \RequirePackage{fancyhdr}
562   \fancypagestyle{plain}{\fancyhf{}}
563   \fancypagestyle{mlastyle}{
564     \fancyhf{}
565     \rhead{\mlastyle@surname{} \thepage}
566     \renewcommand{\headrulewidth}{0pt}
567     \renewcommand{\footrulewidth}{0pt}
568   }
569   \pagestyle{mlastyle}
570 %    \end{macrocode}
571 % \subsubsection{Notes}
572 % Footnotes should be indented .5 inches; however .56 inches is used
573 % in a crude attempt to compensate for
574 % the alignment provided by the \package{footmisc} package.  Endnotes are
575 % preferred in MLA style anyway, so this should not be a problem in most
576 % circumstances.
577 %    \begin{macrocode}
578   \RequirePackage[ragged,norule]{footmisc}
579   \def\footnotelayout{\linespread{1}\footnotesize\raggedright{} }
580   \footnotemargin .56in
581   \skip\footins=2\baselineskip
582   \footnotesep 1.2\footnotesep
583   \addtolength\footnotesep{\baselineskip}
584   \def\footnotesize{\normalsize}
585 %    \end{macrocode}
586 % ^^A\let\footnoterule\relax
587 % Endnotes are supported, but only if the \package{endnotes} package is
588 % loaded {\em before\/} this package.
589 %    \begin{macrocode}
590   \ifx\@undefined\endnote\else
591     \def\enoteheading{\newpage\section*{\notesname}}
592     \def\enoteformat{\leavevmode\makeenmark{} }
593     \def\enotesize{\normalsize}
594   \fi
595 %    \end{macrocode}
596 % \subsubsection{Miscellaneous}
597 % The definition of |\thebibliography| varies depending on the document
598 % class.
599 %    \begin{macrocode}
600   \@ifundefined{chapter}
601 %    \end{macrocode}
602 % Article class.
603 %    \begin{macrocode}
604   {
605     \def\thebibliography#1{\newpage\section*{\refname}
606       \list{\@biblabel{\@arabic\c@enumiv}}%
607       {\settowidth\labelwidth{\@biblabel{#1}}}
608       \leftmargin\labelwidth
609       \advance\leftmargin\labelsep
610       \itemindent-\leftmargin
611       \def\newblock{}
612       \usecounter{enumiv}
613       \sloppy%\sfcode`\.=1000\relax
614       \catcode`/=13
615       \let/=\mlastyle@slash
616       }}
617 %    \end{macrocode}
618 % Report/book class.
619 %    \begin{macrocode}
620   {
621     \def\thebibliography#1{\chapter*{\bibname}
622       \list{\@biblabel{\@arabic\c@enumiv}}%
623       {\settowidth\labelwidth{\@biblabel{#1}}}
624       \leftmargin\labelwidth
625       \advance\leftmargin\labelsep
626       \itemindent-\leftmargin
627       \def\newblock{}
628       \usecounter{enumiv}
629       \sloppy%\sfcode`\.=1000\relax
630       \catcode`/=13
631       \let/=\mlastyle@slash
632       }}
633 %    \end{macrocode}
634 % We're done formatting!
635 %    \begin{macrocode}
636 \fi % \ifmlastyle@format
637 %    \end{macrocode}
638 % \subsection{Works Cited}
639 % \begin{macro}{\cite}
640 % The following macros, combined with \file{mlastyle.bst}, provide
641 % for a bibliography in MLA style.  Note that the definition of |\cite|,
642 % |\citeN|, etc.\ vary depending on the options passed to
643 % \package{mlastyle}.
644 %
645 % \begin{macro}{\mlastyle@intcite}
646 % Since the original |\cite| is needed after it is overridden, it is stored
647 % in |\mlastyle@intcite|.
648 %    \begin{macrocode}
649 \let\mlastyle@intcite\cite
650 %    \end{macrocode}
651 % \end{macro}
652 % \begin{macro}{\mlastyle@relax}
653 % This macro does nothing.  Depending on the options, ither |\citeC| or
654 % |\citeM| and its ilk will utilize it.
655 %    \begin{macrocode}
656 \newcommand{\mlastyle@relax}[2][]{}
657 %    \end{macrocode}
658 % \end{macro}
659 % \subsubsection{MLA Style}
660 % \begin{macro}{\citeM}
661 % If the \Lopt{mla} or \Lopt{style} options are used, the following is
662 % executed.
663 %    \begin{macrocode}
664 \ifmlastyle@style
665   \def\@cite#1#2{(#1\if@tempswa{} #2\fi)}
666   \def\cite{\def\@cite##1##2{(##1\if@tempswa{} ##2\fi)}\mlastyle@intcite}
667   \def\citeN{\def\@cite##1##2{##1\if@tempswa{} ##2\fi}\mlastyle@intcite}
668   \def\citeM{\def\@cite##1##2{ (##1\if@tempswa{} ##2\fi)}\mlastyle@intcite}
669   \def\citepage{\def\@cite##1##2{\if@tempswa(##2)\fi}\mlastyle@intcite}
670   \def\citepageM{\def\@cite##1##2{\if@tempswa{} (##2)\fi}\mlastyle@intcite}
671   \def\citeindirect{\def\@cite##1##2%
672   {(qtd. in ##1\if@tempswa{} ##2\fi)}\mlastyle@intcite}
673   \def\citeindirectM{\def\@cite##1##2%
674   { (qtd. in ##1\if@tempswa{} ##2\fi)}\mlastyle@intcite}
675   \let\citeC\mlastyle@relax
676 %    \end{macrocode}
677 % \end{macro}
678 % \iffalse
679 % Place commas in-between citations in the same |\citeyear|, |\citeyearNP|,
680 % |\citeN|, or |\shortciteN| command.
681 % Use something like |\citeN{ref1,ref2,ref3}| and |\citeN{ref4}| for a list.
682 %
683 % \@citedata and \@citedatax:
684 %  \def\@citedata{%
685 %    \@ifnextchar [{\@tempswatrue\@citedatax}%
686 %                {\@tempswafalse\@citedatax[]}%
687 %  }
688 %  \def\@citedatax[#1]#2{%
689 %  \let\@citea\@empty
690 %  \if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi%
691 %    \def\@citea{}\@cite{\@for\@citeb:=#2\do%
692 %      {\@citea\def\@citea{; }\@ifundefined% by Young
693 %        {b@\@citeb}{{\bf ?}%
694 %        \@warning{Citation `\@citeb' on page \thepage \space undefined}}%
695 %  {\csname b@\@citeb\endcsname}}}{#1}}%
696 % \fi
697 % \begin{macro}{\@citex}
698 % This is the original |\@citex| from \LaTeX{} modified to use semicolons.
699 %    \begin{macrocode}
700 \def\@citex[#1]#2{%
701   \let\@citea\@empty
702   \@cite{\@for\@citeb:=#2\do
703     {\@citea\def\@citea{;\penalty-1\ }%
704      \edef\@citeb{\expandafter\@firstofone\@citeb\@empty}%
705      \if@filesw\immediate\write\@auxout{\string\citation{\@citeb}}\fi
706      \@ifundefined{b@\@citeb}{\mbox{\reset@font\bfseries ?}%
707        \G@refundefinedtrue
708        \@latex@warning
709          {Citation `\@citeb' on page \thepage \space undefined}}%
710        {{\csname b@\@citeb\endcsname}}}}{#1}}
711 %    \end{macrocode}
712 % \end{macro}
713 % \begin{macro}{\@biblabel}
714 % No labels in the bibliography.
715 %    \begin{macrocode}
716   \def\@biblabel#1{#1}
717   \labelsep\z@
718   \let\mlastyle@intbib\thebibliography
719   \def\thebibliography#1{\mlastyle@intbib{#1}
720     \itemindent-\leftmargin\def\@biblabel##1{}}
721 %    \end{macrocode}
722 % \end{macro}
723 % Title the either the bibliography or the references ``Works Cited,''
724 % depending on the document class.
725 %    \begin{macrocode}
726   \@ifundefined{chapter}
727   {\renewcommand\refname{Works Cited}}
728   {\renewcommand\bibname{Works Cited}}
729 %    \end{macrocode}
730 %
731 % ^^A% Define the command \workscited{bib}{style}{nocite}
732 % ^^A%\newcommand{\workscited}[3]{%
733 % ^^A%  \ifx\chapter\@undefined%
734 % ^^A%    \addcontentsline{toc}{chapter}{\bfseries\bibname}% report style
735 % ^^A%  \else
736 % ^^A%    \addcontentsline{toc}{section}{\bfseries\refname}% article style
737 % ^^A%  \fi
738 % ^^A%  \bibliography{#1}\bibliographystyle{#2}\nocite{#3}}
739 % ^^A% \fi
740 % ^^A\newcommand{\annote}[1]{\begin{list}{}{%
741 % ^^A                \setlength{\labelwidth}{0pt}
742 % ^^A                \addtolength{\leftmargin}{\parindent}
743 % ^^A                \setlength{\labelsep}{0pt}}%
744 % ^^A                \item #1 \end{list}}
745 % \subsubsection{Plain Style}
746 % \begin{macro}{\citeC}
747 % This next block is used only if the \Lopt{compat} option is set.
748 %    \begin{macrocode}
749 \else
750   \newcommand{\mlastyle@cite}[2][]{\@tempswafalse\@citex[]{#2}}
751   \let\cite\mlastyle@cite
752   \let\citepage\mlastyle@cite
753   \let\citeindirect\mlastyle@cite
754   \newcommand{\citeC}[2][]{ \@tempswafalse\@citex[]{#2}}
755   \let\citeM\mlastyle@relax
756   \let\citepageM\mlastyle@relax
757   \let\citeindirectM\mlastyle@relax
758 \fi
759 %    \end{macrocode}
760 % \end{macro}
761 % \end{macro}
762 % \iffalse
763 %</package>
764 % \fi
765 %
766 % \Finale
767 \endinput
768 % vim:tw=74