Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If you delete references.bib for from _quarto.yml latex rendering gives hard to understand error #11040

Open
ati-ozgur opened this issue Oct 11, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request latex LaTeX engines related libraries and technologies pandoc
Milestone

Comments

@ati-ozgur
Copy link

ati-ozgur commented Oct 11, 2024

Bug description

Create a project file.
Remove references.bib file from _quarto.yml.
command:

quarto render --to pdf 

gives following error.

LaTeX Error: Something's wrong--perhaps a missing \item.    
See the LaTeX manual or LaTeX Companion for explanation.   
Type  H <return>  for immediate help.   
...
l.242 \end{CSLReferences}

change cite-method: in format section like below:

format:

  pdf:
    documentclass: scrreprt
    cite-method: natbib

it works and you understand the error.

I didn't find a database entry for "knuth84"

│generating bibliography                                                                                                                │
│  This is BibTeX, Version 0.99d (TeX Live 2024)                                                                                        │
│  The top-level auxiliary file: index.aux                                                                                              │
│  The style file: plainnat.bst                                                                                                         │
│  I found no \bibdata command---while reading file index.aux                                                                           │
│  Warning--I didn't find a database entry for "knuth84"                                                                                │
│  (There was 1 error message)                                                                                                          │
│                                                                                                                                       │
│running xelatex - 2                                                                                                                    │
│  This is XeTeX, Version 3.141592653-2.6-0.999996 (TeX Live 2024) (preloaded format=xelatex)                                           │
│   restricted \write18 enabled.                                                                                                        │
│  entering extended mode                                                                                                               │

Steps to reproduce

Expected behavior

It should remind you that there is no bib file instead of giving this cryptic error.

Actual behavior

gives following error.

LaTeX Error: Something's wrong--perhaps a missing \item.    
See the LaTeX manual or LaTeX Companion for explanation.   
Type  H <return>  for immediate help.   
...
l.242 \end{CSLReferences}

Your environment

command line quarto

Quarto check output

[✓] Checking tools....................OK │
│ TinyTeX: v2024.10 │
│ Chromium: 869685 │
│ │
│[✓] Checking LaTeX....................OK │
│ Using: TinyTex │
│ Path: /home/atilla/.TinyTeX/bin/x86_64-linux │
│ Version: 2024 │
│ │
│[✓] Checking basic markdown render....OK │
│ │
│[✓] Checking Python 3 installation....OK │
│ Version: 3.12.3 │
│ Path: /usr/bin/python3 │
│ Jupyter: 5.3.2 │
│ Kernels: python3 │
│ │
│[✓] Checking Jupyter engine render....OK │
│ │
│[✓] Checking R installation...........(None) │
│ │
│ Unable to locate an installed version of R. │
│ Install R from https://cloud.r-project.org/

@ati-ozgur ati-ozgur added the bug Something isn't working label Oct 11, 2024
@cscheid cscheid added enhancement New feature or request latex LaTeX engines related libraries and technologies and removed bug Something isn't working labels Oct 11, 2024
@ati-ozgur
Copy link
Author

I added following github repo and github workflow that show this issue.

https://github.com/ati-ozgur/quarto-bugs/tree/refs/heads/reference-bug
https://github.com/ati-ozgur/quarto-bugs/actions/runs/11314112634

@cderv cderv added this to the Future milestone Oct 14, 2024
@cderv
Copy link
Collaborator

cderv commented Oct 14, 2024

This makes me thing of this other issue:

which was a problem with upstream Pandoc

It has been now fixed in Pandoc 3.5 and there should not be any more error like this when no bibliography file is provided.

Pandoc 3.5 will be integrated in Quarto in a later version that should fix this problem. When this is done, I'll check for what happens in your reported example.

Thanks again for the feedback

@cderv cderv added the pandoc label Oct 14, 2024
@cderv cderv self-assigned this Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request latex LaTeX engines related libraries and technologies pandoc
Projects
None yet
Development

No branches or pull requests

3 participants