Changed emphasis color and definition text emphasis.

This commit is contained in:
orca 2024-01-30 19:11:42 +01:00
parent 704fc902f1
commit 6a763ea918
Signed by: orca
GPG Key ID: 6923B8DFED96A68A
1 changed files with 5 additions and 5 deletions

View File

@ -6,16 +6,16 @@
/* Emphasize a block by placing it in a decorated rectangle. */
#let block-emph(body, way: "") = {
let outset = 5pt
let ash(n) = rgb(0, 0, 0, n)
let ash(n) = rgb(185, 185, 200, n + 50)
set rect(width: 100%, radius: 1pt, outset: outset)
if way == "fill" {
v(outset)
rect(fill: ash(10))[#body]
rect(fill: ash(5))[#body]
v(outset)
} else if way == "outline" {
v(outset)
rect(stroke: ash(18) + 5pt)[#body]
rect(stroke: ash(30) + 5pt)[#body]
v(outset)
} else {
[#body]
@ -50,11 +50,11 @@
#let theorem(body, name: "") = math-block(name: name, id: theorem-id, body)
#let corollary(body, name: "") = math-block(name: name, id: corollary-id, body)
#let definition(body, name: "") = math-block(name: name, id: definition-id, decoration: "outline", body)
#let remark(body, name: "") = math-block(name: name, id: remark-id, decoration: "none", body + v-space)
#let example(body, name: "") = math-block(name: name, id: example-id, decoration: "none", body + v-space)
#let definition(body, name: "") = math-block(name: name, id: definition-id, decoration: "outline", emphasis: "italics", body)
/* It takes the body of the proof, and formats it by adding the QED
symbol at the end, and the _#proof-id._ text at the front. */
#let proof(body) = [_#proof-id._ #body #h(1fr) #qed#v-space]