quarto-dev / quarto-dev/quarto-cli

nocite does not work with Typst

Open
#12,245 15 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bibliography enhancement pandoc typst upstream
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Description

Bug description

Nocite does not work as expected with Typst.

Steps to reproduce
---
title: "Test"
format: typst
citeproc: false
bibliography: "references.bib"
bibliographystyle: chicago-fullnotes
nocite: |
  @DancyThoms2025
---
Actual behavior

Using nocite in the frontmatter does not include the citation in the bibliography. When setting citeproc: true instead, the citation is included correctly, but the Bibliography heading disappears.

Expected behavior

Citations added with Nocite should be in the bibliography regardless of the format used.

Your environment

No response

Quarto check output

Quarto 1.6.42
[✓] Checking environment information...
Quarto cache location: /Users/otthoms/Library/Caches/quarto
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.4.0: OK
Dart Sass version 1.70.0: OK
Deno version 1.46.3: OK
Typst version 0.11.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 1.6.42
Path: /Applications/quarto/bin

[✓] Checking tools....................OK
TinyTeX: v2025.02
Chromium: (not installed)

[✓] Checking LaTeX....................OK
Using: TinyTex
Path: /Users/otthoms/Library/TinyTeX/bin/universal-darwin
Version: 2024

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

[✓] Checking Python 3 installation....OK
Version: 3.13.2
Path: /opt/homebrew/opt/python@3.13/bin/python3.13
Jupyter: (None)

  Jupyter is not available in this Python installation.
  Install with python3 -m pip install jupyter

[✓] Checking R installation...........OK
Version: 4.4.2
Path: /Library/Frameworks/R.framework/Resources
LibPaths:
- /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library
knitr: 1.49
rmarkdown: 2.29

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing issue 12245 with the shown front matter using Quarto 1.6.42 and Typst 0.11.0, comparing citeproc false and true. Trace how nocite is handled for Typst and verify that the citation appears in the bibliography while the Bibliography heading remains present.

Written by the indexing model from the issue text.

Assessment

Domain
content
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.