2023-04-10 12:56:47 +00:00
|
|
|
\usepackage{amsfonts, amsthm}
|
2023-05-06 18:34:05 +00:00
|
|
|
\usepackage[T1]{fontenc}
|
2023-04-10 12:56:47 +00:00
|
|
|
\usepackage{hyperref}
|
|
|
|
|
|
|
|
\newtheorem{theorem}{Theorem}
|
|
|
|
\newtheorem{xtheoreminner}{Theorem}
|
|
|
|
\newenvironment{xtheorem}[1]{%
|
|
|
|
\renewcommand\thextheoreminner{#1}%
|
|
|
|
\xtheoreminner
|
|
|
|
}{\endxtheoreminner}
|
|
|
|
|
|
|
|
\hypersetup{colorlinks=true, urlcolor=blue}
|
2023-05-06 18:34:05 +00:00
|
|
|
|
|
|
|
% https://tex.stackexchange.com/a/232188
|
|
|
|
\newcommand{\startunderscoreletter}{\catcode`_ 12\relax}
|
|
|
|
\newcommand{\stopunderscoreletter}{\catcode`_ 8\relax}
|
|
|
|
|
|
|
|
% 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).
|
2023-05-06 20:02:36 +00:00
|
|
|
\newcommand{\lean}[3]{\href{#1/#2.html\##3}{
|
2023-05-06 18:34:05 +00:00
|
|
|
\startunderscoreletter #3 \stopunderscoreletter}}
|