bookshelf/preamble.tex

23 lines
783 B
TeX

\usepackage{amsfonts, amsthm}
\usepackage{hyperref}
\newtheorem{theorem}{Theorem}
\newtheorem{xtheoreminner}{Theorem}
\newenvironment{xtheorem}[1]{%
\renewcommand\thextheoreminner{#1}%
\xtheoreminner
}{\endxtheoreminner}
\hypersetup{colorlinks=true, urlcolor=blue}
\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)}
% 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).
\newcommand{\lean}[4]{\href{#1/#2.html\##3}{#4}}