40 lines
697 B
Markdown
40 lines
697 B
Markdown
+++
|
|
title = "test"
|
|
draft = false
|
|
insert_anchor_links = "left"
|
|
tags = [ "typst" ]
|
|
render = true
|
|
|
|
# [extra]
|
|
# poor = true
|
|
+++
|
|
|
|
|
|
|
|
## Code block tests
|
|
|
|
```typst
|
|
#cetz.canvas({
|
|
import cetz.draw: *
|
|
import cetz.plot
|
|
plot.plot(size: (4, 4), x-tick-step: 2, y-tick-step: 40,
|
|
{
|
|
plot.add(domain: (-4, 4),
|
|
x => (x, calc.pow(x, 4) ),
|
|
label: $f(x)=x^4$
|
|
)
|
|
})
|
|
})
|
|
```
|
|
|
|
|
|
- [x] create/fix copy button
|
|
<details>
|
|
<summary>Fix</summary>
|
|
I had to activate `show_copy_button = true` in my `config.toml`\
|
|
<kbd>STRG + C</kbd> & <kbd>STRG + V</kbd> saved my day again (along some <kbd>STRG + F</kbd> of course!)
|
|
</details>
|
|
|
|
## Typst renders
|
|
|
|
|