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