-
Notifications
You must be signed in to change notification settings - Fork 58
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
ed1e70e
commit 7f20973
Showing
48 changed files
with
242 additions
and
187 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
#import "@preview/polylux:0.3.1": * | ||
#import "@preview/polylux:0.4.0": * |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
|
@@ -3,6 +3,6 @@ | |
#set page(paper: "presentation-16-9") | ||
#set text(size: 25pt) | ||
|
||
#polylux-slide[ | ||
#slide[ | ||
Hello, world! | ||
] |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
typst-compose hello-world 1 gray --root ../../.. | ||
typst-compose title-slide 2 gray --root ../../.. | ||
typst-compose slide-title 2 gray --root ../../.. | ||
typst-compose quiz 2 gray --root ../../.. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,26 +1,27 @@ | ||
#import "../../../polylux.typ": * | ||
|
||
#set page(paper: "presentation-16-9", fill: teal.lighten(90%)) | ||
#set text(size: 25pt, font: "Blogger Sans") | ||
#set text(size: 25pt, font: "Lato") | ||
|
||
#polylux-slide[ | ||
#set align(horizon + center) | ||
#slide[ | ||
#set align(horizon) | ||
= My fabulous talk | ||
|
||
Jane Doe | ||
|
||
Conference on Advances in Slide Making | ||
] | ||
|
||
#polylux-slide[ | ||
#slide[ | ||
== My slide title | ||
Hello, world! | ||
] | ||
|
||
#polylux-slide[ | ||
#slide[ | ||
== A quiz | ||
|
||
What is the capital of the Republic of Benin? | ||
|
||
#uncover(2)[Porto-Novo] | ||
#show: later | ||
Porto-Novo | ||
] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,18 +1,18 @@ | ||
#import "../../../polylux.typ": * | ||
|
||
#set page(paper: "presentation-16-9", fill: teal.lighten(90%)) | ||
#set text(size: 25pt, font: "Blogger Sans") | ||
#set text(size: 25pt, font: "Lato") | ||
|
||
#polylux-slide[ | ||
#set align(horizon + center) | ||
#slide[ | ||
#set align(horizon) | ||
= My fabulous talk | ||
|
||
Jane Doe | ||
|
||
Conference on Advances in Slide Making | ||
] | ||
|
||
#polylux-slide[ | ||
#slide[ | ||
== My slide title | ||
Hello, world! | ||
] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,17 +1,17 @@ | ||
#import "../../../polylux.typ": * | ||
|
||
#set page(paper: "presentation-16-9", fill: teal.lighten(90%)) | ||
#set text(size: 25pt, font: "Blogger Sans") | ||
#set text(size: 25pt, font: "Lato") | ||
|
||
#polylux-slide[ | ||
#set align(horizon + center) | ||
#slide[ | ||
#set align(horizon) | ||
= My fabulous talk | ||
|
||
Jane Doe | ||
|
||
Conference on Advances in Slide Making | ||
] | ||
|
||
#polylux-slide[ | ||
#slide[ | ||
Hello, world! | ||
] |
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
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#import "../../../polylux.typ": * | ||
#set page(paper: "presentation-16-9") | ||
#set text(size: 35pt, font: "Atkinson Hyperlegible") | ||
|
||
#slide[ | ||
#show: columns.with(3) | ||
|
||
#set list(marker: sym.arrow) | ||
#item-by-item[ | ||
- first | ||
- second | ||
- some | ||
- detail | ||
- third | ||
] | ||
#colbreak() | ||
|
||
#item-by-item[ | ||
+ also | ||
+ works | ||
+ with `enums` | ||
] | ||
#colbreak() | ||
|
||
#item-by-item(start: 2)[ | ||
/ and: with | ||
/ terms: too | ||
] | ||
] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions
6
book/src/dynamic/line-by-line.typ → book/src/dynamic/item-by-item.typ
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# `show: later` to reveal content piece by piece | ||
Consider some code like the following: | ||
```typ | ||
#uncover("1-")[first] | ||
#uncover("2-")[second] | ||
#uncover("3-")[third] | ||
``` | ||
The goal here is to uncover parts of the slide one by one, so that an increasing | ||
amount of content is shown, but we don't want to specify all subslide indices | ||
manually, ideally. | ||
|
||
If you have used the LaTeX beamer package before, you might be familiar with the | ||
`\pause` command. | ||
It makes everything after it on that slide appear on the next subslide. | ||
Features of the kind "everything after this" are handled in Typst using the | ||
`#show:` feature. | ||
Namely, `#show: some-function` uses the following content as an argument to | ||
`some-function`. | ||
Polylux provides the `later` function that makes its argument appear on the | ||
next subslide. | ||
So, we can equivalently write the above code as: | ||
```typ | ||
{{#include later.typ:6:10}} | ||
``` | ||
This results in | ||
|
||
 | ||
|
||
`#show: later` should mainly be used when you want to distribute a lot of code | ||
onto different subslides. | ||
For smaller pieces of code, consider one of the functions described next. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#import "../../../polylux.typ": * | ||
#set page(paper: "presentation-16-9") | ||
#set text(size: 50pt, font: "Atkinson Hyperlegible") | ||
|
||
#slide[ | ||
first | ||
#show: later | ||
second | ||
#show: later | ||
third | ||
] |
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.