summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/default.typst9
-rw-r--r--data/templates/definitions.typst5
2 files changed, 9 insertions, 5 deletions
diff --git a/data/templates/default.typst b/data/templates/default.typst
index 43674bc32..c04b5e40f 100644
--- a/data/templates/default.typst
+++ b/data/templates/default.typst
@@ -1,5 +1,14 @@
$definitions.typst()$
+#show terms: it => {
+ it.children
+ .map(child => [
+ #strong[#child.term]
+ #block(inset: (left: 1.5em, top: -0.4em))[#child.description]
+ ])
+ .join()
+}
+
$if(template)$
#import "$template$": conf
$else$
diff --git a/data/templates/definitions.typst b/data/templates/definitions.typst
index 02fe80f38..acdc9ea89 100644
--- a/data/templates/definitions.typst
+++ b/data/templates/definitions.typst
@@ -1,9 +1,4 @@
// Some definitions presupposed by pandoc's typst output.
-#let definition(term, ..defs) = [
- #strong(term) \
- #(defs.pos().join("\n"))
-]
-
#let blockquote(body) = [
#set text( size: 0.92em )
#block(inset: (left: 1.5em, top: 0.2em, bottom: 0.2em))[#body]