Last active
January 23, 2022 02:06
-
-
Save willwm/83b038fddfe94d0bb1dc856568c73fa1 to your computer and use it in GitHub Desktop.
preamble.tex: LaTeX Preamble Template (Will Wolff-Myren)
This file contains 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
%% preamble.tex: LaTeX Preamble Template (Will Wolff-Myren) %% | |
\usepackage{amsmath, amsthm, amssymb, enumerate, setspace} | |
\usepackage{mathtools} % https://ctan.org/pkg/mathtools | |
\usepackage{fancyhdr} % Fancy header. ;-) | |
\usepackage{titlesec} % For chapter/section/subsection customizations | |
\usepackage{hyperref} % https://www.andy-roberts.net/writing/latex/pdfs | |
\usepackage{tcolorbox} % For references from the book | |
\usepackage{relsize} % For resizing fractions in displaymath | |
\usepackage{marvosym} % For the contradiction lightning bolt | |
\usepackage[hmargin=0.8in,vmargin=1in]{geometry} | |
%% Document Setup %% | |
\makeatletter | |
\let\Title\@title | |
\let\Author\@author | |
\let\Date\@date | |
\makeatother | |
%% \usepackage{fancyhdr} %% | |
\pagestyle{fancy} | |
\setlength{\headheight}{25pt} | |
\lhead{\Title} | |
\rhead{\Author} | |
%% \usepackage{hyperref} %% | |
\hypersetup{ | |
pdfauthor={\Author}, | |
pdftitle={\Title} | |
} | |
%% \usepackage{titlesec} %% | |
% https://www.overleaf.com/learn/latex/Sections_and_chapters % | |
\titleformat{\subsection}[runin]{\normalfont\bfseries}{\thesubsection}{}{} | |
\titleformat{\subsubsection}[runin]{\normalfont\bfseries}{\thesubsubsection}{}{} | |
%% Spacing/Formatting %% | |
\linespread{1.1} | |
\setlength{\parskip}{0.5em} | |
\newcommand{\skipqed}{\let\qed\relax} | |
\newcommand{\ds}{\displaystyle} | |
\newcommand{\br}{\vspace{3mm}} | |
% Making epsilons look like epsilons... | |
\renewcommand{\epsilon}{\varepsilon} | |
%% Constants %% | |
\newcommand{\eps}{\epsilon} | |
\newcommand{\A}{\forall} | |
\newcommand{\E}{\exists} | |
\newcommand{\N}{\mathbb{N}} | |
\newcommand{\Q}{\mathbb{Q}} | |
\newcommand{\R}{\mathbb{R}} | |
\newcommand{\Z}{\mathbb{Z}} | |
%% Convenience Wrappers %% | |
\newcommand{\pf}[1]{\noindent\textit{Proof (#1):}\br} | |
\newcommand{\seq}[1]{\{#1\}} | |
\newcommand{\linf}[1]{\lim_{#1\to\infty}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment