Skip to content

Commit 06aeec6

Browse files
handle $abstract-title$
1 parent 512f320 commit 06aeec6

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

data/templates/default.typst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ $endif$
7171
$if(region)$
7272
region: "$region$",
7373
$endif$
74+
$if(abstract-title)$
75+
abstract-title: [$abstract-title$],
76+
$endif$
7477
$if(abstract)$
7578
abstract: [$abstract$],
7679
$endif$

data/templates/template.typst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
authors: (),
1616
keywords: (),
1717
date: none,
18+
abstract-title: none,
1819
abstract: none,
1920
thanks: none,
2021
cols: 1,
@@ -106,7 +107,7 @@
106107

107108
#if abstract != none {
108109
block(inset: 2em)[
109-
#text(weight: "semibold")[Abstract] #h(1em) #abstract
110+
#text(weight: "semibold")[#abstract-title] #h(1em) #abstract
110111
]
111112
}
112113
]

test/writer.typst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
authors: (),
4040
keywords: (),
4141
date: none,
42+
abstract-title: none,
4243
abstract: none,
4344
thanks: none,
4445
cols: 1,
@@ -130,7 +131,7 @@
130131

131132
#if abstract != none {
132133
block(inset: 2em)[
133-
#text(weight: "semibold")[Abstract] #h(1em) #abstract
134+
#text(weight: "semibold")[#abstract-title] #h(1em) #abstract
134135
]
135136
}
136137
]

0 commit comments

Comments
 (0)