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

Fix uncover bug with list items in 0.12 #186

Open
TimotheAlbouy opened this issue Oct 18, 2024 · 7 comments
Open

Fix uncover bug with list items in 0.12 #186

TimotheAlbouy opened this issue Oct 18, 2024 · 7 comments

Comments

@TimotheAlbouy
Copy link

Hello,

In typst 0.12, when we uncover a list item, its bullet already appears in the previous slides.

Example:

#import "@preview/polylux:0.3.1": *

#set page(paper: "presentation-16-9")
#set text(size: 25pt)

#polylux-slide[
  This is a list:
  - this is the first item
  #uncover(2)[
  - this is the second item
  ]
]

First slide:
image

@andreasKroepelin
Copy link
Owner

Oh here we go again... I think this problem appeared in the early days of Polylux already. Might be worth to investigate whether it's an regression within Typst.

@andreasKroepelin
Copy link
Owner

No wait I think it's always been like that? If you #hide a bullet list item, the bullet point is still shown. Are you sure this issue is new in Typst 0.12?

@TimotheAlbouy
Copy link
Author

TimotheAlbouy commented Oct 18, 2024

Hum when I switch back to 0.11.1 I get the correct output:

image

I'm on the webapp, and I switch between the compiler versions "Latest (Typst 0.11.1)" and "Typst 0.12.0 Testing" in the settings. I use the exact same code I posted here.

@andreasKroepelin
Copy link
Owner

Can you try out

- abc
#hide[- def]

?

@TimotheAlbouy
Copy link
Author

Can you try out

- abc
#hide[- def]

?

This also produces the bug of my first message (I'm on 0.12).

@andreasKroepelin
Copy link
Owner

But does it behave the same on earlier Typst versions?

@TimotheAlbouy
Copy link
Author

You're right, #hide[- def] also produces the bug on 0.11.1.

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

2 participants