ideate
This commit is contained in:
+9
-8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user