Changed emphasis color and definition text emphasis.
This commit is contained in:
parent
704fc902f1
commit
6a763ea918
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue