-
Notifications
You must be signed in to change notification settings - Fork 133
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
Bibliography in papaja::revision_letter_pdf gives LaTeX Error: Lonely \item--perhaps a missing list environment. #587
Comments
Just changing |
Adding that I am also getting this error. |
Thanks for reporting this. I'll take a look as soon as possible. |
Any update or workaround for this error? |
Following @cjvanlissa comment, I notice that if I try to render the Rmd file, get the
If I switch to papaja::apa6_pdf and rerender, it works fine. So, I can copy and paste the relevant section of the CSL code into the .tex file (after trying to render with papaja::revision_letter_pdf) and it works correctly. The code I am copy/pasting is the following:
I assume this needs to be added to the template to fix this issue, which appears to be lines 173-194 of https://github.com/crsh/papaja/blob/main/inst/rmarkdown/templates/revision_letter/resources/revision_letter.tex. |
@crsh thanks for fixing this! While you're at it: I had the same error when rendering an APA6 document recently; might have been a problem with my bib file, but if it happens again I will open an issue. |
I think that some change posterior to #593 has affected this, as I am not getting this error again. Edit: I notice that if I reinstall the CRAN version the error is not present. |
Thanks for letting us know! I plan to submit an update to CRAN shortly. |
I'm sorry, this won't be a reproducible example. If it's not a bug, feel free to ignore.
I'm unable to render a revision_letter_pdf with references, because the bibliography entries each give this error:
LaTeX Error: Lonely \item--perhaps a missing list environment.
The entries look like this:
Which seems to be the same as the entries from my papaja::apa6_pdf manuscript:
Maybe some package is missing from the revision_letter template?
The text was updated successfully, but these errors were encountered: