-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
90d754a
commit 49d6158
Showing
13 changed files
with
463 additions
and
374 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,6 @@ | |
above: 1.4em, | ||
below: 1em, | ||
) | ||
|
||
content | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,28 @@ | ||
#import "/src/book.typ" | ||
#import "/typ/templates/page.typ": main-color | ||
|
||
#import "../mod.typ": code as _code, exec-code as _exec-code, refs, todo-box, todo-color, pro-tip, typst-func, term, mark, exercise, ref-bookmark, ref-method-signature, ref-func-signature, ref-cons-signature | ||
#import "../mod.typ": ( | ||
code as _code, | ||
exec-code as _exec-code, | ||
refs, | ||
todo-box, | ||
todo-color, | ||
pro-tip, | ||
typst-func, | ||
term, | ||
mark, | ||
exercise, | ||
ref-bookmark, | ||
ref-method-signature, | ||
ref-func-signature, | ||
ref-cons-signature, | ||
) | ||
|
||
#let eval-local(it, scope, res) = if res != none { | ||
res | ||
} else { | ||
eval(it.text, mode: "markup", scope: scope) | ||
} | ||
#let exec-code(it, scope: (:), res: none, ..args) = _exec-code(it, res: eval-local(it, scope, res), ..args) | ||
/// - it (content): the body of code. | ||
#let code(it, scope: (:), res: none, ..args) = _code(it, res: eval-local(it, scope, res), ..args) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#import "@preview/shiroa:0.1.1": * | ||
#import "@preview/shiroa:0.1.2": * | ||
|
||
#show: book | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.