mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-21 05:43:39 +08:00
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:
@@ -84,5 +84,5 @@
|
||||
}
|
||||
]
|
||||
|
||||
doc
|
||||
doc
|
||||
}
|
||||
|
||||
+9
-10
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user