Skip to content

Commit

Permalink
basic-polylux:0.1.0 (#1632)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasKroepelin authored Jan 27, 2025
1 parent fbed86c commit 391fb38
Show file tree
Hide file tree
Showing 7 changed files with 114 additions and 0 deletions.
24 changes: 24 additions & 0 deletions packages/preview/basic-polylux/0.1.0/LICENSE
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>
22 changes: 22 additions & 0 deletions packages/preview/basic-polylux/0.1.0/README.md
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)

1 change: 1 addition & 0 deletions packages/preview/basic-polylux/0.1.0/lib.typ
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// intentionally empty
1 change: 1 addition & 0 deletions packages/preview/basic-polylux/0.1.0/template/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.pdf
50 changes: 50 additions & 0 deletions packages/preview/basic-polylux/0.1.0/template/slides.typ
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.
16 changes: 16 additions & 0 deletions packages/preview/basic-polylux/0.1.0/typst.toml
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"

0 comments on commit 391fb38

Please sign in to comment.