Skip to content

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

Closed

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

Activity

  1. mcanouil commented on Oct 23, 2025

    @mcanouil
    Collaborator

    Could you properly format your post using code blocks for code and terminal outputs? Thanks.
    If your code contains code blocks, you need to enclose it using more backticks, i.e., usually four ````.
    See https://quarto.org/bug-reports.html#formatting-make-githubs-markdown-work-for-us.

  2. mcanouil commented on Oct 23, 2025

    @mcanouil
    Collaborator

    The Typst syntax is incorrect, it should be #bibliography(("references.bib","references-1.bib")).

    echo "@book{article-1,\n  title = {Article A}\n}" > references.bib
    echo "@book{article-2,\n  title = {Article B}\n}" > references-1.bib
    echo "@article-1 @article-2" | pandoc -f markdown -t typst \
      --bibliography references.bib \
      --bibliography references-1.bib \
      --template default.typst
  3. self-assigned this
    on Oct 23, 2025
  4. added a commit that references this issue on Oct 23, 2025
    2a26e6d
  5. mcanouil commented on Oct 23, 2025

    @mcanouil
    Collaborator
  6. mcanouil commented on Oct 23, 2025

    @mcanouil
    Collaborator

    Pandoc's template has been fixed on Pandoc's repository default branch, so it will be available in the next Pandoc release.

  7. added a commit that references this issue on Oct 23, 2025
    09a0a81
  8. added this to the v1.9 milestone on Oct 23, 2025
  9. added a commit that references this issue on Oct 23, 2025
    66a4c02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions