andreasKroepelin / polylux

A package for creating slides in Typst
https://polylux.dev/book
MIT License
1.18k stars 55 forks source link

Is there a way to create a button with some hyperlink to another slide? #183

Open rgriva opened 2 months ago

rgriva commented 2 months ago

I have recently started using Polylux. Right now, I'm using the simple theme to get a first presentation done. I would like to have hyperlinks inside buttons I can click and go back and forth when presenting. This is useful when there is extra material the audience may want to see but you won't displayed it by default.

In Beamer, it would be something like \hyperlink{label_of_target_frame}{\beamerbutton{Text for the button}}

Is there a simple way to accomplish that?

TS53 commented 3 weeks ago

I think the following is the best you can get:

The link on the second page should bring us here.<1>

#pagebreak()

#link(<1>)[This is a link to the first page]

You can create your own "button":

The link on the second page should bring us here.<1>

#pagebreak()

#link(<1>)[#ellipse[
  #set align(center)
This is a link \
to the first page
]]