diff options
author | Holden Rohrer <holden.rohrer@gmail.com> | 2019-10-21 21:59:07 -0400 |
---|---|---|
committer | Holden Rohrer <holden.rohrer@gmail.com> | 2019-10-21 21:59:07 -0400 |
commit | 66e5114c037279a2bdba36497027cc8d8e4418b2 (patch) | |
tree | d7571d99769f50a3edb1dcaad0400694e2bb91b9 /format.tex | |
parent | 26de8bac9ed3648e22c8bc05d607c119f847b50e (diff) |
modular documents
Diffstat (limited to 'format.tex')
-rw-r--r-- | format.tex | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -17,7 +17,7 @@ \font\fourteenrm=cmr12 at 14pt \font\twelverm=cmr12 -%% Header +%% Headers {\obeylines\parindent=0in Holden Rohrer, Holden Watson, and Nithya Jayakumar 2019 Oct 21 @@ -25,9 +25,15 @@ Applied Combinatorics--Math 3012 Livshyts \medskip } + +%% Sectioning \def\titlesub#1#2{\centerline{\fourteenbf #1}\centerline{#2}\bigskip} \newcount\sections \newcount\subsections -\outer\def\section#1\par{\advance\sections by 1\thesection{#1}} +\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}} -\outer\def\subsection#1\par{\advance\subsections by 1\thesubsection{#1}} +\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\par{\section #1\par\par\input #1\relax} +\def\sinclude#1\par{\subsection #1\par\par\input #1\relax} |