Difference between revisions of "MLA style"

From Wiki
Jump to navigation Jump to search
m (→‎Environment Code: Added downloadable version)
m (added Category "sample documents")
 
(5 intermediate revisions by 3 users not shown)
Line 11: Line 11:
 
<texcode>
 
<texcode>
 
% Filename: env_mla.tex
 
% Filename: env_mla.tex
 +
 +
%Provided Methods:
 +
% \MLA[First][Last][Prof][Class][Date][Title]
 +
% \startlongquote ... \stoplongquote
 +
% \startworkscited ... \stopworkscited
 +
 
\startenvironment env_mla
 
\startenvironment env_mla
  
 
% paper, layout, etc.
 
% paper, layout, etc.
 
\setuppapersize[letter]
 
\setuppapersize[letter]
\setuplayout[width=6.5in,height=10in,topspace=0.5in,backspace=1in,
+
\setuplayout[width=6.5in,height=10.5in,topspace=0.5in,backspace=1in,
 
   header=0.5in,footer=0.5in]
 
   header=0.5in,footer=0.5in]
% last name, page number
 
\setuppagenumbering[left=MyLastName ,location={header,right}]
 
 
% double space
 
% double space
 
\setupinterlinespace[line=5.6ex]
 
\setupinterlinespace[line=5.6ex]
% 1/2 inch indents\setupindenting[0.5in]
+
% 1/2 inch indents
 +
\setupindenting[0.5in]
 
% jagged-right (aligned to the left)
 
% jagged-right (aligned to the left)
 
\setupalign[right]
 
\setupalign[right]
 
% font
 
% font
\setupbodyfont[roman,12pt]
+
\setupbodyfont[rm,12pt]
% startstop regions to use:
+
 
% longquote, header, title, workscited
+
% for long quotes
 
\definestartstop[longquote][
 
\definestartstop[longquote][
 
   before={\indenting[never]
 
   before={\indenting[never]
Line 34: Line 39:
 
   after={\stopnarrower
 
   after={\stopnarrower
 
     \indenting[yes]}]
 
     \indenting[yes]}]
\definestartstop[header][
+
 
  before={\indenting[never]},
+
% for heading and header
  after={\indenting[yes]}]
+
\def\MLA#1[#2][#3][#4][#5][#6][#7]%
\definestartstop[title][
+
{\setuppagenumbering[left=#3 ,location={header,right}]
  before={\indenting[never]
+
\indenting[never]
    \startalignment[middle]},
+
#2 #3\par#4\par#5\par#6\par\startalignment[middle]#7\stopalignment
  after={\stopalignment
+
\indenting[yes]}
    \indenting[yes]}]
+
 
% following hanging indent code (also in workscited) taken from  
 
% following hanging indent code (also in workscited) taken from  
 
%  http://www.ntg.nl/pipermail/ntg-context/2004/005280.html
 
%  http://www.ntg.nl/pipermail/ntg-context/2004/005280.html
Line 56: Line 61:
 
     \bgroup\appendtoks\hangover\to\everypar
 
     \bgroup\appendtoks\hangover\to\everypar
 
     },
 
     },
   after=
+
   after={
 
     \egroup
 
     \egroup
 
     \indenting[yes]}]
 
     \indenting[yes]}]
 +
 
\stopenvironment
 
\stopenvironment
 
</texcode>
 
</texcode>
Line 66: Line 72:
 
<texcode>
 
<texcode>
 
\environment env_mla
 
\environment env_mla
 +
\MLA[Jin-Ho][King][Professor Wotsisnam][Engrish 250]%
 +
[30 February 2004][Foundation for Poor Diction]
  
 
\starttext
 
\starttext
\startheader
 
Jin-Ho King
 
 
Professor Wotsisnam
 
 
Engrish 250
 
 
30 February 2004
 
\stopheader
 
 
\starttitle
 
Foundation for Poor Diction
 
\stoptitle
 
 
 
There once was a young man who wanted to write. He wrote and
 
There once was a young man who wanted to write. He wrote and
 
wrote. He wrote nothing of value. All his life, he struggled
 
wrote. He wrote nothing of value. All his life, he struggled
Line 101: Line 95:
  
 
\startworkscited
 
\startworkscited
 
 
Crane, Irod. ``The Complications of Existential
 
Crane, Irod. ``The Complications of Existential
 
Transcendence." {\em Life and Library}. Boston: Trash, 2004.
 
Transcendence." {\em Life and Library}. Boston: Trash, 2004.
Line 112: Line 105:
  
 
* To make the hanging indent work, make sure there is a blank line between the last line of the bibliographic list and <tt>\stopworkscited</tt>.
 
* To make the hanging indent work, make sure there is a blank line between the last line of the bibliographic list and <tt>\stopworkscited</tt>.
 +
* Make sure the arguments to the MLA macro are all on one line. (An alternative is to end a line with "%" to ignore the whitespace until the next argument&mdash;see the example.)
 +
 +
[[Category:Sample documents]]

Latest revision as of 19:02, 11 August 2005

< Sample documents

Modern Language Association style.

(Unofficial, of course, but workable.)

Environment Code

Downloadable version here.

% Filename: env_mla.tex

%Provided Methods:
%	\MLA[First][Last][Prof][Class][Date][Title]
%	\startlongquote ... \stoplongquote
%	\startworkscited ... \stopworkscited

\startenvironment env_mla

% paper, layout, etc.
\setuppapersize[letter]
\setuplayout[width=6.5in,height=10.5in,topspace=0.5in,backspace=1in,
  header=0.5in,footer=0.5in]
% double space
\setupinterlinespace[line=5.6ex]
% 1/2 inch indents
\setupindenting[0.5in]
% jagged-right (aligned to the left)
\setupalign[right]
% font
\setupbodyfont[rm,12pt]

% for long quotes
\definestartstop[longquote][
  before={\indenting[never]
    \setupnarrower[left=0.5in,right=0.5in]
    \startnarrower[2*left,right]},
  after={\stopnarrower
    \indenting[yes]}]

% for heading and header
\def\MLA#1[#2][#3][#4][#5][#6][#7]%
	{\setuppagenumbering[left=#3 ,location={header,right}]
	\indenting[never]
	#2 #3\par#4\par#5\par#6\par\startalignment[middle]#7\stopalignment
	\indenting[yes]}
	
% following hanging indent code (also in workscited) taken from 
%  http://www.ntg.nl/pipermail/ntg-context/2004/005280.html
% [NTG-context] Re: Again: "hanging" for a lot of paragraphs?
%  ~ Patrick Gundlach
\def\hangover{\hangafter=1\hangindent=0.5in}
\definestartstop[workscited][
  before={
    \page[yes]
    \indenting[never]
    \startalignment[middle]
    Works Cited
    \stopalignment
    \bgroup\appendtoks\hangover\to\everypar
    },
  after={
    \egroup
    \indenting[yes]}]

\stopenvironment

Usage

\environment env_mla
\MLA[Jin-Ho][King][Professor Wotsisnam][Engrish 250]%
[30 February 2004][Foundation for Poor Diction]

\starttext
There once was a young man who wanted to write. He wrote and
wrote. He wrote nothing of value. All his life, he struggled
to create something worth reading; all his life, he struggled
to become someone worth knowing. All his life, he failed
miserably.

\startlongquote
Now the question is not whether he can write. His abilities
in picking up pencils and pens and putting them to paper
cannot be denied. Actually, I've rarely seen anyone so
willing to put ideas on paper. The real question is:
``Should a man like that be given pencils and pens and
paper?" (Crane 243)
\stoplongquote

There is little more to be said about this man; this man has
little more to be said.

\startworkscited
Crane, Irod. ``The Complications of Existential
Transcendence." {\em Life and Library}. Boston: Trash, 2004.

\stopworkscited
\stoptext

Caveats

  • To make the hanging indent work, make sure there is a blank line between the last line of the bibliographic list and \stopworkscited.
  • Make sure the arguments to the MLA macro are all on one line. (An alternative is to end a line with "%" to ignore the whitespace until the next argument—see the example.)