You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何在Quarto网站中创建全局统一参考文献页面?

Quarto网站实现全局参考文献汇总的方法

Quarto网站完全支持将多文件中的BibTeX引用汇总到单个全局参考文献页面,操作步骤如下:

  • 创建空白的references.qmd文件,仅添加标题的YAML配置:
---
title: "参考文献"
---
  • 修改_quarto.yml的导航栏配置,将references.qmd加入导航:
project:
  type: website

website:
  title: "test"
  navbar:
    left:
      - href: index.qmd
        text: Home
      - about.qmd
      - references.qmd  # 新增全局参考文献页面链接

bibliography: references.bib

format:
  html:
    theme: cosmo
    toc: true

editor: visual
  • 在所有包含引用的qmd文件(如index.qmd、about.qmd)的YAML头中添加suppress-bibliography: true,关闭单个页面的参考文献输出:
    index.qmd修改后:
---
title: "test"
suppress-bibliography: true
---

This is a Quarto website.

To learn more about Quarto websites visit <https://quarto.org/docs/websites> [@knuth1984].

```{r}
1 + 1
`about.qmd`修改后:
```qmd
---
title: "About"
suppress-bibliography: true
---

About this site [@wickham2019]

```{r}
1 + 1
完成以上配置后,渲染网站时:
- 所有qmd文件中的引用会被自动收集
- 仅在`references.qmd`页面生成完整的全局参考文献列表
- 单个页面底部不再单独输出参考文献

内容的提问来源于stack exchange,提问作者fawda123
相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.28 16:15:05