Guest User

Untitled

a guest
Jun 17th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.89 KB | None | 0 0
  1. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  2. %
  3. %
  4. % The MLA Package for LaTeX
  5. % By Ryan Aycock
  6. % Edited by Steven Wheelwright
  7. % and Edward Z. Yang
  8. % December 09, 2007
  9. %
  10. % For use with LaTeX and pdflatex.
  11. %
  12. % To use,
  13. % 1. Put \usepackage{mla} in the preamble
  14. % 2. After the \begin{document}, put \begin{mla}{Firstname}{Lastname}{Prof's lastname}{class name}{date}{Paper title}
  15. % 3. Immediately - the next line - start typing your paper.
  16. % 4. Put \end{mla} just before \end{document}
  17. %
  18. % To use the bibliography feature,
  19. % 1. Use \begin{workscited} to start the bibliography. There is no need to
  20. % declare a new page or even type "Works Cited" at the top of the page.
  21. % 2. Use \bibent before each entry.
  22. % 3. Put \end{workscited} at the end.
  23. %
  24. %
  25. %
  26. %
  27. % The following template is what I use:
  28. %
  29. % \documentclass[12pt,letterpaper]{article}
  30. % \usepackage{mla}
  31. % \begin{document}
  32. % \begin{mla}{Ryan}{Aycock}{Professor's last name}{Class name}{\today}{Really Cool Title}
  33. % Start typing paragraph 1 here.
  34. %
  35. % Continue the rest of the paper as normal.
  36. %
  37. % \begin{workscited}
  38. %
  39. % \bibent
  40. % author's last name, first name. ``Paper Title." \textit{Book Title}. Date of publication.
  41. %
  42. % \end{workscited}
  43. % \end{mla}
  44. % \end{document}
  45. %
  46. %
  47. % Tips for writing MLA:
  48. % I strongly recommend using \documentclass[12pt,letterpaper]{article}
  49. % Some professors require block quotes to be singled space. To accomplish this with
  50. % the MLA package, use the blocks and blockm environments for single paragraph and
  51. % multiple paragraph cites, respectively.
  52. % LaTeX will not tab the first paragraph after new sections. To get around this, use \tab
  53. % LaTeX does not allow double spaces after periods like most term and research papers require.
  54. % When typing your paper, hit the spacebar twice as normal. After you are finished with your project,
  55. % do a find/replace by changing all double spaces into (space)\(space).
  56. %
  57. %
  58. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  59.  
  60.  
  61. \ProvidesPackage{mla}
  62. \typeout{MLA Package - by Ryan Aycock}
  63.  
  64. % New code thanks to Edward Z. Yang
  65. \ifpdf % We're generating a pdf
  66. \usepackage[pdftex]{color,graphicx}
  67. \pdfpagewidth=\paperwidth
  68. \pdfpageheight=\paperheight
  69. \usepackage{thumbpdf}
  70. %\pdfcompresslevel=9
  71. \else
  72. \usepackage[dvips]{graphicx}
  73. \fi
  74.  
  75. % The old code
  76. % \ifx\pdfoutput\undefined % We're not running pdftex
  77. % \usepackage[dvips]{graphicx}
  78. % \else
  79. % \usepackage[pdftex]{color,graphicx}
  80. % \pdfpagewidth=\paperwidth
  81. % \pdfpageheight=\paperheight
  82. % \usepackage{thumbpdf}
  83. % %\pdfcompresslevel=9
  84. % \fi
  85.  
  86. \usepackage{times}
  87.  
  88. %
  89. % fixes headings
  90. %
  91. \pagestyle{headings}
  92.  
  93. %
  94. % correct page size
  95. %
  96. \setlength{\paperheight}{11in}
  97. \setlength{\paperwidth}{8.5in}
  98. \setlength{\textwidth}{6.5in}
  99. \setlength{\textheight}{9in}
  100. \setlength{\footskip}{40pt}
  101.  
  102. %
  103. % One inch borders
  104. %
  105. \setlength{\hoffset}{0in}
  106. \setlength{\voffset}{-1in}
  107.  
  108. %
  109. % eliminates margin notes
  110. %
  111. \setlength{\oddsidemargin}{0in}
  112. \setlength{\evensidemargin}{0in}
  113. \setlength{\marginparwidth}{0in}
  114. \setlength{\marginparpush}{0in}
  115. \setlength{\marginparsep}{0in}
  116.  
  117. %
  118. % Double space
  119. %
  120. \linespread{2}
  121.  
  122. %
  123. % Places heading 1/2 inch from top of page
  124. %
  125. \setlength{\topmargin}{.5in}
  126. \setlength{\headsep}{18pt}
  127.  
  128. %
  129. % Last name and page number on every page
  130. %
  131. \usepackage{fancyhdr}
  132. \fancypagestyle{norule}{ %
  133. \renewcommand{\headrulewidth}{0pt}
  134. \renewcommand{\footrulewidth}{0pt}
  135. }
  136. \fancyhf{}
  137. \pagestyle{headings}
  138. \pagestyle{norule}
  139.  
  140. %
  141. % If you want an index, uncomment the lines below
  142. %
  143. % \usepackage{makeidx}
  144. % \makeindex
  145.  
  146. %
  147. % Other new commands
  148. %
  149. \newcommand{\tab}{\hspace{0.5in}}
  150.  
  151. %
  152. % MLA environment
  153. %
  154. \newenvironment{mla}[6]{\newcommand{\lastname}{#2} \fancyhead[RO]{\lastname\ \thepage} \begin{flushleft} #1\ #2 \\ #3 \\ #4 \\ #5 \end{flushleft} \begin{center} #6 \end{center} \frenchspacing\setlength{\parindent}{.5in}\hspace{.5in}}{\newpage}
  155. %\newenvironment{mla}[6]{\newcommand{\lastname}{#2} \fancyhead[RO]{\lastname\ \thepage} \raggedright #1\ #2 \\ #3 \\ #4 \\ #5 \\ \centering #6 \\ \frenchspacing\raggedright\setlength{\parindent}{.5in}}{\newpage}
  156.  
  157. %
  158. % Block quote environment
  159. %
  160. \newenvironment{blocks}{\begin{quote} \linespread{1} \small \normalsize}{\end{quote} \linespread{2} \small \normalsize}
  161. \newenvironment{blockm}{\begin{quotation} \linespread{1} \small \normalsize}{\end{quotation} \linespread{2} \small \normalsize}
  162.  
  163. %
  164. % Russ Ault's mla quote environment
  165. %
  166. \newenvironment{mlaquote}{\list{}{\leftmargin=1in}\item[]}{\endlist}
  167. \newenvironment{mlaquotation}{\list{}{\leftmargin=1in}\item[]\parindent=0.5in}{\endlist}
  168.  
  169.  
  170. %
  171. % Works Cited environment
  172. %
  173. \newcommand{\bibent}{\noindent \hangindent 40pt}
  174. \newenvironment{workscited}{\newpage \begin{center} Works Cited \end{center}\begin{flushleft}\bibent}{\end{flushleft}\newpage }
Add Comment
Please, Sign In to add comment