2023-05-10 16:45:42 +00:00
|
|
|
\usepackage{amsfonts, amsmath, amsthm}
|
|
|
|
\usepackage[shortlabels]{enumitem}
|
|
|
|
\usepackage{environ}
|
|
|
|
\usepackage{fancybox}
|
|
|
|
\usepackage{fontawesome5}
|
2023-04-10 12:56:47 +00:00
|
|
|
\usepackage{hyperref}
|
2023-05-10 16:45:42 +00:00
|
|
|
\usepackage{mathrsfs}
|
|
|
|
\usepackage{soul, xcolor}
|
2023-04-10 12:56:47 +00:00
|
|
|
|
2023-05-10 16:45:42 +00:00
|
|
|
% ========================================
|
|
|
|
% Linking
|
|
|
|
% ========================================
|
2023-04-10 12:56:47 +00:00
|
|
|
|
|
|
|
\hypersetup{colorlinks=true, urlcolor=blue}
|
2023-05-06 18:34:05 +00:00
|
|
|
|
2023-05-10 16:45:42 +00:00
|
|
|
% The first argument refers to a relative path upward from a current file to
|
|
|
|
% the root of the workspace (i.e. where this `preamble.tex` file is located).
|
|
|
|
% #1 - Path to root
|
|
|
|
% #2 - Location
|
|
|
|
% #3 - Namespace
|
|
|
|
% #4 - Presentation
|
|
|
|
\newcommand{\lean}[4]{\href{#1/#2.html\##3}{#4}}
|
|
|
|
\newcommand{\hyperlabel}[1]{%
|
|
|
|
\label{#1}%
|
|
|
|
\hypertarget{#1}{}}
|
|
|
|
|
|
|
|
% ========================================
|
|
|
|
% Environments
|
|
|
|
% ========================================
|
|
|
|
|
|
|
|
\newcommand{\divider}{%
|
|
|
|
\vspace{10pt}
|
|
|
|
\hrule
|
|
|
|
\vspace{10pt}}
|
|
|
|
\newcommand{\header}[2]{%
|
|
|
|
\title{#1}
|
|
|
|
\author{#2}
|
|
|
|
\date{}
|
|
|
|
\maketitle}
|
|
|
|
\newcommand{\note}[1]{%
|
|
|
|
\begin{center}
|
|
|
|
\doublebox{
|
|
|
|
\begin{minipage}{0.95\textwidth}
|
|
|
|
\vspace{2pt}
|
|
|
|
\hl{Note}: #1
|
|
|
|
\vspace{2pt}
|
|
|
|
\end{minipage}}
|
|
|
|
\end{center}}
|
|
|
|
|
|
|
|
% Status of a proof. A statement/theorem is verified if both a LaTeX proof
|
|
|
|
% and a corresponding Lean proof has been written. If a Lean proof is in
|
|
|
|
% progress, it's in a "proceeding" state. Otherwise it is unverified.
|
|
|
|
\DeclareRobustCommand{\verified}[1]{%
|
|
|
|
\texorpdfstring{\color{teal}#1\ \faCheckCircle}{#1}}
|
|
|
|
\DeclareRobustCommand{\proceeding}[1]{%
|
|
|
|
\texorpdfstring{\color{magenta}#1\ \faSpinner}{#1}}
|
|
|
|
\DeclareRobustCommand{\unverified}[1]{%
|
|
|
|
\texorpdfstring{\color{red}#1\ \faExclamationCircle}{#1}}
|
|
|
|
|
|
|
|
% ========================================
|
|
|
|
% Math
|
|
|
|
% ========================================
|
|
|
|
|
2023-05-09 17:15:49 +00:00
|
|
|
\newcommand{\abs}[1]{\left|#1\right|}
|
2023-05-08 19:18:12 +00:00
|
|
|
\newcommand{\ceil}[1]{\left\lceil#1\right\rceil}
|
|
|
|
\newcommand{\floor}[1]{\left\lfloor#1\right\rfloor}
|
2023-05-09 17:15:49 +00:00
|
|
|
\newcommand{\icc}[2]{\left[#1, #2\right]}
|
|
|
|
\newcommand{\ico}[2]{\left[#1, #2\right)}
|
|
|
|
\newcommand{\ioc}[2]{\left(#1, #2\right]}
|
|
|
|
\newcommand{\ioo}[2]{\left(#1, #2\right)}
|