This commit is contained in:
2026-01-30 09:58:55 -10:00
parent 97747c6b5c
commit 064481283e
3 changed files with 512 additions and 21 deletions
+9 -8
View File
@@ -138,7 +138,8 @@ The result is $x = 42$.
;; Generate content programmatically
[[:heading "Authors"]
(map #(author-block (:name %) (:inst %)) authors)]
(for [{:keys [name inst]} authors]
(author-block name inst))]
```
## Special Forms for Content
@@ -172,15 +173,15 @@ If hiccup feels too heavy, we could just use Lisp for logic and escape to raw Ty
(* n (factorial (dec n)))))
;; Escape to typst content
#typst{
= Results
#t"
= Results
The factorial of 5 is ~(factorial 5).
The factorial of 5 is ~(factorial 5).
Here's a table of factorials:
~(for [i (range 1 11)]
(str "- " i "! = " (factorial i) "\n"))
}
Here's a table of factorials:
~(for [i (range 1 11)]
(str \"- \" i \"! = \" (factorial i) \"\\n\"))
"
```
## Questions