typst / packages

Packages for Typst.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[feature request] overview bar at the top of each slide (Command)

AdiWeit opened this issue · comments

I think it would be cool if you could add an overview bar which displays the chapters (first deph or as parameter or something) and highlights where you are in the presentation. It could use "..." if not all content fits and maybe optionally only show content that is ahead of you or the current slide is about. Maybe instead of using "..." an option to move the content in the next line could be helpful too for example for relatively short presentations.
The big plus compared to implementing it manually would be, that it would adapt dynamically if you change the chapter names and of course not having to implement it manually at all would be a plus point as well :)
This manually created example shows what it could look like:
grafik
`// Get Polylux from the official package repository
#import "@preview/polylux:0.3.1": *

// Make the paper dimensions fit for a presentation and the text larger
#set page(paper: "presentation-16-9")
#set text(size: 25pt)

// Use #polylux-slide to create a slide and style it using your favourite Typst functions
#polylux-slide[
#align(horizon + center)[
Very minimalist slides

A lazy author

July 23, 2023

]
]

#polylux-slide[

  1. theme 1 | 2. theme 2 | 3. theme 3
    = First theme

Some static text on this slide.
]
#polylux-slide[

  1. theme 1 | 2. theme 2 | 3. theme 3
    = First theme

more text for this theme
]
#polylux-slide[

  1. theme 1 | 2. theme 2 | 3. theme 3
    = second theme

Some static text on this slide.
]
#polylux-slide[

  1. theme 1 | 2. theme 2 | 3. theme 3
    = second theme

mor text for the second theme
]
#polylux-slide[

  1. theme 1 | 2. theme 2 | 3. theme 3
    = third theme

Some static text on this slide.
]
#polylux-slide[

  1. theme 1 | 2. theme 2 | 3. theme 3
    = third theme

more text for the last theme
]`

Hey :) you probably want to post this over on the polylux repository, creators more likely to see it there

https://github.com/andreasKroepelin/polylux

Nice feature idea though! Lots of ways that would be useful. I think it already has a progress bar so this would make for a nice addition

Oh, OK, sry! Ii got here using the typst documentation and when clicking on the package I got redirected to the file in this repo, but I thought I would get redirected to the package page itself.