Skip to content

Instantly share code, notes, and snippets.

@mistivia
Last active December 1, 2024 08:02
Show Gist options
  • Select an option

  • Save mistivia/978534462275cf9c82f67feb28d69cd1 to your computer and use it in GitHub Desktop.

Select an option

Save mistivia/978534462275cf9c82f67feb28d69cd1 to your computer and use it in GitHub Desktop.
typst template for documents
// typst compile doc-template.typ
// Output: doc-template.pdf
#set text(font: (
"Libertinus Serif",
"Source Han Serif",
))
#set heading(numbering: "1.")
#set page(
paper: "a4",
number-align: center,
)
\ \ \ \ \ \ \
#align(center, text(27pt)[
*文档的标题*
])
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
#align(center)[
#set par(justify: false)
某人 \
#link("mailto:[email protected]") \
#link("https://example.org")
]
#pagebreak()
#outline(indent: auto, title: "目录")
#pagebreak()
#set page(numbering: "1")
#counter(page).update(1)
#set par(first-line-indent: 2em)
#show heading: it => {
it
par()[#text(size:0.5em)[#h(0.0em)]]
}
= 序章
随便说点什么。
== 小节
给出一个公式:
$ i planck.reduce frac(d, d t) lr(| Psi angle.r) = hat(H) lr(| Psi angle.r) $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment