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

cos_prereg() not knitting with bibliography? #16

Closed
nsunami opened this issue Dec 11, 2020 · 2 comments · Fixed by #23
Closed

cos_prereg() not knitting with bibliography? #16

nsunami opened this issue Dec 11, 2020 · 2 comments · Fixed by #23
Labels

Comments

@nsunami
Copy link

nsunami commented Dec 11, 2020

I'm trying to knit a preregistration file with bibliography with prereg::cos_prereg() but failing with an error message:

! LaTeX Error: Environment CSLReferences undefined.

I have the following metadata:

output: prereg::cos_prereg
bibliography      : "preregistration.bib"

If I comment out output: prereg::cos_prereg(), the file will knit. I'm guessing this is something to do with Pandoc 2.8 and the .tex template as mentioned here.

@crsh crsh added the bug label Dec 23, 2020
crsh added a commit that referenced this issue Dec 23, 2020
@crsh
Copy link
Owner

crsh commented Dec 23, 2020

Hi Nami, thanks for raising this issue. This error is caused by upstream changes in pandoc. To address this problem at its root will take a little time, but I have drafted a hot fix for this issue: Could you try installing with remotes::install_github("crsh/prereg@issue-16") to see if that fixes the problem?

@nsunami
Copy link
Author

nsunami commented Jan 4, 2021

Thank you, Frederik! That fixed the problem, and I was able to knit the document without issues.

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

Successfully merging a pull request may close this issue.

2 participants