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

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

%% Headers
{\obeylines\parindent=0in
Holden Rohrer, Holden Watson, and Nithya Jayakumar
2019 Oct 21
Applied Combinatorics--Math 3012
Livshyts
\medskip
}

%% Sectioning
\def\titlesub#1#2{\centerline{\fourteenbf #1}\centerline{#2}\bigskip}
\newcount\sections \newcount\subsections
\def\section#1\par{\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\par{\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\par\input #2\relax}
\def\sinclude#1:#2\par{\subsection #1\par\par\input #2\relax}

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