summaryrefslogtreecommitdiff
path: root/format.tex
blob: 061366ce3cfa6ce8864e627c72ea1d1c1ee594ae (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
%% Links
\input color
\def\link#1#2{%
  \pdfstartlink
    user{/Subtype /Link
    /Border [ 0 0 0 ]
    /A <<
      /Type /Action
      /S /URI
      /URI (#2)
    >>}%
    {\color{blue} #1}%
  \pdfendlink
}

%% Fonts
\font\fourteenbf=cmbx12 at 14pt
\font\fourteenrm=cmr12 at 14pt
\font\twelverm=cmr12

%% \themonth
\edef\themonth{%
    \ifcase\month
        \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
}

%% Headers
{\obeylines\parindent=0in
Holden Rohrer and Nithya Jayakumar
2020 \themonth\ \number\day
Differential Equations (MATH 2552)
Mayer
\medskip
}

%% Sectioning
\def\titlesub#1#2{\centerline{\fourteenbf #1}\centerline{#2}\bigskip}
\newcount\sections \newcount\subsections
\def\section#1{\advance\sections by 1\thesection{#1}}
\def\thesection#1{\vskip .3\hsize\goodbreak\vskip -.3\hsize\bigskip\noindent{\fourteenrm\the\sections\ #1\bigskip}}
\def\subsection#1{\advance\subsections by 1\thesubsection{#1}}
\def\thesubsection#1{\vskip .15\hsize\goodbreak\vskip -.15\hsize\medskip\noindent{\twelverm\the\sections.\the\subsections\ #1\medskip}}

%% Modular Sections
\def\include#1:#2\par{\section{#1}\par\input #2\relax}
\def\sinclude#1:#2\par{\subsection{#1}\par\input #2\relax}

%% Bullet Points and Numbering
\def\pre#1{\par\leavevmode\llap{\hbox to \parindent{\hfil #1 \hfil}}}