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

citeproc not generating bibliography when declared as part of the YAML metadata #9157

Closed
GarciaBarreiro opened this issue Oct 24, 2023 · 2 comments
Labels

Comments

@GarciaBarreiro
Copy link

Explain the problem.

Adding citeproc: true to the YAML metadata of a MarkDown file does not generate a bibliography after executing pandoc file.md -o file.pdf, but executing pandoc file.md -o file.pdf --citeproc does and, as far as I know, the first option should also work.

Pandoc version?

I managed to reproduce this issue in the latest Pandoc version (3.1.8).

Example

Using pandoc file.md -o file.pdf on the simple test below just generates a PDF that says test [@ id123], but adding the --citeproc option adds the bibliography.

---
references:
  - id: id123
    title: Some Title
    author: Some Guy
citeproc: true
---

test [@id123]
@jgm
Copy link
Owner

jgm commented Oct 24, 2023

Not a bug. --citeproc is a command line option, not something you can trigger via metadata.
You can, however, use a defaults file (see the manual).

@jgm jgm closed this as completed Oct 24, 2023
@iandol
Copy link
Contributor

iandol commented Oct 25, 2023

@GarciaBarreiro — the ability to pass command-line flags as part of the YAML metadata has been a long-standing wish for some of us: #4627 which led to #5870 — defaults files currently still require a separate file and explicit command-line configuration, which #5870 may address…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants
@jgm @iandol @GarciaBarreiro and others