From 87c591322b218d16bbccadd594788ac2480a2bd5 Mon Sep 17 00:00:00 2001 From: Wryn Wagner Date: Tue, 10 Mar 2020 08:50:53 -0600 Subject: [PATCH] updated times12 latex template --- latex/times12/body.tex | 9 ++++++- latex/times12/formatting.sty | 48 +++++++++++++++++------------------- 2 files changed, 31 insertions(+), 26 deletions(-) diff --git a/latex/times12/body.tex b/latex/times12/body.tex index 366c704..2001a24 100644 --- a/latex/times12/body.tex +++ b/latex/times12/body.tex @@ -1,10 +1,17 @@ \usepackage{times} +% custom headers +\newcommand{\firstH}[1] {\begin{large}\textbf{#1}\end{large}\par} +\newcommand{\secondH}[1] {\textbf{#1}\par} +\newcommand{\thirdH}[1] {\textbf{#1}. } +\newcommand{\fourthH}[1] {\textbf{\textit{#1}}. } + \begin{document} -\maketitle +\insertTitle% % ---------------------------------------------------------- % ---------------------------------------------------------- +\firstH{Blah} \kant% % ---------------------------------------------------------- diff --git a/latex/times12/formatting.sty b/latex/times12/formatting.sty index 414fc04..70c319b 100644 --- a/latex/times12/formatting.sty +++ b/latex/times12/formatting.sty @@ -3,38 +3,36 @@ % % -\newcommand{\headerLeft} {\documentTitle: \documentDate} -\newcommand{\headerCenter} {\documentId} -\newcommand{\headerRight} {\authorName\ (\authorId)} -\newcommand{\pageOfTotal} {\thepage\ of~\pageref{LastPage}} +\newcommand{\horizontalHeader} {% + \authorName\hfill + \authorId\hfill + \documentId\hfill + \documentDate% +} % % % margins -\RequirePackage[margin=1in,bottom=.5in,includefoot]{geometry} +\RequirePackage[margin=1in]{geometry} -\RequirePackage{lastpage} + +% page header / page footer \RequirePackage{fancyhdr} \pagestyle{fancy} -% Page 1 -\fancypagestyle{plain}{% - \fancyhf{} - \fancyhead[L]{\headerLeft} - \fancyhead[R]{\headerRight} - \fancyhead[C]{\headerCenter} - \fancyfoot[C]{\pageOfTotal} +\renewcommand{\headrulewidth}{0pt} +\fancyhead[C]{\horizontalHeader} +\fancyfoot[C]{\thepage} + +% paragraph spacing / line indent +\renewcommand{\baselinestretch}{1} +\setlength{\parskip}{1em} +\setlength{\parindent}{0em} +\raggedright% + + +% title format +\newcommand{\insertTitle} {% + \centerline{\begin{large}\textbf{\documentTitle}\end{large}} } -% Subsequent Pages -\fancyhf{} -\fancyhead[L]{\headerLeft} -\fancyhead[R]{\headerRight} -\fancyhead[C]{\headerCenter} -\fancyfoot[C]{\pageOfTotal} - - -\title{\documentTitle} -\author{\authorName\ \\ \authorId} -\date{\documentDate} -