Refactored latex templates

This commit is contained in:
Wryn Wagner
2020-03-09 13:56:21 -06:00
parent e500a0055e
commit 49d75e1ef6
12 changed files with 221 additions and 315 deletions

9
latex/default/body.tex Normal file
View File

@ -0,0 +1,9 @@
\begin{document}
\maketitle
% ----------------------------------------------------------
% ----------------------------------------------------------
% ----------------------------------------------------------
% ----------------------------------------------------------
\end{document}

View 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}

19
latex/default/imports.sty Normal file
View File

@ -0,0 +1,19 @@
\ProvidesPackage{imports}
\RequirePackage{amssymb} % -- "bold" math letters (e.g. set of all integers `Z`)
\RequirePackage{amsmath} % -- advanced math symbols
\RequirePackage{arydshln} % -- dashed lines within tables
\RequirePackage{dashrule} % -- dashed lines outside tables
\RequirePackage{listings} % -- code snippet styling block
\RequirePackage{tikz} % -- generates graphs and other graphics
\RequirePackage[final]{pdfpages} % -- inserts external pdf excerpts
\RequirePackage{graphicx} % -- inserts standard image graphics
\graphicspath{{./graphics/}}
\RequirePackage{lipsum} % -- generates lorem ipsum
\RequirePackage{kantlipsum} % -- generates Kantian lorem ipsum
\RequirePackage[english]{babel} % -- Ensures correct compilation rules for English