aboutsummaryrefslogtreecommitdiff
path: root/mla8.tex
blob: 5cf9ce95eadc1596869d6ec0a835a6af8486e131 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
%%fonts

\font\fourteenrm=ptmr7t at 14pt
\font\twelverm=ptmr7t at 12pt

\font\fourteenbf=ptmb7t at 14pt
\font\twelvebf=ptmb7t at 12pt

\font\fourteenit=ptmri7t at 14pt
\font\twelveit=ptmri7t at 12pt

%%\font value reference for checks

{
\fourteenrm \xdef\fourteenrmid{\the\font}
\fourteenit \xdef\fourteenitid{\the\font}
\fourteenbf \xdef\fourteenbfid{\the\font}
\twelverm   \xdef\twelvermid{\the\font}
\twelveit   \xdef\twelveitid{\the\font}
\twelvebf   \xdef\twelvebfid{\the\font}
}

%%semantic fonts

\def\large{%
  \edef\curfont{\the\font}%
  \ifx\curfont\twelvermid \fourteenrm \fi%
  \ifx\curfont\twelvebfid \fourteenbf \fi%
  \ifx\curfont\twelveitid \fourteenit \fi%
  \baselineskip=28pt%
}

\def\it{%
  \edef\curfont{\the\font}%
  \ifx\curfont\twelvermid \twelveit \fi%
  \ifx\curfont\fourteenrmid \fourteenit \fi%
  \ifx\curfont\twelvebfid \twelveit \fi%
  \ifx\curfont\fourteenbfid \fourteenit \fi%
}

\def\bf{%
  \edef\curfont{\the\font}%
  \ifx\curfont\twelvermid \twelvebf \fi%
  \ifx\curfont\fourteenrmid \fourteenbf \fi%
  \ifx\curfont\twelveitid \twelvebf \fi%
  \ifx\curfont\fourteenitid \fourteenbf \fi%
}

%math family

\font\twelvermop=zptmcm7t at 12pt
\font\tenrmop=zptmcm7t at 10pt
\font\sevenrmop=zptmcm7t at 7pt

\textfont0=\twelvermop
\scriptfont0=\tenrmop
\scriptscriptfont0=\sevenrmop

%include symbols later? https://tex.stackexchange.com/questions/161226/how-can-i-use-times-fonts-in-plain-tex

\twelverm \baselineskip=24pt

%%header

\catcode `\@ 11

\def\threemonth#1{ %first input is numerical value of month
  \ifcase #1
    \or Jan\or Feb\or Mar%
    \or Apr\or May\or Jun%
    \or Jul\or Aug\or Sep%
    \or Oct\or Nov\or Dec%
  \fi
}
\def\@name{} \def\name#1{\def\@name{#1}}
\def\@last{} \def\last#1{\def\@last{#1}}
\def\@prof{} \def\prof#1{\def\@prof{#1}}
\def\@clas{} \def\clas#1{\def\@clas{#1}}
\def\today{\the\day \threemonth{\the\month}\ \the\year}
\def\setdate#1{\def\@date{#1}} %sets \@date to user value
\def\@date{\today} %uses today's date if author doesn't choose; to choose, author should use \setdate

\long\def\header{
\noindent\@name\ \@last \par
\noindent\@prof \par
\noindent\@clas \par
\noindent\@date \par
}
\def\titlespacing{} \def\spaceaftertitle{\def\titlespacing{\bigskip}} %gives the option of adding a large space after the title
\def\title#1{\line{\hfil \large #1 \hfil} \titlespacing}

%%running header

\nopagenumbers
\vsize=\dimexpr 9.5in \relax
\voffset=\dimexpr 12pt - 0.5in \relax
\def\firsthead{} %a store for the first page's running header
\def\numberfirstpage{\def\firsthead{\@last\ 1}} %optionally enables numbering on first page to same as others
\headline={\baselineskip=0.5in \hfil \vbox{\hbox{\ifnum\pageno=1 \firsthead \else \twelverm\@last\ \the\pageno \fi}}}

%%paragraph indent size

\parindent=0.5in

%%citation formatting (\cite and \biblio) from relevant local file

\input citations.tex

%%fixes @ character

\catcode `\@12\relax

%%blockquotes

\long\def\blockquote#1{{ %double bracket to group
  \par
  \everyhbox{x}
  \leftskip=1in \parindent=0.25in
  \noindent#1
  \par
}}