英文:
WARNING: Unable to resolve crossref for figure in quarto html file
问题
我有一个.qmd文件,其中包含以下内容:
![](images/plt_pay_bame_diff){#fig-pay_bame_diff}
如果你看@fig-pay_bame_diff
它会输出图像,但无法处理到图表的交叉引用:
metadata
document-css: false
link-citations: true
date-format: long
lang: en
警告:无法解析交叉引用@fig-pay_bame_diff
输出创建于:test.html
英文:
I have a .qmd file with this contents:
![](images/plt_pay_bame_diff){#fig-pay_bame_diff}
If you look at @fig-pay_bame_diff
It outputs the image, but can't process the crossref to the figure:
metadata
document-css: false
link-citations: true
date-format: long
lang: en
WARNING: Unable to resolve crossref @fig-pay_bame_diff
Output created: test.html
答案1
得分: 1
不工作的原因是因为您没有提供图题(即fig-cap
)。
对于Markdown图像语法,图题应放在方括号[]
内。
因此,请尝试以下方式:
![某个标签](images/plt_pay_bame_diff){#fig-pay_bame_diff}
如果您查看@fig-pay_bame_diff
英文:
Its not working because you have not provided a figure caption (i.e. fig-cap
).
For markdown image syntax, figure caption goes within the sqaure brackets []
.
So try with,
![some label](images/plt_pay_bame_diff){#fig-pay_bame_diff}
If you look at @fig-pay_bame_diff
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论