summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-03-22 15:02:36 -0400
committerHolden Rohrer <hr@hrhr.dev>2020-03-22 15:02:36 -0400
commitb30a64b5da75096ed18d6a3901959fc52c0937c2 (patch)
treebf6028bca133baf43512e667d96e4eb56181d9d2
parentfb290e415de1183af569d48ebf4d5300492149da (diff)
yanked format from appcomb-proj
-rw-r--r--format.tex42
1 files changed, 42 insertions, 0 deletions
diff --git a/format.tex b/format.tex
new file mode 100644
index 0000000..1fa9d04
--- /dev/null
+++ b/format.tex
@@ -0,0 +1,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}}}