Files
stgsharp/typst_temp/main.typ
T
2026-06-18 19:12:38 +08:00

33 lines
683 B
Typst

#import "template.typ": cover, conf
// ===== 封面 =====
// 字段均可选,自动排版:留空的字段会自动跳过。
#cover(
title: "Very长的文档标题示",
title-en: "Very Long Document Title Example",
subtitle: "副标题 Subtitle",
date: "2026 年 6 月",
)
// ===== 正文 =====
#show: conf.with(number-pages: true)
= 第一章 引言
这是正文示例。正文中文使用宋体,English text uses Times New Roman by default。
段落首行自动缩进两字符,两端对齐。
== 1.1 小节
行内代码示例:`let x = 1`,以及代码块:
```rust
fn main() {
println!("Hello, Typst!");
}
```
= 第二章 结论
这里是结论部分的内容。