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

line numbers in code block disappears from the revealjs presentation #11757

Open
crossxwill opened this issue Dec 30, 2024 · 1 comment
Open
Assignees
Labels
Milestone

Comments

@crossxwill
Copy link

Bug description

The line numbers disappear from the presentation when lst-label and lst-cap chunk attributes are used.

Steps to reproduce

---
title: "Lecture 1"
format:
    revealjs:
        incremental: true
        slide-number: true
        code-overflow: scroll
        code-copy: true
        chalkboard:
            theme: whiteboard
execute:
    echo: false
    warning: false
---

## Motivation

```{python}
#| echo: true
#| lst-label: lst-import-libs
#| lst-cap: "Import Libraries"
#| code-line-numbers: 1,2

import pandas as pd
import numpy as np
```

## Motivation 2222

```{python}
#| echo: true
#| label: lst-import-libs2222
#| code-line-numbers: 1,2

import pandas as pd
import numpy as np
```

Refer to @lst-import-libs and @lst-import-libs2222.

Expected behavior

Code line numbers should show up in the presentation.

Actual behavior

Code line numbers are missing from the presentation.

Your environment

  • VS Code 1.96.2
  • Windows 11
  • Quarto 1.6.39
  • Python 3.10.16

Quarto check output

Quarto 1.6.39
[>] Checking environment information...
      Quarto cache location: C:\Users\chiuw\AppData\Local\quarto
[>] Checking versions of quarto binary dependencies...
      Pandoc version 3.4.0: OK
      Dart Sass version 1.70.0: OK
      Deno version 1.46.3: OK
      Typst version 0.11.0: OK
[>] Checking versions of quarto dependencies......OK
[>] Checking Quarto installation......OK
      Version: 1.6.39
      Path: C:\Users\chiuw\AppData\Local\Programs\Quarto\bin
      CodePage: 1252

[>] Checking tools....................OK
      TinyTeX: (not installed)
      Chromium: (not installed)

[>] Checking LaTeX....................OK
      Tex:  (not detected)

[>] Checking basic markdown render....OK

[>] Checking Python 3 installation....OK
      Version: 3.10.16 (Conda)
      Path: C:/Users/chiuw/miniforge3/envs/env_AutoGluon_202412/python.exe
      Jupyter: 5.7.2
      Kernels: python3

[>] Checking Jupyter engine render....OK

[>] Checking R installation...........(None)

      Unable to locate an installed version of R.
      Install R from https://cloud.r-project.org/
@crossxwill crossxwill added the bug Something isn't working label Dec 30, 2024
@mcanouil mcanouil added the revealjs Issues with the revealjs format label Dec 30, 2024
@crossxwill
Copy link
Author

Work-around is to use div fences:

## Motivation

:::{#lst-code-1 lst-cap="Import Libraries"}
```{python}
#| echo: true
import pandas as pd
import numpy as np
```
:::

@cscheid cscheid self-assigned this Jan 2, 2025
@cscheid cscheid removed the bug Something isn't working label Jan 2, 2025
@cscheid cscheid added this to the Future milestone Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants