Hello! I'm not 100% sure if this is the right place to ask… I've observed the following unexpected behavior:
This code produces two white slides. The do contain selectable code/text, but the formatting is messed up (white text on white background, line numbers not where they belong).
#import "@preview/polylux:0.4.0": *
#import "@preview/codly:1.3.0": *
// ↓ remove this line and the slides show
// `foo` and `bar` as expected
#show: codly-init.with()
#slide[
#alternatives[
```
foo
```
][
```
bar
```
]
]
Code blocks are correctly shown:
- outside of
alternatives (they are shown in uncover and only as expected)
- when using Touying instead of Polylux (hence why I put this issue here)
- when disabling codly
Maybe this has something to do with codly modifying state? But even when using codly's local function, the problem persists and empty slides are shown.
Use case: I wanted to highlight different lines of a code block depending on the subslide using alternatives-fn and noticed that no code was showing.
- using
typst 0.14.2 (b33de9de)
Hello! I'm not 100% sure if this is the right place to ask… I've observed the following unexpected behavior:
This code produces two white slides. The do contain selectable code/text, but the formatting is messed up (white text on white background, line numbers not where they belong).
Code blocks are correctly shown:
alternatives(they are shown inuncoverandonlyas expected)Maybe this has something to do with codly modifying state? But even when using codly's
localfunction, the problem persists and empty slides are shown.Use case: I wanted to highlight different lines of a code block depending on the subslide using
alternatives-fnand noticed that no code was showing.typst 0.14.2 (b33de9de)