Created
July 31, 2020 17:51
-
-
Save strega-nil/3acc8a3b95d883ecb9865e336a56fd0b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\usepackage{fancyhdr} | |
\usepackage{extramarks} | |
\usepackage{amsmath} | |
\usepackage{amsthm} | |
\usepackage{amsfonts} | |
\usepackage{amssymb} | |
\usepackage[plain]{algorithm} | |
\usepackage{algpseudocode} | |
\usepackage[english]{babel} | |
\usepackage{enumitem} | |
\usepackage{mathtools} | |
\usepackage{siunitx} | |
\usepackage{listings} | |
\usepackage{ifthen} | |
\usepackage{centernot} | |
\usepackage{hyperref} | |
\hypersetup{ | |
colorlinks=true, | |
linkcolor=blue, | |
filecolor=magenta, | |
urlcolor=cyan, | |
} | |
\urlstyle{same} | |
\lstset{showstringspaces=false} | |
\newcommand{\myname}{\textbf{Nicole Mazzuca}} | |
% | |
% Basic Document Settings | |
% | |
\topmargin=-0.45in | |
\evensidemargin=0in | |
\oddsidemargin=0in | |
\textwidth=6.5in | |
\textheight=9.0in | |
\headsep=0.25in | |
\linespread{1.1} | |
\pagestyle{fancy} | |
\lhead{\myname} | |
\chead{\papertitle} | |
\rhead{\firstxmark} | |
\lfoot{\lastxmark} | |
\cfoot{\thepage} | |
\renewcommand\headrulewidth{0.4pt} | |
\renewcommand\footrulewidth{0.4pt} | |
\setlength\parindent{0pt} | |
\setlength\parskip{4pt} | |
\newtheorem{theorem}{Theorem}[section] | |
\newtheorem{definition}{Definition}[section] | |
\newtheorem{remark}[definition]{Remark} | |
\newtheorem{lemma}[theorem]{Lemma} | |
\newtheorem{proposition}[theorem]{Proposition} | |
\newtheorem{corollary}[theorem]{Corollary} | |
\newtheorem{claim}[theorem]{Claim} | |
% Homework Problem Environment | |
\newcounter{hwCurrentChapter} | |
\newcounter{hwCurrentSection} | |
\newenvironment*{hwChapter}[1]{ | |
\setcounter{section}{#1} | |
\setcounter{hwCurrentChapter}{#1} | |
\setcounter{hwCurrentSection}{-1} | |
\section*{Chapter #1}} | |
\newenvironment*{hwSection}[1]{ | |
\setcounter{hwCurrentSection}{#1} | |
\ifthenelse{\value{hwCurrentChapter} < 0} | |
{\subsection*{Section #1}} | |
{\subsection*{Section \thehwCurrentChapter.#1}} | |
} | |
\newenvironment*{hwProblem}[1]{ | |
\ifthenelse{\value{hwCurrentChapter} < 0} | |
{\subsubsection*{Problem #1}} | |
{\ifthenelse{\value{hwCurrentSection} < 0} | |
{\subsubsection*{Chapter \thehwCurrentChapter, Problem #1}} | |
{\subsubsection*{Section \thehwCurrentChapter.\thehwCurrentSection, Problem #1}} | |
} | |
} | |
\newenvironment*{hwMiscProblems} | |
[1][Miscellaneous Problems] | |
{ | |
\stepcounter{section} | |
\setcounter{hwCurrentChapter}{-1} | |
\section*{#1} | |
} | |
% | |
% Various Helper Commands | |
% | |
% Integral dx or dt | |
\newcommand{\diff}{\mathrm{d}} | |
% Partial dx or dt | |
\newcommand{\pdiff}{\partial} | |
% gradient | |
\newcommand{\gradient}{\nabla} | |
% For simple derivatives | |
\newcommand{\sderiv}[2]{\frac{\diff #1}{\diff #2}} | |
% For simple partial derivatives | |
\newcommand{\spderiv}[2]{\frac{\pdiff #1}{\pdiff #2}} | |
% For derivatives | |
\newcommand{\deriv}[2]{\frac{\diff}{\diff #2} \left( #1 \right)} | |
% For partial derivatives | |
\newcommand{\pderiv}[2]{\frac{\pdiff}{\pdiff #2} \left( #1 \right)} | |
% evaluated at | |
\newcommand{\evaluated}{\Big|} | |
% defined to be equivalent to | |
\newcommand{\colonequiv}{\vcentcolon \equiv} | |
% | |
% function calls and parens | |
% | |
% normal parens | |
\newcommand{\paren}[1]{ { \left( #1 \right) } } | |
\newcommand{\tup}[1]{ \paren{ #1 } } | |
% paren square | |
\newcommand{\parensq}[1]{ { \left[ #1 \right] } } | |
\newcommand{\class}[1]{\parensq{\, #1 \,}} | |
% paren curly | |
\newcommand{\parencr}[1]{ { \left\{ #1 \right\} } } | |
\newcommand{\cset}[1]{ \parencr{#1} } | |
% paren angle | |
\newcommand{\parenng}[1]{ { \left< #1 \right> } } | |
\newcommand{\cvec}[1]{ \parenng{#1} } | |
% absolute value | |
\newcommand{\abs}[1]{ { \left| #1 \right| } } | |
% length | |
\newcommand{\length}[1]{ { \left\| #1 \right\| } } | |
% ranges | |
\newcommand{\rangex}[2]{ { \paren{#1, #2} } } | |
\newcommand{\rangei}[2]{ { \parensq{#1, #2} } } | |
\newcommand{\rangexi}[2]{ { \left( #1, #2 \right] } } | |
\newcommand{\rangeix}[2]{ { \left[ #1, #2 \right) } } | |
% call | |
\newcommand{\call}[2]{{#1 \paren{#2}}} | |
% function name | |
\newcommand{\func}[1]{{\operatorname{#1}}} | |
% call function with name | |
\newcommand{\callf}[2]{{\func{#1}\paren{#2}}} | |
% common functions | |
\renewcommand{\ln}[1]{\callf{ln}{#1}} | |
\renewcommand{\log}[1]{\callf{log}{#1}} | |
\newcommand{\logb}[2]{\func{log}_{#1} \paren{#2}} | |
\renewcommand{\sin}[1]{\callf{sin}{#1}} | |
\renewcommand{\cos}[1]{\callf{cos}{#1}} | |
\newcommand{\power}[1]{\call{\mathcal{P}}{#1}} | |
% classes and sets | |
\newcommand{\set}[1]{\mathbf{#1}} | |
\newcommand{\N}{\mathbb{N}} | |
\newcommand{\Z}{\mathbb{Z}} | |
\newcommand{\Q}{\mathbb{Q}} | |
\newcommand{\R}{\mathbb{R}} | |
\newcommand{\C}{\mathbb{C}} | |
\newcommand{\Hm}{\mathbb{H}} | |
\newcommand{\Set}{\set{Set}} | |
% for matrices | |
\makeatletter | |
\renewcommand*\env@matrix[1][*\c@MaxMatrixCols c]{% | |
\hskip -\arraycolsep | |
\let\@ifnextchar\new@ifnextchar | |
\array{#1}} | |
\makeatother | |
% complex numbers | |
\newcommand{\Real}{\mathrm{Real}} | |
\newcommand{\Imag}{\mathrm{Imag}} | |
% such that | |
\newcommand{\st}{\ \textit{s.t.} \ } | |
% where | |
\newcommand{\where}{\ \textit{where}\ } | |
% fun | |
\newcommand{\fun}{\text{fun}} | |
% =/> | |
\newcommand{\notimplies}{\centernot\implies} | |
% equiv with text | |
\newcommand{\xequiv}[1]{{\overset{\text{#1}}{\equiv}}} | |
% let | |
\newcommand{\Let}{\textit{let}\,} | |
\newcommand{\Choose}{\textit{choose}\,} | |
% true and false | |
\newcommand{\true}{\textit{true}} | |
\newcommand{\false}{\textit{false}} | |
% for minor extra vertical spacing in splits | |
\newcommand{\splitpara}{\\[5pt]} | |
% C++ | |
\newcommand{\CC}{C\nolinebreak\hspace{-.05em}\raisebox{.4ex}{\tiny\bf +}\nolinebreak\hspace{-.10em}\raisebox{.4ex}{\tiny\bf +}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment