Use tcolorbox for notes instead.
parent
c4538e3e94
commit
1a515ca3f5
|
@ -231,12 +231,6 @@
|
||||||
$$(\exists A)\left[
|
$$(\exists A)\left[
|
||||||
\emptyset \in A \land (\forall a \in A) a^+ \in A\right].$$
|
\emptyset \in A \land (\forall a \in A) a^+ \in A\right].$$
|
||||||
|
|
||||||
\begin{note}
|
|
||||||
Since the definition of natural numbers in Lean satisfies the properties
|
|
||||||
required by this axiom, there is no need to explicitly state the axiom
|
|
||||||
separately in Lean.
|
|
||||||
\end{note}
|
|
||||||
|
|
||||||
\lean{Prelude}{Nat}
|
\lean{Prelude}{Nat}
|
||||||
|
|
||||||
\lean{Mathlib/Init/Set}{Set.univ}
|
\lean{Mathlib/Init/Set}{Set.univ}
|
||||||
|
|
28
preamble.tex
28
preamble.tex
|
@ -4,13 +4,13 @@
|
||||||
\usepackage[shortlabels]{enumitem}
|
\usepackage[shortlabels]{enumitem}
|
||||||
\usepackage{etoolbox}
|
\usepackage{etoolbox}
|
||||||
\usepackage{environ}
|
\usepackage{environ}
|
||||||
\usepackage{fancybox}
|
|
||||||
\usepackage{fontawesome5}
|
\usepackage{fontawesome5}
|
||||||
\usepackage{mathabx, mathrsfs}
|
\usepackage{mathabx, mathrsfs}
|
||||||
\usepackage{soul}
|
\usepackage{soul}
|
||||||
\usepackage{stmaryrd}
|
\usepackage{stmaryrd}
|
||||||
% Must load `xcolor` before `tikz`.
|
% Must load `xcolor` before `tcolorbox` and `tikz`.
|
||||||
\usepackage[dvipsnames]{xcolor}
|
\usepackage[dvipsnames]{xcolor}
|
||||||
|
\usepackage{tcolorbox}
|
||||||
\usepackage{tikz}
|
\usepackage{tikz}
|
||||||
% `hyperref` comes after `xr-hyper`.
|
% `hyperref` comes after `xr-hyper`.
|
||||||
\usepackage{xr-hyper}
|
\usepackage{xr-hyper}
|
||||||
|
@ -91,18 +91,18 @@
|
||||||
% Admonitions
|
% Admonitions
|
||||||
% ========================================
|
% ========================================
|
||||||
|
|
||||||
\newcommand{\@admonition}[2]{%
|
\NewEnviron{note}{%
|
||||||
\begin{center}
|
\begin{tcolorbox}[%
|
||||||
\doublebox{
|
sharp corners,
|
||||||
\begin{minipage}{0.95\textwidth}
|
fonttitle=\sffamily\bfseries,
|
||||||
\vspace{2pt}
|
toptitle=2pt,
|
||||||
\hl{#1} #2
|
bottomtitle=2pt,
|
||||||
\vspace{2pt}
|
coltitle=black!80!white,
|
||||||
\end{minipage}}
|
colback=yellow!30,
|
||||||
\end{center}}
|
colframe=yellow!80!black,
|
||||||
|
title=Note]
|
||||||
\NewEnviron{note}{\@admonition{NOTE:}{\BODY}}
|
\BODY
|
||||||
\NewEnviron{todo}{\@admonition{TODO:}{\BODY}}
|
\end{tcolorbox}}
|
||||||
|
|
||||||
% ========================================
|
% ========================================
|
||||||
% Statements
|
% Statements
|
||||||
|
|
Loading…
Reference in New Issue