Refactored latex templates
This commit is contained in:
21
latex/math/body.tex
Normal file
21
latex/math/body.tex
Normal file
@ -0,0 +1,21 @@
|
||||
\newtheorem{theorem}{Theorem}[section]
|
||||
\newtheorem{lemma}[theorem]{Lemma}
|
||||
\newtheorem{corollary}{Corollary}[theorem]
|
||||
|
||||
\begin{document}
|
||||
\maketitle
|
||||
% ----------------------------------------------------------
|
||||
% ----------------------------------------------------------
|
||||
|
||||
% ----------------------------------------------------------
|
||||
\section{} %Problem 1
|
||||
\subsection{Prompt}
|
||||
\kant%
|
||||
|
||||
|
||||
\noindent\rule{2in}{0.4pt}
|
||||
% ----------------------------------------------------------
|
||||
|
||||
% ----------------------------------------------------------
|
||||
% ----------------------------------------------------------
|
||||
\end{document}
|
40
latex/math/formatting.sty
Normal file
40
latex/math/formatting.sty
Normal file
@ -0,0 +1,40 @@
|
||||
\ProvidesPackage{formatting}
|
||||
|
||||
%
|
||||
%
|
||||
|
||||
\newcommand{\headerLeft} {\documentTitle: \documentDate}
|
||||
\newcommand{\headerCenter} {\documentId}
|
||||
\newcommand{\headerRight} {\authorName\ (\authorId)}
|
||||
\newcommand{\pageOfTotal} {\thepage\ of~\pageref{LastPage}}
|
||||
|
||||
%
|
||||
%
|
||||
|
||||
% margins
|
||||
\RequirePackage[margin=1in,bottom=.5in,includefoot]{geometry}
|
||||
|
||||
\RequirePackage{lastpage}
|
||||
\RequirePackage{fancyhdr} \pagestyle{fancy}
|
||||
|
||||
% Page 1
|
||||
\fancypagestyle{plain}{%
|
||||
\fancyhf{}
|
||||
\fancyhead[L]{\headerLeft}
|
||||
\fancyhead[R]{\headerRight}
|
||||
\fancyhead[C]{\headerCenter}
|
||||
\fancyfoot[C]{\pageOfTotal}
|
||||
}
|
||||
|
||||
% Subsequent Pages
|
||||
\fancyhf{}
|
||||
\fancyhead[L]{\headerLeft}
|
||||
\fancyhead[R]{\headerRight}
|
||||
\fancyhead[C]{\headerCenter}
|
||||
\fancyfoot[C]{\pageOfTotal}
|
||||
|
||||
|
||||
\title{\documentTitle}
|
||||
\author{\authorName\ \\ \authorId}
|
||||
\date{\documentDate}
|
||||
|
11
latex/math/imports.sty
Normal file
11
latex/math/imports.sty
Normal file
@ -0,0 +1,11 @@
|
||||
\ProvidesPackage{imports}
|
||||
|
||||
\RequirePackage{amssymb} % -- "bold" math letters (e.g. set of all integers `Z`)
|
||||
\RequirePackage{amsmath} % -- advanced math symbols
|
||||
|
||||
\RequirePackage{listings} % -- code snippet styling block
|
||||
|
||||
\RequirePackage{graphicx} % -- inserts standard image graphics
|
||||
\graphicspath{{./graphics/}}
|
||||
|
||||
\RequirePackage[english]{babel} % -- Ensures correct compilation rules for English
|
Reference in New Issue
Block a user