yage
96992e9344
===================================================================== --- New Scripts -------------------------- zsh ) latex + latex template engine - latex/build-pdf - latex/cleanup - latex/create-new - latex/get-pdf - latex/open-pdf beta SQL script -- got tired of floating this; works, but only OK - db/run-sql/postgres --- Changes ------------------------------ - Added 'math', 'basic', and 'times-new-roman' templates to latex - Added 'readlink' to list of required coreutils - Added __INPUT to read into a variable with prompt (zsh/utils/io) - Added $EXECUTION_DIR to interact with the user's working directory --- Bug Fixes ---------------------------- - subscwrypts no longer force stdout/stderr to tty
47 lines
1.2 KiB
TeX
47 lines
1.2 KiB
TeX
\ProvidesPackage{formatting}
|
|
% ---------------------------------------------------------------------
|
|
|
|
\newcommand{\headerLeft} {\documentTitle: \documentDate}
|
|
\newcommand{\headerCenter} {\documentId}
|
|
\newcommand{\headerRight} {\authorName\ (\authorId)}
|
|
\newcommand{\pageOfTotal} {\thepage\ of~\pageref{LastPage}}
|
|
|
|
\newtheorem{theorem}{Theorem}[section]
|
|
\newtheorem{lemma}[theorem]{Lemma}
|
|
\newtheorem{corollary}{Corollary}[theorem]
|
|
|
|
\RequirePackage[margin=1in,bottom=.5in,includefoot]{geometry}
|
|
\RequirePackage{lastpage}
|
|
\RequirePackage{fancyhdr}
|
|
|
|
% ---------------------------------------------------------------------
|
|
% Page 1
|
|
|
|
\pagestyle{fancy}
|
|
\fancypagestyle{plain}{%
|
|
\fancyhf{}
|
|
\fancyhead[L]{\headerLeft}
|
|
\fancyhead[R]{\headerRight}
|
|
\fancyhead[C]{\headerCenter}
|
|
\fancyfoot[C]{\pageOfTotal}
|
|
}
|
|
|
|
\renewcommand{\baselinestretch}{1}
|
|
\setlength{\parskip}{0em}
|
|
\setlength{\parindent}{0em}
|
|
|
|
% ---------------------------------------------------------------------
|
|
% Pages 2+
|
|
|
|
\fancyhf{}
|
|
\fancyhead[L]{\headerLeft}
|
|
\fancyhead[R]{\headerRight}
|
|
\fancyhead[C]{\headerCenter}
|
|
\fancyfoot[C]{\pageOfTotal}
|
|
|
|
% ---------------------------------------------------------------------
|
|
|
|
\title{\documentTitle}
|
|
\author{\authorName\ \\ \authorId}
|
|
\date{\documentDate}
|