andreasKroepelin / polylux

A package for creating slides in Typst
https://polylux.dev/book
MIT License
1.11k stars 50 forks source link

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

Open jounathaen opened 8 months ago

jounathaen commented 8 months ago

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 commented 8 months ago

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 https://github.com/johannes-wolf/cetz/issues/251

The related typst bugs are: https://github.com/typst/typst/issues/2040 and https://github.com/typst/typst/issues/619

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