I dont know what Im doing

This commit is contained in:
Erik Grobecker 2024-10-03 17:07:46 +02:00
parent db09fdde41
commit 058a73b159
Signed by: Erik
GPG key ID: 80D020D0ABBD3FB2
9 changed files with 161 additions and 19 deletions

View file

@ -82,6 +82,6 @@ jgs~^~^`---'~^~^~^`---'~^~^~^`---'~^~^~^`---'~^~^~^`---'~^~^~
```
{% end %}
{% alert(note=true) %}
Although Duckquill is made based on the needs of [my website](https://daudix.one), I am very open to feature requests as long as they are somewhat useful to others, so if you need a feature/configuration that does not exist, feel free to open an issue, or better yet, a pull request!
{% end %}
This blog is written using the wonderful engine [zola](https://www.getzola.org) and the [duckquill](https://duckquill.daudix.one) theme
## asd

View file

@ -1,9 +1,9 @@
+++
title = "Writings of Duck's Feet"
title = "Index of my blog"
# sort_by = "date"
template = "article_list.html"
page_template = "article.html"
paginate_by = 2
+++
Welcome to my quack'in blog, I quack about various stuff, but mostly I'm a demo.
Welcome to my blog, after this you can view my "beatiful" entries!

View file

@ -0,0 +1,21 @@
#import "@preview/cetz:0.2.2"
#cetz.canvas({
import cetz.draw: *
import cetz.plot
plot.plot(size: (10, 4), x-tick-step: 2, y-tick-step: 50,
{
plot.add(domain: (-4, 4),
x => (x, calc.pow(x, 4) ),
label: $f(x)=x^4$
)
plot.add(domain: (-5, 6.34),
x => (x, calc.pow(x, 3)),
label: $f(x)=x^3$
)
plot.add(domain: (-10, 10),
x => (x, calc.pow(x, 2)),
label: $f(x) = x^2$
)
})
})

View file

@ -0,0 +1,75 @@
+++
title = "Comparison of some formats"
draft = true
insert_anchor_links = "left"
[extra]
hot = true
katex = true
+++
- [ ] comparison table
- [ ] markdown
- [ ] math
- [ ] exportability
- [ ] programmability
- [ ] typst
- [ ] math
- [ ] exportability
- [ ] programmability
- [ ] latex
- [ ] math
- [ ] exportability
- [ ] programmability
| | Markdown | Typst | Latex |
| :--- | :---| :--- | :--- |
| Math support | only using latex| great | great with an enormous community behind it
| Exportability |
| Programmability[^1]
[^1]: like plotting, etc.
## Markdown
## Typst
### Math support
<p>Typst</p>
In Typst we can plot using the `cetz` library like this:
```typst
#import "@preview/cetz:0.2.2"
#cetz.canvas({
import cetz.draw: *
import cetz.plot
plot.plot(size: (10, 4), x-tick-step: 2, y-tick-step: 50,
{
plot.add(domain: (-4, 4),
x => (x, calc.pow(x, 4) ),
label: $f(x)=x^4$
)
plot.add(domain: (-5, 6.34),
x => (x, calc.pow(x, 3)),
label: $f(x)=x^3$
)
plot.add(domain: (-10, 10),
x => (x, calc.pow(x, 2)),
label: $f(x) = x^2$
)
})
})
```
Which leads to this:
<figure>
{{image(url="https://files.catbox.moe/tplzsb.png")}}
<!-- was generated using a bit from my `cetz.typ` out of my typst repo -->
<figcaption>some standard functions</figcaption>
</figure>
## Latex

View file

@ -1,10 +1,19 @@
---
title: "test"
---
+++
title = "test"
draft = true
insert_anchor_links = "left"
tags = [ "typst" ]
render = true
# asd
[extra]
# poor = true
+++
```Typst
## Code block tests
```typst
#cetz.canvas({
import cetz.draw: *
import cetz.plot
@ -18,4 +27,14 @@ title: "test"
})
```
=>
- [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