Skip to content

Typst format not parsing multiple bibliography (.bib) files in yaml #13602

@hamgamb

Description

@hamgamb

I have:

  • searched the issue tracker for similar issues
  • installed the latest version of Quarto CLI
  • formatted my issue following the Bug Reports guide

Bug description

Rendering a document to typst with multiple bibliography files specified in the YAML results in the following error:

[typst]: Compiling test.typ to test.pdf...error: unexpected argument

    │
294 │ #bibliography("references.bib","references-1.bib")

Rendering to HTML and PDF work fine.

I think both the quarto docs and typst docs suggest this is possible:
https://quarto.org/docs/authoring/citations.html
https://typst.app/docs/reference/model/bibliography/

Steps to reproduce

---
format: typst
bibliography: 
  - references.bib
  - references-1.bib
---

A reference from the first file @smith1776inquirynaturecauses

A reference from the second file @ricardo1817principlespoliticaleconomy

With .bib files references.bib

@book{smith1776inquirynaturecauses,
  title = {An {{Inquiry}} into the {{Nature}} and {{Causes}} of the {{Wealth}} of {{Nations}}},
  author = {Smith, Adam},
  year = 1776,
  edition = {1},
  publisher = {Wiley},
  urldate = {2024-11-07},
  langid = {english},

}

and references-1.bib

@book{ricardo1817principlespoliticaleconomy,
  title = {On the Principles of Political Economy and Taxation},
  author = {Ricardo, D.},
  date = {1817},
  publisher = {John Murray},
  url = {https://books.google.com.au/books?id=cUBKAAAAYAAJ},
  lccn = {18015237}
}

Your environment

  • IDE: RStudio 2025.09.1 Build 401
  • OS: Windows 11 Pro 23H2

Quarto check output

Quarto 1.9.8
[>] Checking environment information...
      Quarto cache location: C:\Users\AU011030\AppData\Local\quarto
[>] Checking versions of quarto binary dependencies...
      Pandoc version 3.6.3: OK
      Dart Sass version 1.87.0: OK
      NOTE: Deno version 2.4.5 does not strictly match 2.3.1 and strict checking is enabled. Please use 2.3.1.
      Typst version 0.13.0: OK
[>] Checking versions of quarto dependencies......OK
[>] Checking Quarto installation......OK
      Version: 1.9.8
      Path: C:\Users\AU011030\AppData\Local\Programs\Quarto\bin
      CodePage: 1252

[>] Checking tools....................OK
      TinyTeX: v2025.06
      Chromium: (not installed)

[>] Checking LaTeX....................OK
      Using: TinyTex
      Path: C:\Users\AU011030\AppData\Roaming\TinyTeX\bin\windows\
      Version: 2025

[>] Checking Chrome Headless....................OK
      Using: Chrome found on system
      Path: C:\Program Files\Google\Chrome\Application\chrome.exe
      Source: Windows Registry

[>] Checking basic markdown render....OK

[>] Checking Python 3 installation....(None)

      Unable to locate an installed version of Python 3.
      Install Python 3 from https://www.python.org/downloads/

[>] Checking R installation...........OK
      Version: 4.5.0
      Path: C:/PROGRA~1/R/R-45~1.0
      LibPaths:
        - C:/Users/AU011030/Documents/Projects/Dashboard/renv/library/windows/R-4.5/x86_64-w64-mingw32
        - C:/Users/AU011030/AppData/Local/R/cache/R/renv/sandbox/windows/R-4.5/x86_64-w64-mingw32/9bc714e4
      knitr: 1.50
      rmarkdown: 2.29

[>] Checking Knitr engine render......OK

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions