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 work with custom list markers #128

Open
jounathaen opened this issue Jan 5, 2024 · 2 comments
Open

#uncover and #pause don't work with custom list markers #128

jounathaen opened this issue Jan 5, 2024 · 2 comments

Comments

@jounathaen
Copy link

When I use custom markers in polylux, they are not hidden when using #uncover or #pause anymore.

Example code (bullet_layer_one.svg is literally a colored square) :

#import "@preview/polylux:0.3.1": *
#set page(paper: "presentation-16-9")
#set text(size: 25pt)
#set list(
  marker: (image(height: 0.5em, width: 0.5em, "bullet_layer_one.svg")),
  indent: 0.75cm
)

#polylux-slide[
  Powerpoint is not the ideal tool for presentations:
  - Results look often crooked
  - Lots of manual labor

  #uncover("2-")[$arrow$ one could use LaTeX Beamer]

  #uncover("3-")[
    There are still various flaws with LaTeX:
    - Cryptic syntax
    - Crude error messages (`Badness over 10000`)
  ]
]

produces the following result on slide 2:
image

@jounathaen
Copy link
Author

jounathaen commented Jan 5, 2024

Ah, apparently this is not a polylux issue, but a typst one. #hide does not hide these markers.
So this is basically the same as cetz-package/cetz#251

The related typst bugs are: typst/typst#2040 and typst/typst#619

I'd keep this open until the upstream bug is resolved, but feel free to close it anytime.

@rmburg
Copy link

rmburg commented Nov 18, 2024

Workaround for lists and enums:

#show hide: it => {
  set list(marker: none)
  set enum(numbering: n => none)

  it
}

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