quarto-dev / quarto-dev/quarto-cli
line numbers in code block disappears from the revealjs presentation
Open
@cscheid is already working on this.
Since Jan 2, 2025.
code-annotation
code-blocks
crossref
revealjs
- Dominant language
- JavaScript
- Stars
- 6k
- Forks
- 458
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Description
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/
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.