Compare commits
2 Commits
12612636fa
...
6a763ea918
Author | SHA1 | Date |
---|---|---|
orca | 6a763ea918 | |
orca | 704fc902f1 |
|
@ -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]
|
||||
|
|
|
@ -34,19 +34,9 @@
|
|||
set math.mat(delim: "[", row-gap: 0.65em, column-gap: 1em)
|
||||
set math.vec(delim: "[", gap: 0.65em)
|
||||
|
||||
/* Show references to equations without leading text. */
|
||||
show ref: it => {
|
||||
let el = it.element
|
||||
set math.equation(supplement: none)
|
||||
|
||||
if el != none {
|
||||
numbering(
|
||||
el.numbering,
|
||||
..counter(el.func()).at(el.location())
|
||||
)
|
||||
} else { it }
|
||||
}
|
||||
|
||||
/* Show headings like in asmart. */
|
||||
/* Show headings like in amsart. */
|
||||
show heading: it => {
|
||||
set block(above: 1.8em, below: 1.2em)
|
||||
set align(center)
|
||||
|
|
Loading…
Reference in New Issue