Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tudoroancea opened this issue Jan 22, 2024 · 3 comments

Comments

@tudoroancea
Copy link

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

@andreasKroepelin
Copy link
Owner

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

@srtee
Copy link

srtee commented Mar 22, 2024

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

@andreasKroepelin
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants