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[ $$(\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}

View File

@ -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