Last active
December 1, 2024 08:02
-
-
Save mistivia/978534462275cf9c82f67feb28d69cd1 to your computer and use it in GitHub Desktop.
typst template for documents
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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