Debian Codegraph @

texmf-dist/doc/latex/mlacls/mla-example.tex

raw
1 \documentclass[mla8]{mla}
2
3 \title{Sample MLA Document}
4 \author{John Doe}
5 \professor{Dr.\ Suzie Que}
6 \course{\LaTeX\ 101}
7 \date{\mladate} % see docs for `\mladate'
8
9 % The .bib file (explained later) must be included in the preamble
10 \addbibresource{mla-example.bib}
11
12 \begin{document}
13
14 \begin{paper}
15
16 This is an example document using ``mla.cls''.
17 The header is automatically printed upon using the ``paper'' class,
18 which is why there is no ``\textbackslash{}maketitle''.
19
20 \section{Professors who prefer sections}
21
22 Sometimes, research papers can become unmanageably lengthy.
23 In that case, section headings can help divide up the ideas
24 to make it more accessible to the reader.
25 Though this paper is short, section headings are employed
26 as an example of the ``mla'' class' capabilities.
27
28 Some professors may explicitly require or denounce use of headings.
29 Dr.\ Suzie Que of Anytown, PA requires they be used for anything
30 longer than five pages:
31 \begin{blockquote}
32 John---so help me God---if you turn in another twenty-page research
33 paper with no logical breaks I will hang you at the stake.
34 Even though the MLA style guide doesn't say anything about
35 section headings, they're not actually prohibited.
36 So, if you turn in \emph{anything} longer than five pages to me
37 and there isn't a \emph{single} break or section heading,
38 I will dock your grade to an F.
39 Capisce? \cite{que2019}
40 \end{blockquote}
41 Despite her language, she does have a point to say.
42
43 \subsection{Subsections}
44
45 Alongside regular top-level sections, one can use
46 ``\textbackslash{}subsection'' commands too\endnote{Section commands
47 in ``mla.cls'' work identical to those of the ``article'' class.}.
48
49 \section{Lists}
50
51 Vertical lists are a rarity in MLA format, but if one so pleases,
52 they can be used.
53 The ``itemize'', ``enumerate'' and ``description'' lists
54 work just as expected, even with sublists.
55
56 \begin{itemize}
57 \item A bogus item
58 \item Lorem ipsum dolor sit amet. This item has a bunch of text
59 just so it covers more than one line in the paper and shows
60 proper indentation.
61 \item Last item!
62 \begin{enumerate}
63 \item Just kidding; there's a subitem. And it's a number!
64 \end{enumerate}
65 \item Okay, now it's the last item.
66 \end{itemize}
67
68 \section{Figures}
69
70 On rare occasions, you might have to use figures or tables
71 in your paper.
72 Good news is the ``figure'' and ``table'' environments
73 work exactly as expected!
74 Just make sure to use ``\textbackslash{}begin\{figure\}[H]''
75 if you want the image to stay exactly where you put it.
76 \begin{figure}[H]
77 \includegraphics[width=0.5\linewidth]{mla-example-image}
78 \caption{A scene from atop Spruce Knob, West Virginia}
79 \end{figure}
80 And yes, I shamelessly used my own image.
81
82 \section{Using endnotes}
83
84 As one may notice, the above subsection used an endnote.
85 These can simply be cited with
86 ``Yada yada text\textbackslash{}endnote\{more info\ldots\}.''
87 Endnotes can be easily printed in correct format by calling
88 ``\textbackslash{}printendnotes'' within the
89 ``notes'' environment.
90
91 \section{Using bibliographies}
92
93 Dr.\ Suzie Que was cited in the above blockquote.
94 The ins-and-outs of ``biblatex'' will not be explained in this
95 document, so please refer to online documentation such as the
96 ``BibLaTeX Cheat Sheet''.
97
98 Just as with the endnotes,
99 the bibliography can be easily printed in correct format by calling
100 ``\textbackslash{}printbibliography[heading=none]'' within the
101 ``workscited'' environment.
102 (The ``heading=none'' part is important; the ``workscited'' environment
103 already prints one.)
104
105 \end{paper}
106
107 \begin{notes}
108
109 \printendnotes
110
111 \end{notes}
112
113 \begin{workscited}
114
115 \printbibliography[heading=none]
116
117 \end{workscited}
118
119 \end{document}