Cleaned up homework template a bit... likely still going to extract functionality to dependency packages, but haven't got a chance yet

This commit is contained in:
Wryn Wagner 2020-02-24 18:33:06 -07:00
parent 7e8ce8a3e0
commit 37c793c6f1

View File

@ -1,45 +1,52 @@
% -- Document body begins on line 80 %
%
\newcommand{\documentTitle} {Homework }
\newcommand{\documentDate} {}
\newcommand{\documentId} {}
\newcommand{\authorName} {Wryn Wagner}
\newcommand{\authorId} {A01995076}
%
%
% ----------------------------------------------------------
% ------ Header Code ---------------------------------------
% ----------------------------------------------------------
% ---------------------------------------------------------------------------------------------
% ------ Document type and page margins -------------------------------------------------------
% ---------------------------------------------------------------------------------------------
\documentclass[letterpaper]{article} \documentclass[letterpaper]{article}
\usepackage[margin=1in,bottom=.5in,includefoot]{geometry} \usepackage[margin=1in,bottom=.5in,includefoot]{geometry}
\usepackage{lastpage} % -- Package used for finding total page numbers \usepackage{lastpage} % -- finds total page numbers
\usepackage{amssymb} % -- Package used for typing "bold" math letters and symbols
\usepackage{amsmath} % -- Package for various math symbols \usepackage{amssymb} % -- "bold" math letters (e.g. set of all integers Z)
\usepackage{arydshln} % -- Package used for dashed lines in tables \usepackage{amsmath} % -- advanced math symbols
\usepackage{dashrule} % -- Package used for dashed lines on the page
\usepackage{listings} % -- Package used for code snippets \usepackage{arydshln} % -- dashed lines within tables
\usepackage[final]{pdfpages} % -- Package used for inserting pages of a PDF file \usepackage{dashrule} % -- dashed lines outside tables
\usepackage{tikz} % -- Package used for drawing graphs
\usepackage{graphicx} % -- Package used to insert graphics \usepackage{listings} % -- code snippet styling block
\usepackage{lipsum} % -- Package for lorem ipsum
\usepackage{kantlipsum} % -- Package for Kant style lorem ipsum \usepackage{tikz} % -- generates graphs and other graphics
\usepackage[english]{babel} % -- Package for English grammar \usepackage[final]{pdfpages} % -- inserts external pdf excerpts
\graphicspath{ {./images/} } \usepackage{graphicx} % -- inserts standard image graphics
\graphicspath{{./graphics/}}
\usepackage{lipsum} % -- generates lorem ipsum
\usepackage{kantlipsum} % -- generates Kantian lorem ipsum
\usepackage[english]{babel} % -- corrects English grammar?
% --------------------------------------------------------------------------------------------- % ----------------------------------------------------------
% Edit this section to create the title, headers, and footers for the document % Edit this section to create the title, headers, and footers for the document
% --------------------------------------------------------------------------------------------- % ----------------------------------------------------------
\newcommand{\homeworkTitle} {Homework } \newcommand{\headerLeft} {\documentTitle: \assignmentDate}
\newcommand{\authorName} {Wryn Wagner}
\newcommand{\Anumber} {A01995076}
\newcommand{\assignmentDate} {}
\newcommand{\classId} {}
% ---------------------------------------------------------------------------------------------
% ------ Header Code --------------------------------------------------------------------------
% ---------------------------------------------------------------------------------------------
\newcommand{\headerLeft} {\homeworkTitle : \assignmentDate}
\newcommand{\headerCenter} {\classId} \newcommand{\headerCenter} {\classId}
\newcommand{\headerRight} {\authorName\ (\Anumber)} \newcommand{\headerRight} {\authorName\ (\authorId)}
\newcommand{\pageOfTotal} {\thepage\ of \pageref{LastPage}} \newcommand{\pageOfTotal} {\thepage\~of~\pageref{LastPage}}
\usepackage{fancyhdr} \usepackage{fancyhdr}
\pagestyle{fancy} \pagestyle{fancy}
@ -48,7 +55,7 @@
\fancyhead[R]{\headerRight} \fancyhead[R]{\headerRight}
\fancyhead[C]{\headerCenter} \fancyhead[C]{\headerCenter}
\fancyfoot[C]{\pageOfTotal} \fancyfoot[C]{\pageOfTotal}
\fancypagestyle{plain}{ \fancypagestyle{plain}{%
\fancyhf{} \fancyhf{}
\fancyhead[L]{\headerLeft} \fancyhead[L]{\headerLeft}
\fancyhead[R]{\headerRight} \fancyhead[R]{\headerRight}
@ -56,38 +63,38 @@
\fancyfoot[C]{\pageOfTotal} \fancyfoot[C]{\pageOfTotal}
} }
\title{\homeworkTitle} \title{\documentTitle}
\author{\authorName \\ \Anumber} \author{\authorName\ \\ \authorId}
\date{\assignmentDate} \date{\assignmentDate}
% --------------------------------------------------------------------------------------------- % ----------------------------------------------------------
% ------ Theorems, Lemmas, and Corollaries ---------------------------------------------------- % ------ Theorems, Lemmas, and Corollaries -----------------
% --------------------------------------------------------------------------------------------- % ----------------------------------------------------------
\newtheorem{theorem}{Theorem}[section] \newtheorem{theorem}{Theorem}[section]
\newtheorem{corollary}{Corollary}[theorem] \newtheorem{corollary}{Corollary}[theorem]
\newtheorem{lemma}[theorem]{Lemma} \newtheorem{lemma}[theorem]{Lemma}
% --------------------------------------------------------------------------------------------- % ----------------------------------------------------------
% --------------------------------------------------------------------------------------------- % ----------------------------------------------------------
% --------------------------------------------------------------------------------------------- % ----------------------------------------------------------
\begin{document} \begin{document}
\maketitle \maketitle
% --------------------------------------------------------------------------------------------- % ----------------------------------------------------------
% Begin document here :) % Begin document here :)
% --------------------------------------------------------------------------------------------- % ----------------------------------------------------------
\section{} %Problem 1 \section{} %Problem 1
\subsection{Prompt} \subsection{Prompt}
\noindent\rule{2in}{0.4pt} \noindent\rule{2in}{0.4pt}
% --------------------------------------------------------------------------------------------- % ----------------------------------------------------------
% --------------------------------------------------------------------------------------------- % ----------------------------------------------------------
% --------------------------------------------------------------------------------------------- % ----------------------------------------------------------
\end{document} \end{document}