quarto-dev / quarto-dev/quarto-cli

Crossrefs: combined internal and external references don't work

Open
#1,186 5 comments 2 reactions 1 assignee View on GitHub

@jjallaire is already working on this.

Since Jun 20, 2022.

bug crossref
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Description

Bug description

Cross references are not parsed properly when combining figure reference and article reference, i.e., the article reference is missing

See: https://github.com/mcanouil/quarto-issues/tree/main/quarto-cli-1186

Possibly related to #1155

Quarto: 0.9.592 (I tried to upgrade to 598 and broke Quarto)
OS: MacOS arm64


Edit with Quarto 1.7.18

---
title: "Reproducible Quarto Document"
format: html
engine: markdown
references:
  - id: canouil_jointly_2018
    author:
      - family: Canouil
        given: Mickaël
      - family: Balkau
        given: Beverley
      - family: Roussel
        given: Ronan
      - family: Froguel
        given: Philippe
      - family: Rocheleau
        given: Ghislain
    container-title: Frontiers in Genetics
    doi: 10.3389/fgene.2018.00210
    issued: 2018
    title: "Jointly Modelling Single Nucleotide Polymorphisms With
      Longitudinal and Time-to-Event Trait: An Application to Type 2
      Diabetes and Fasting Plasma Glucose"
    type: article-journal
    journal-title: "Frontiers in Genetics*"
---

- ISSUE: This is a ref to article and figure [@canouil_jointly_2018; @fig-placeholder].
- OK: This is a ref to article and figure @canouil_jointly_2018, @fig-placeholder.
- OK: This is a ref alone [@canouil_jointly_2018].
- OK: This is a ref alone @canouil_jointly_2018.

![An image]({{< placeholder 600 400 >}}){#fig-placeholder}
Image

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.