polylux icon indicating copy to clipboard operation
polylux copied to clipboard

`#uncover` and `#pause` don't behave the same when using `#enable-handout-mode(true)`

Open tudoroancea opened this issue 1 year ago • 3 comments

Hi there, First, thank you for this amazing library. It is all altogether a very well-rounded packaged, very capable, and yet the syntax remains simple.

From the documentation, I understood #pause as a shorter way of doing the same thing as repeating #uncover("2-")[...], #uncover("3-")[...], etc. However, I noticed that when using #enable-handout-mode(true), the #pause syntax does not merge the slides into one.

Here is a minimal snippet to reproduce:

#import "@preview/polylux:0.3.1": *
#import themes.university: *
#show: university-theme.with(short-author: "Ted")

#enable-handout-mode(true)

#title-slide(title: [`#pause` vs `#uncover()` when using `#enable-handout-mode(true)`])
#slide(title: [Using `#uncover`])[
  Hello
  #uncover("2-")[
    - item 1
  ]
  #uncover("3-")[
    - item 2
  ]
]

#slide(title: [Using `#pause`])[
  Hello
  #pause
  - item 1
  #pause
  - item 2
]

Is that a desired effect (perhaps for some compatibility with \pause from Beamer? I am not very familiar with this command) ? I have been fooled by this distinction for several months and find it a bit limiting to have to be unable to use the simpler syntax just because we want to provide a handout.

Best,

Ted

tudoroancea avatar Jan 22 '24 09:01 tudoroancea

That is indeed not how it's supposed to be. Let me have a look at it.

andreasKroepelin avatar Jan 22 '24 12:01 andreasKroepelin

Hi andreas,

How can we use the updated code on the Typst web editor? (short of copying and pasting a local copy of logic.typ)

Cheers, Shern

srtee avatar Mar 22 '24 03:03 srtee

You will have to wait for the next release of Polylux.

andreasKroepelin avatar Mar 24 '24 09:03 andreasKroepelin