mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-28 17:20:47 +08:00
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:
+7
-22
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user