summaryrefslogtreecommitdiff
path: root/data/templates/default.typst
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2023-03-27 10:46:07 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2023-03-27 10:47:15 -0700
commitfd85560b848e1cd83cef737ed9d0b9bdc587fff2 (patch)
treec8c14aade7fbbf719782baad2fc456ab616ec5bd /data/templates/default.typst
parentcf6a742710f631364bbb3145566927b17b794a02 (diff)
Typst: Use customized term instead of custom macro for def lists.
Diffstat (limited to 'data/templates/default.typst')
-rw-r--r--data/templates/default.typst9
1 files changed, 9 insertions, 0 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$