-
Notifications
You must be signed in to change notification settings - Fork 439
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
fbed86c
commit 391fb38
Showing
7 changed files
with
114 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
This is free and unencumbered software released into the public domain. | ||
|
||
Anyone is free to copy, modify, publish, use, compile, sell, or | ||
distribute this software, either in source code form or as a compiled | ||
binary, for any purpose, commercial or non-commercial, and by any | ||
means. | ||
|
||
In jurisdictions that recognize copyright laws, the author or authors | ||
of this software dedicate any and all copyright interest in the | ||
software to the public domain. We make this dedication for the benefit | ||
of the public at large and to the detriment of our heirs and | ||
successors. We intend this dedication to be an overt act of | ||
relinquishment in perpetuity of all present and future rights to this | ||
software under copyright law. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR | ||
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, | ||
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||
OTHER DEALINGS IN THE SOFTWARE. | ||
|
||
For more information, please refer to <https://unlicense.org> |
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,22 @@ | ||
![Polylux logo](https://raw.githubusercontent.com/polylux-typ/polylux/ed1e70e74f2a525e80ace9144249c9537917731c/assets/polylux-logo.svg) | ||
|
||
# Polylux starter template | ||
|
||
A starter template for creating presentation slides with Typst and | ||
[Polylux](https://github.com/polylux-typ/polylux/). | ||
|
||
Use via | ||
```sh | ||
typst init @preview/basic-polylux:0.1.0 your-cool-project | ||
``` | ||
|
||
A `slides.typ` file will be created for you and contains some suggestions for | ||
how you might set up your slides. | ||
|
||
By default, it uses the fonts [Lato](https://www.latofonts.com/lato-free-fonts/) | ||
and [Lete Sans Math](https://github.com/abccsss/LeteSansMath/releases). | ||
I think this is a good suggestion to start with. | ||
Either make sure you have them installed or specify other fonts in the template. | ||
|
||
![thumbnail](thumbnail.png) | ||
|
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 @@ | ||
// intentionally empty |
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 @@ | ||
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,50 @@ | ||
#import "@preview/polylux:0.4.0": * | ||
|
||
#set page( | ||
paper: "presentation-16-9", | ||
footer: align(right, text(size: .8em, toolbox.slide-number)), | ||
margin: (bottom: 2em, rest: 1em), | ||
) | ||
#set text( | ||
font: "Lato", | ||
size: 23pt, | ||
) | ||
#show math.equation: set text(font: "Lete Sans Math") | ||
#show heading: set block(below: 2em) | ||
|
||
#slide[ | ||
#set page(footer: none) | ||
#set align(horizon) | ||
|
||
#text(1.5em)[Title of the presentation] | ||
|
||
The author, the date | ||
] | ||
|
||
#slide[ | ||
= My first slide | ||
|
||
Here come my three favourite fonts: | ||
#show: later | ||
|
||
+ Atkinson Hyperlegible | ||
+ Alegreya | ||
+ TeX Gyre Pagella | ||
|
||
#show: later | ||
|
||
And now some math: | ||
$ | ||
sum_(k = 1)^n k = (n (n + 1)) / 2 | ||
$ | ||
] | ||
|
||
#slide[ | ||
= Second slide | ||
|
||
#toolbox.side-by-side[ | ||
#rect(width: 100%, height: 1fr)[(imagine this being an image)] | ||
][ | ||
On the left, you see a #only(2)[not so] beautiful image. | ||
] | ||
] |
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,16 @@ | ||
[package] | ||
name = "basic-polylux" | ||
version = "0.1.0" | ||
entrypoint = "lib.typ" | ||
authors = ["Andreas Kröpelin"] | ||
license = "Unlicense" | ||
description = "Starter template for Polylux" | ||
repository = "https://github.com/polylux-typ/basic" | ||
keywords = ["basic", "getting started", "polylux", "presentation", "talk", "slides", "slide", "lecture"] | ||
categories = ["presentation"] | ||
exclude = ["thumbnail.png"] | ||
|
||
[template] | ||
path = "template" | ||
entrypoint = "slides.typ" | ||
thumbnail = "thumbnail.png" |