doc: Some examples in diagram.typ

This commit is contained in:
Leni Aniva 2025-03-06 09:53:25 -08:00
parent 6d675094ea
commit 0d5e1842dd
Signed by: aniva
GPG Key ID: 4D9B1C8D10EA4C50
1 changed files with 15 additions and 4 deletions

View File

@ -9,6 +9,8 @@
This is a diagram.
#emph(text(blue)[blue text])
#html.frame(cetz.canvas(length: 3cm, {
import cetz.draw: *
@ -67,11 +69,20 @@ This is a diagram.
inset: 10pt,
align: horizon,
table.header(
[*System*], [*Speed*]
[*System*], [*Speed*], [*Diagrams*],
),
[LaTeX], [Slow],
[Markdown], [Fast],
[Typst], [Fast],
[LaTeX], [Slow], [Y],
[Markdown], [Fast], [N],
[Typst], [Fast], [N],
),
caption: [Comparison of blog typesetting options]
)
== Code
#html.frame[```rust
fn deposit_cookie() {
let cookie = generate();
cookie_jar(cookie);
}
```]