blob: 2f99c765395a41673a5f53f71942917550a81a73 (
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
|
%%fonts
\font\fourteenrm=ptmr7t at 14pt
\font\twelverm=ptmr7t at 12pt
\font\twelvebf=ptmb7t at 12pt
\font\twelveit=ptmri7t at 12pt
%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\@date{\the\day \threemonth{\the\month}\ \the\year}
\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 \fourteenrm \baselineskip=28pt #1 \hfil} \titlespacing}
%%running header
\nopagenumbers
\vsize=9.5in
\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
%%fixes @ character
\catcode `\@12\relax
%%citation formatting (\cite and \biblio) from relevant local file
\input citations.tex
%%test stuff
\numberfirstpage \spaceaftertitle
\name{Holden} \last{Rohrer}
\prof{Jones}
\header
\title{Text}
epic bruh moment
\bye
|