Typst: further tight term list improvements.

Modified default template to remove custom show rule for
terms. Instead, we use a set rule to set hanging-indent.

For tight list items consisting of just one Plain block,
we no longer create a `#block` for the definition; this allows
it to remain on the same line as the term.
This commit is contained in:
John MacFarlane
2026-07-08 11:18:31 +02:00
parent 59c5eab2a0
commit 1d6f33b897
3 changed files with 12 additions and 27 deletions
+7 -22
View File
@@ -1,9 +1,6 @@
#let horizontalrule = line(start: (25%,0%), end: (75%,0%))
#show terms.item: it => block(breakable: false)[
#text(weight: "bold")[#it.term]
#block(inset: (left: 1.5em, top: -0.4em))[#it.description]
]
#set terms(hanging-indent: 1.5em)
#set table(
inset: 6pt,
@@ -444,27 +441,15 @@ B. Williams
<definition-lists>
Tight using spaces:
/ apple: #block[
red fruit
]
/ orange: #block[
orange fruit
]
/ banana: #block[
yellow fruit
]
/ apple: red fruit
/ orange: orange fruit
/ banana: yellow fruit
Tight using tabs:
/ apple: #block[
red fruit
]
/ orange: #block[
orange fruit
]
/ banana: #block[
yellow fruit
]
/ apple: red fruit
/ orange: orange fruit
/ banana: yellow fruit
Loose: