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

[bug] outline and dynamic animations #146

Open
foxyseta opened this issue Jan 26, 2024 · 10 comments
Open

[bug] outline and dynamic animations #146

foxyseta opened this issue Jan 26, 2024 · 10 comments

Comments

@foxyseta
Copy link

Minimal example

#import "@preview/polylux:0.3.1": *
#import themes.university: *

#slide(title: "Contents")[
  #polylux-outline()
]

#slide(title: [The open question: $P eq.not NP -> SampNP subset.eq.not AvgP$ ?],
  new-section: Title)[
    #only(1)[a]
    #uncover((beginning: 2))[b]
    #uncover(3)[c]
]

Actual result

The outline features one entry per subslide (so three in total).

Expected result

The outline features a unique entry for the logical slide.

@andreasKroepelin
Copy link
Owner

Good catch. For further reference (and future me fixing this), here is the culprit:
https://github.com/andreasKroepelin/polylux/blob/main/themes%2Funiversity.typ#L127-L129

@foxyseta
Copy link
Author

Glad I could help. Love your work!

@foxyseta
Copy link
Author

It appears it also gives problems with theorems/definitions numbering packages, e.g. https://github.com/typst/packages/tree/main/packages/preview/ctheorems/1.1.0.

@andreasKroepelin
Copy link
Owner

Yeah that's a thing we can't do anything about it here, unfortunately. The Typst team is aware of that, there might be a solution some day :)

@foxyseta
Copy link
Author

Is there an open issue on the officual typst repository then? Should this be listed under "Known issues" or something?

@andreasKroepelin
Copy link
Owner

See typst/typst#1841

@foxyseta
Copy link
Author

Thanks! What about content too big for one slide that hence spawns on multiple slides, though? This wouldn't be a state freeze limitation, right?

@andreasKroepelin
Copy link
Owner

No, but that's intentionally allowed. Think long bibliographies, for example.

@foxyseta
Copy link
Author

Yeah, that's my use case. But that brings about multiple "References" entries in the ToC.

@andreasKroepelin
Copy link
Owner

Oh I see... Yeah that should be fixable.

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