-
Notifications
You must be signed in to change notification settings - Fork 58
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
LaTeX Error: Environment cslreferences undefined #7
Comments
Please provide a minimal reproducible example that gives this error. I use the template regularly and I have not seen it. |
Hi Rob, Here is my Markdown document specification:
When any citation is used, there is an error message: ! LaTeX Error: Environment cslreferences undefined. My R environment: R version 4.0.2 (2020-06-22) Thanks!! Caroline |
The template uses biblatex for referencing, not csl. You can edit the template to remove the biblatex specs, or you can use a biblatex style for PLOS. There are some suggestions here: https://tex.stackexchange.com/a/52586/143 |
Thanks Rob!! I think when using the template under bookdown, bookdown calls csl. By including the cslreferences specification, somehow it over-writes the biblatex style. I found myself had to use bookdown because I have used figure citation style @ref(fig: figure1), so it works with both word and latex under bookdown. I am still quite new to this, so not sure whether it is the best way to go. But it seems working now. Thanks for your help, much appreciated : ) Best, Caroline |
Hi Rob,
Thanks for the templets. I have been trying to find a nice template for paper submission and find rticles templets quite hard to manually edit anything. Your template works beautifully. One problem that I found with the WorkingPaper template when using under bookdown (with additional csl specification), is that it seems to report an error of cslreferences. Adding this code in the template seems to be able to fix the problem. Although I am not sure why : )
Thanks again for sharing ~~
Best,
Caroline
The text was updated successfully, but these errors were encountered: