Use tcolorbox for notes instead.

finite-set-exercises
Joshua Potter 2023-08-10 11:16:47 -06:00
parent c4538e3e94
commit 1a515ca3f5
2 changed files with 14 additions and 20 deletions

View File

@ -231,12 +231,6 @@
$$(\exists A)\left[
\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{Mathlib/Init/Set}{Set.univ}

View File

@ -4,13 +4,13 @@
\usepackage[shortlabels]{enumitem}
\usepackage{etoolbox}
\usepackage{environ}
\usepackage{fancybox}
\usepackage{fontawesome5}
\usepackage{mathabx, mathrsfs}
\usepackage{soul}
\usepackage{stmaryrd}
% Must load `xcolor` before `tikz`.
% Must load `xcolor` before `tcolorbox` and `tikz`.
\usepackage[dvipsnames]{xcolor}
\usepackage{tcolorbox}
\usepackage{tikz}
% `hyperref` comes after `xr-hyper`.
\usepackage{xr-hyper}
@ -91,18 +91,18 @@
% Admonitions
% ========================================
\newcommand{\@admonition}[2]{%
\begin{center}
\doublebox{
\begin{minipage}{0.95\textwidth}
\vspace{2pt}
\hl{#1} #2
\vspace{2pt}
\end{minipage}}
\end{center}}
\NewEnviron{note}{\@admonition{NOTE:}{\BODY}}
\NewEnviron{todo}{\@admonition{TODO:}{\BODY}}
\NewEnviron{note}{%
\begin{tcolorbox}[%
sharp corners,
fonttitle=\sffamily\bfseries,
toptitle=2pt,
bottomtitle=2pt,
coltitle=black!80!white,
colback=yellow!30,
colframe=yellow!80!black,
title=Note]
\BODY
\end{tcolorbox}}
% ========================================
% Statements