From 66e5114c037279a2bdba36497027cc8d8e4418b2 Mon Sep 17 00:00:00 2001 From: Holden Rohrer Date: Mon, 21 Oct 2019 21:59:07 -0400 Subject: modular documents --- format.tex | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'format.tex') diff --git a/format.tex b/format.tex index bcff360..f35624a 100644 --- a/format.tex +++ b/format.tex @@ -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} -- cgit