Compare commits
No commits in common. "0c89695cda519e1f9d54b9ac784b30eff337f120" and "2c801036dde879aa2a3d7aa5850fb07964620053" have entirely different histories.
0c89695cda
...
2c801036dd
|
@ -82,28 +82,6 @@
|
||||||
|
|
||||||
show figure: set block(breakable: true)
|
show figure: set block(breakable: true)
|
||||||
|
|
||||||
// make figure supplements bold
|
|
||||||
// based on: https://github.com/typst/typst/discussions/3871
|
|
||||||
show figure.caption: c => [
|
|
||||||
#if c.body.fields().len() > 0 {
|
|
||||||
text(weight: "semibold")[
|
|
||||||
#c.supplement #c.counter.display("1.1.1")
|
|
||||||
]
|
|
||||||
c.separator
|
|
||||||
}
|
|
||||||
#c.body
|
|
||||||
]
|
|
||||||
|
|
||||||
// change the display supplement according to the text langugae
|
|
||||||
// based on: https://github.com/typst/typst/issues/3273
|
|
||||||
show figure.where(kind: raw): set figure(supplement: context {
|
|
||||||
if text.lang == "de" {
|
|
||||||
"Quelltext"
|
|
||||||
} else {
|
|
||||||
"Listing"
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
// APA style table
|
// APA style table
|
||||||
set table(
|
set table(
|
||||||
inset: 0.5em,
|
inset: 0.5em,
|
||||||
|
|
Loading…
Reference in New Issue