Skip to content

Capitals in Figure label strings break rendering #4542

@davidmvermillion

Description

@davidmvermillion

Bug description

When labeling figures, capitals in the label string cause the entire label to be unrecognized. "WARNING: Unable to resolve crossref @fig-data-weeeWho" Nothing in the documentation for references makes this appear to be expected behavior. This also impacts the numbering and captions. This behavior is appearing in Visual Studio Code 1.75.1 run on a MacBook Pro M1 Pro running Mac OS 13.1.

May be related to #1186. Sorry, not sure how to shrink the sample to <20 lines.

---
title: 'Labeling Bug'
format:
    pdf:
        include-in-header:
            text: |
                \addtokomafont{disposition}{\rmfamily}
jupyter: python3
---

```{python}
#| echo: false

# Workspace initialization
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt

df = pd.DataFrame(np.random.randint(0, 100, size = (100, 2)))

```

# Demonstration

Lorem ipsum lanum et al. Lorem ipsum lanum et al. Lorem ipsum lanum et al. Lorem ipsum lanum et al. Lorem ipsum lanum et al. Lorem ipsum lanum et al. Lorem ipsum lanum et al. See @fig-data-weee and @fig-data-weeeWho.


```{python}
#| echo: false
#| label: fig-data-weee
#| fig-cap:
#|   - "Random Data"

plt.scatter(df[0], df[1], color = '#e34234')
```


```{python}
#| echo: false
#| label: fig-data-weeeWho
#| fig-cap:
#|   - "Random Data"

plt.scatter(df[0], df[1], color = '#e34234')
```

Checklist

  • Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
  • Please format your issue so it is easier for us to read the bug report.
  • Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
  • Please document the operating system you're running. If on Linux, please provide the specific distribution.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcrossreflintlinting-related issuestriaged-toIssues that were not self-assigned, signals that an issue was assigned to someone.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions