A tour of Typst and typost
Every block below shows the source, then the actual result.
Headings
=== A sectionA section
==== A subsectionA subsection
Emphasis and inline styles
*bold*, _italic_, `code`, #strike[struck], #underline[underlined],
#highlight[highlighted], #sub[sub], #super[super]bold, italic, code, struck, underlined, highlighted, sub, super
Lists
- one
- two
- nested
+ first
+ second
/ term: its description- one
two
- nested
- first
- second
- term
- its description
Code
```rust
fn main() {
println!("hello from typost");
}
```fn main() {
println!("hello from typost");
}Math
Euler's identity: $e^(i pi) + 1 = 0$.Eulerโs identity: .
$ integral_0^infinity e^(-x^2) dif x = sqrt(pi) / 2 $Tables
#table(
columns: 3,
[*Feature*], [*Typst*], [*Markdown*],
[Math], [yes], [partial],
[Functions], [yes], [no],
)| Feature | Typst | Markdown |
| Math | yes | partial |
| Functions | yes | no |
Quotes and footnotes
#quote(block: true)[
Typst is a new markup-based typesetting system that is designed to be as
powerful as LaTeX while being much easier to learn and use.
]
A footnote#footnote[At the bottom of the page.].Typst is a new markup-based typesetting system that is designed to be as powerful as LaTeX while being much easier to learn and use.
A footnote1.
typost extras
A spoiler hides an inline run until you hover it:
The butler did it #spoiler[with the candlestick, in the library].The butler did it with the candlestick, in the library.
A block spoiler stays blurred until you click it, then stays revealed:
#spoiler(block: true)[
This block stays blurred behind a "click to reveal" pill until you click it,
and then it stays revealed.
]click to reveal
This block stays blurred behind a โclick to revealโ pill until you click it, and then it stays revealed.
A region can be encrypted at build time โ the plaintext never reaches the page:
#encrypted(password: "hunter2")[
Only readers who know the password see this.
The plaintext is not in the page source.
]- 1At the bottom of the page.