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

crossreference on website-project with multiple .qmd-files unable to resolve #12142

Open
Coding4Sec opened this issue Feb 23, 2025 · 2 comments
Labels
support a request for support

Comments

@Coding4Sec
Copy link

Bug description

Quarto cannot resolve reference between different .qmd-files.

Steps to reproduce

My website project spans multiple .qmd-files.

I need to crossreference sections between different sites. Using the guidelines in Quarto Guide yields the warning

WARNING (/home/apex/venvs/quarto/lib/python3.12/site-packages/quarto_cli/share/filters/main.lua:13878) Unable to resolve crossref @sec-zeit

And the output on the webpage shows ?@sec-zeit but no reference.

Referencing within the same page works like a charm (this rules out any typos or misconfig.)

In _quarto.yml config is set to 'number-sections: true`.

My workaround: Using Links: "[Link description](filename.qmd#sec-zeit)"

Is this the intended way to crossref between different pages within a site?

It would be much more convenient to use the default style as described in the guide to crossref sections.

Best, Rick

Actual behavior

No response

Expected behavior

No response

Your environment

  • IDE: VS Code 1.97.2
  • OS: Ubuntu 24.04.1
  • Quarto 1.6.40
    in virtual env

Quarto check output

quarto check

Quarto 1.6.40
[✓] Checking environment information...
      Quarto cache location: /home/apex/.cache/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.40
      Path: /home/apex/venvs/quarto/lib/python3.12/site-packages/quarto_cli/bin

[✓] 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.12.3
      Path: /home/apex/venvs/quarto/bin/python
      Jupyter: 5.7.2
      Kernels: python3

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

[✓] Checking R installation...........OK
      Version: 4.4.2
      Path: /usr/lib/R
      LibPaths:
        - /usr/local/lib/R/site-library
        - /usr/lib/R/site-library
        - /usr/lib/R/library
      knitr: (None)
      rmarkdown: (None)

      The knitr package is not available in this R installation.
      Install with install.packages("knitr")
      The rmarkdown package is not available in this R installation.
      Install with install.packages("rmarkdown")
@Coding4Sec Coding4Sec added the bug Something isn't working label Feb 23, 2025
@mcanouil

This comment has been minimized.

@mcanouil
Copy link
Collaborator

mcanouil commented Feb 23, 2025

Note that there is no bugs here.
In the future, use the Discussion board for feature requests.

Note also that the link you shared is for basic single file document.
The correct documentation describes what's supported for linking and that is not a "workaround" as you call it: https://quarto.org/docs/websites/#linking

@mcanouil mcanouil added support a request for support and removed bug Something isn't working labels Feb 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support a request for support
Projects
None yet
Development

No branches or pull requests

2 participants