Open andjar opened 1 week ago
I can't repro:
I have uploaded the raw and rendered files to a github repo for reproduction: https://github.com/andjar/quarto-bug-figure-ref
To preview the rendered html notebook page: https://html-preview.github.io/?url=https://github.com/andjar/quarto-bug-figure-ref/blob/main/_manuscript/test-preview.html
Sorry, that's still not enough. What about quarto render index.qmd
is failing? That's what I ran and that's the result I got. Can you provide more details?
So, the error is only present in the extra notebooks, not the main manuscript. If the code in the original post is put into the main manuscript file index.qmd
, it renders correctly to Figure 1 is an example.
For the notebook test.qmd
, the reference is rendered as @fig-example is an example.
This happens with both quarto render
and quarto render test.qmd
. The commands run fine without warnings or error messages:
> quarto render test.qmd
processing file: test.qmd
1/3
2/3 [unnamed-chunk-1]
3/3
output file: test.knit.md
Rendering qmd embeds [test.qmd]
Rendering output notebook [test.qmd]
Rendering HTML preview [test.qmd]
Output created: _manuscript\test-preview.html
Ok, that clarifies things. Thanks!
Thanks for your patience and for looking into this!
Just to set expectations: we won't have time to look into this in the near future, but we have a backlog of manuscript issues that we will take on all at once, hopefully in 1.7 or 1.8.
Bug description
I was trying to make subfigures in a notebook to be embedded in my main article, preferably as supplemental figures. However, I was unable to get the figure references in the notebook to render properly when rendering the project from the command line.
Possibly related to #8956?
Steps to reproduce
Create an empty main document/article and a notebook containing:
Caption :::
@fig-example is an example.