Refactored latex templates
This commit is contained in:
12
latex/times12/body.tex
Normal file
12
latex/times12/body.tex
Normal file
@ -0,0 +1,12 @@
|
||||
\usepackage{times}
|
||||
|
||||
\begin{document}
|
||||
\maketitle
|
||||
% ----------------------------------------------------------
|
||||
% ----------------------------------------------------------
|
||||
|
||||
\kant%
|
||||
|
||||
% ----------------------------------------------------------
|
||||
% ----------------------------------------------------------
|
||||
\end{document}
|
40
latex/times12/formatting.sty
Normal file
40
latex/times12/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}
|
||||
|
10
latex/times12/imports.sty
Normal file
10
latex/times12/imports.sty
Normal file
@ -0,0 +1,10 @@
|
||||
\ProvidesPackage{imports}
|
||||
|
||||
\RequirePackage{times} % -- Formats document with "Times New Roman" font
|
||||
|
||||
\RequirePackage[english]{babel} % -- Ensures correct compilation rules for English
|
||||
|
||||
\RequirePackage{kantlipsum} % -- generates Kantian lorem ipsum
|
||||
|
||||
\RequirePackage{graphicx} % -- inserts standard image graphics
|
||||
\graphicspath{{./graphics/}}
|
Reference in New Issue
Block a user