From 2cf6223adfe8099f1e790429a304a2e1794316f5 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Fri, 20 Sep 2024 20:44:26 -0400 Subject: [PATCH] libs.typ: add ctheorems --- libs.typ | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/libs.typ b/libs.typ index db9daa6..8e71b6c 100644 --- a/libs.typ +++ b/libs.typ @@ -53,3 +53,19 @@ set math.equation(numbering: "(1)") body } + +// theorems, definitions, example environments +#import "@preview/ctheorems:1.1.2": * +// use `#show: thmrules` at the beginning of documents + +#let theorem = thmbox("theorem", "Theorem", fill: rgb("#eeffee")) +#let corollary = thmplain( + "corollary", + "Corollary", + base: "theorem", + titlefmt: strong +) +#let definition = thmbox("definition", "Definition", inset: (x: 1.2em, top: 1em, bottom: 1em), stroke: 1pt + black) + +#let example = thmbox("example", "Example").with(numbering: none) +#let proof = thmproof("proof", "Proof")