Skip to content

BibTeX file not found in resource path #860

@rgaiacs

Description

@rgaiacs

Related to #853

Minimal Working Example

Let's create a new book project:

$ quarto create-project mwe --type book
Creating project at /tmp/mwe:
  - Created _quarto.yml
  - Created index.qmd
  - Created intro.qmd
  - Created summary.qmd
  - Created references.qmd
  - Created cover.png
  - Created references.bib
$ cd mwe
$ quarto render --to html --output-dir public --debug --execute-debug --log-level info
[1/4] index.qmd
[2/4] intro.qmd
[3/4] summary.qmd
[4/4] references.qmd

Output created: public/index.html

quarto work as expected.

Let's create a directory called foo to host a part of our book and create a file foo/index.qmd to open our book part.

$ mkdir foo
$ cp index.qmd foo/
$ cat _quarto.yml 
project:
  type: book

book:
  title: "mwe"
  author: "Jane Doe"
  date: "13/05/2022"
  chapters:
    - index.qmd
    - intro.qmd
    - summary.qmd
    - references.qmd

bibliography: references.bib

format:
  html:
    theme: cosmo
  pdf:
    documentclass: scrreprt
$ quarto render --to html --output-dir public --debug --execute-debug --log-level info
[1/5] foo/index.qmd
[2/5] index.qmd
[3/5] intro.qmd
[4/5] summary.qmd
[5/5] references.qmd

File ../references.bib not found in resource path
ERROR: File ../references.bib not found in resource path

Primary Issue

quarto fail with File ../references.bib not found in resource path. Some how, the introduction of foo/index.qmd messed with quarto's path logic.

Secondary Issue

quarto is processing foo/index.qmd but it is lot listed in _quarto.yml.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions