在 Quarto 文档中引用图形并编织为 HTML 时,默认情况下,在单词 Figure 和图形标题之间放置一个冒号。我希望那个冒号是一个句号。
我尝试了包含以下内容的 style.css 文件,但它不起作用:
.figcaption::before {
content: "Figure " counter(fig): ". ";
}
这是我的四开文档:
---
title: "Periods are better than colons"
author: "Eric"
format:
html:
css: style.css
---
I'd like to replace the colon with a period in the caption for @fig-MyRLogo.
![RLogo](Rlogo.jpg){fig-align="left" #fig-MyRLogo}
我得到的输出是:
这是通过交叉引用选项和
title-delim
参数来控制的。 您的 YAML 标头应如下所示:
---
title: "Periods are better than colons"
author: "Eric"
format:
html
crossref:
title-delim: "."
---