Skip to content

Commit 6f30c38

Browse files
christopherkennygordonwoodhull
authored andcommitted
Move typst $labels.abstract$ in format
1 parent 8472625 commit 6f30c38

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/resources/formats/typst/pandoc/quarto/typst-show.typ

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ $if(region)$
2424
$endif$
2525
$if(abstract)$
2626
abstract: [$abstract$],
27+
abstract-title: "$labels.abstract$",
2728
$endif$
2829
$if(margin)$
2930
margin: ($for(margin/pairs)$$margin.key$: $margin.value$,$endfor$),

src/resources/formats/typst/pandoc/quarto/typst-template.typ

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
authors: none,
66
date: none,
77
abstract: none,
8+
abstract-title: none,
89
cols: 1,
910
margin: (x: 1.25in, y: 1.25in),
1011
paper: "us-letter",
@@ -61,7 +62,7 @@
6162

6263
if abstract != none {
6364
block(inset: 2em)[
64-
#text(weight: "semibold")[$labels.abstract$] #h(1em) #abstract
65+
#text(weight: "semibold")[#abstract-title] #h(1em) #abstract
6566
]
6667
}
6768

0 commit comments

Comments
 (0)