\usepackage{amsfonts, amsmath, amsthm} \usepackage{comment} \usepackage[shortlabels]{enumitem} \usepackage{environ} \usepackage{fancybox} \usepackage{fontawesome5} \usepackage{mathrsfs} \usepackage{soul} \usepackage[usenames,dvipsnames]{xcolor} % `hyperref` comes after `xr-hyper`. \usepackage{xr-hyper} \usepackage{hyperref} % ======================================== % Linking % ======================================== \hypersetup{colorlinks=true, linkcolor=blue, urlcolor=blue} \newcommand{\leanref}[2]{\textcolor{blue}{$\pmb{\exists}\;{-}\;$}\href{#1}{#2}} \newcommand{\textref}[1]{\text{\nameref{#1}}} % ======================================== % Environments % ======================================== \newcommand{\divider}{\vspace{10pt}\hrule\vspace{10pt}} \newcommand{\header}[2]{\title{#1}\author{#2}\date{}\maketitle} % Admonitions. \newcommand{\admonition}[2]{% \begin{center} \doublebox{ \begin{minipage}{0.95\textwidth} \vspace{2pt} \hl{#1} #2 \vspace{2pt} \end{minipage}} \end{center}} \newcommand{\note}[1]{\admonition{Note:}{#1}} \newcommand{\todo}[1]{\admonition{TODO:}{#1}} % Statements. \newenvironment{axiom}{% \paragraph{\normalfont\normalsize\textit{Axiom.}}} {\hfill$\square$} \newenvironment{definition}{% \paragraph{\normalfont\normalsize\textit{Definition.}}} {\hfill$\square$} \newtheorem{lemmainner}{Lemma} \newenvironment{lemma}[1]{% \renewcommand\thelemmainner{#1}% \lemmainner }{\endlemmainner} \newtheorem{theoreminner}{Theorem} \newenvironment{theorem}[1]{% \renewcommand\thetheoreminner{#1}% \theoreminner }{\endtheoreminner} % ======================================== % Status % ======================================== \DeclareRobustCommand{\defined}[1]{% \texorpdfstring{\color{darkgray}\faParagraph\ #1}{#1}} \DeclareRobustCommand{\verified}[1]{% \texorpdfstring{\color{teal}\faCheckCircle\ #1}{#1}} \DeclareRobustCommand{\partial}[1]{% \texorpdfstring{\color{Fuchsia}\faPencil*\ #1}{#1}} \DeclareRobustCommand{\unverified}[1]{% \texorpdfstring{\color{Maroon}\faExclamationCircle\ #1}{#1}} % ======================================== % Math % ======================================== \newcommand{\abs}[1]{\left|#1\right|} \newcommand{\ceil}[1]{\left\lceil#1\right\rceil} \newcommand{\floor}[1]{\left\lfloor#1\right\rfloor} \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)}