Adjust test suite for typst template changes.

Note: the new templates presuppose typst 0.12; if you try to
use an earlier version of typst, an error will be raised.
This commit is contained in:
John MacFarlane
2024-10-29 14:49:06 -07:00
parent e01023c1f4
commit 39b87d4d28
2 changed files with 10 additions and 11 deletions
+1 -1
View File
@@ -84,5 +84,5 @@
}
]
doc
doc
}
+9 -10
View File
@@ -65,7 +65,8 @@
paper: paper,
margin: margin,
numbering: "1",
)
columns: cols,
)
set par(justify: true)
set text(lang: lang,
region: region,
@@ -73,7 +74,8 @@
size: fontsize)
set heading(numbering: sectionnumbering)
if title != none {
place(top, float: true, scope: "parent", clearance: 4mm)[
#if title != none {
align(center)[#block(inset: 2em)[
#text(weight: "bold", size: 1.5em)[#title]
#(if subtitle != none {
@@ -83,7 +85,7 @@
]]
}
if authors != none and authors != [] {
#if authors != none and authors != [] {
let count = authors.len()
let ncols = calc.min(count, 3)
grid(
@@ -99,23 +101,20 @@
)
}
if date != none {
#if date != none {
align(center)[#block(inset: 1em)[
#date
]]
}
if abstract != none {
#if abstract != none {
block(inset: 2em)[
#text(weight: "semibold")[Abstract] #h(1em) #abstract
]
}
]
if cols == 1 {
doc
} else {
columns(cols, doc)
}
doc
}
#show: doc => conf(
title: [Pandoc Test Suite],