-
Notifications
You must be signed in to change notification settings - Fork 241
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_entries(): Lonely \item--perhaps a missing list environment. #246
Comments
In the generated \phantomsection\label{bibliography}
\bibitem[\citeproctext]{ref-R-vitae}
\CSLLeftMargin{1. }%
\CSLRightInline{O'Hara-Wild, M., \& Hyndman, R. (2023). \emph{Vitae:
Curriculum vitae for r markdown}.
\url{https://pkg.mitchelloharawild.com/vitae/}}
\bibitem[\citeproctext]{ref-R-tibble}
\CSLLeftMargin{2. }%
\CSLRightInline{Müller, K., \& Wickham, H. (2023). \emph{Tibble: Simple
data frames}. \url{https://tibble.tidyverse.org/}} |
I have found that this has to do with |
I have the same issue. Pandoc v3.1.8. rmarkdown::render(system.file("rmarkdown/templates/awesomecv/skeleton/skeleton.Rmd",
package = "vitae"))
#> processing file: skeleton.Rmd
#> output file: skeleton.knit.md
#> "C:/Users/julienv/AppData/Local/Pandoc/pandoc" +RTS -K512m -RTS skeleton.knit.md --to latex --from markdown+autolink_bare_uris+tex_math_single_backslash --output skeleton.tex --lua-filter "C:\Users\julienv\AppData\Local\R\win-library\4.3\rmarkdown\rmarkdown\lua\pagebreak.lua" --lua-filter "C:\Users\julienv\AppData\Local\R\win-library\4.3\rmarkdown\rmarkdown\lua\latex-div.lua" --embed-resources --standalone --template "C:\Users\julienv\AppData\Local\R\win-library\4.3\vitae\rmarkdown\templates\awesomecv\resources\awesome-cv.tex" --highlight-style tango --pdf-engine xelatex --lua-filter "C:\Users\julienv\AppData\Local\Temp\RtmpUjGkj2/multiple-bibliographies.lua" --variable page_total=TRUE --variable show_footer=TRUE
#> ! LaTeX Error: Lonely \item--perhaps a missing list environment.
#> Error: LaTeX failed to compile skeleton.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See skeleton.log for more info. Session info
|
I thought I was going crazy when this suddenly stopped working with my CV but I'd not made any changes aside from adding a new publication or two. Thank you for confirming it's not me and at least providing the cause. |
It seems like the appropriate |
Thanks all for reporting this problem, special thanks for identifying the source of the problem in the generated tex. I've updated the csl-refs template from pandoc and updated the multiple bibliographies code to match the more recently updated version here: https://github.com/pandoc-ext/multibib/ I will publish an updated version to CRAN shortly after some further testing - let me know if you still have issues with this. |
Thanks very much for your help with this, @mitchelloharawild. I just tried with the development version and got this error: rmarkdown::render(system.file("rmarkdown/templates/awesomecv/skeleton/skeleton.Rmd",
package = "vitae"))
#> processing file: skeleton.Rmd
#> output file: skeleton.knit.md
#> "C:/Users/julienv/AppData/Local/Pandoc/pandoc" +RTS -K512m -RTS skeleton.knit.md --to latex --from markdown+autolink_bare_uris+tex_math_single_backslash --output skeleton.tex --lua-filter "C:\Users\julienv\AppData\Local\R\win-library\4.3\rmarkdown\rmarkdown\lua\pagebreak.lua" --lua-filter "C:\Users\julienv\AppData\Local\R\win-library\4.3\rmarkdown\rmarkdown\lua\latex-div.lua" --embed-resources --standalone --template "C:\Users\julienv\AppData\Local\R\win-library\4.3\vitae\rmarkdown\templates\awesomecv\resources\awesome-cv.tex" --highlight-style tango --pdf-engine xelatex --lua-filter "C:/Users/julienv/AppData/Local/R/win-library/4.3/vitae/multiple-bibliographies.lua" --variable page_total=TRUE --variable show_footer=TRUE
#> Error: pandoc document conversion failed with error 83 Created on 2023-11-23 with reprex v2.0.2 Standard output and standard errorError running filter C:/Users/julienv/AppData/Local/R/win-library/4.3/vitae/multiple-bibliographies.lua:
File C:92c1fe1acb.yaml not found in resource path
stack traceback:
...ocal/R/win-library/4.3/vitae/multiple-bibliographies.lua:72: in function <...ocal/R/win-library/4.3/vitae/multiple-bibliographies.lua:59> Session infosessioninfo::session_info()
#> ─ Session info ───────────────────────────────────────────────────────────────
#> setting value
#> version R version 4.3.1 (2023-06-16 ucrt)
#> os Windows 10 x64 (build 19044)
#> system x86_64, mingw32
#> ui RTerm
#> language (EN)
#> collate English_United Kingdom.utf8
#> ctype English_United Kingdom.utf8
#> tz Europe/Oslo
#> date 2023-11-23
#> pandoc 3.1.8 @ C:/Users/julienv/AppData/Local/Pandoc/ (via rmarkdown)
#>
#> ─ Packages ───────────────────────────────────────────────────────────────────
#> package * version date (UTC) lib source
#> cli 3.6.1 2023-03-23 [1] CRAN (R 4.3.1)
#> digest 0.6.33 2023-07-07 [1] CRAN (R 4.3.1)
#> dplyr * 1.1.3 2023-09-03 [1] CRAN (R 4.3.1)
#> evaluate 0.23 2023-11-01 [1] CRAN (R 4.3.2)
#> fansi 1.0.4 2023-01-22 [1] CRAN (R 4.3.1)
#> fastmap 1.1.1 2023-02-24 [1] CRAN (R 4.3.1)
#> fs 1.6.3 2023-07-20 [1] CRAN (R 4.3.1)
#> generics 0.1.3 2022-07-05 [1] CRAN (R 4.3.1)
#> glue 1.6.2 2022-02-24 [1] CRAN (R 4.3.1)
#> htmltools 0.5.6 2023-08-10 [1] CRAN (R 4.3.1)
#> jsonlite 1.8.7 2023-06-29 [1] CRAN (R 4.3.1)
#> knitr 1.45 2023-10-30 [1] CRAN (R 4.3.2)
#> lifecycle 1.0.4 2023-11-07 [1] CRAN (R 4.3.2)
#> magrittr 2.0.3 2022-03-30 [1] CRAN (R 4.3.1)
#> pillar 1.9.0 2023-03-22 [1] CRAN (R 4.3.1)
#> pkgconfig 2.0.3 2019-09-22 [1] CRAN (R 4.3.1)
#> purrr 1.0.2 2023-08-10 [1] CRAN (R 4.3.1)
#> R.cache 0.16.0 2022-07-21 [1] CRAN (R 4.3.2)
#> R.methodsS3 1.8.2 2022-06-13 [1] CRAN (R 4.3.1)
#> R.oo 1.25.0 2022-06-12 [1] CRAN (R 4.3.1)
#> R.utils 2.12.3 2023-11-18 [1] CRAN (R 4.3.2)
#> R6 2.5.1 2021-08-19 [1] CRAN (R 4.3.1)
#> reprex 2.0.2 2022-08-17 [1] CRAN (R 4.3.1)
#> rlang 1.1.1 2023-04-28 [1] CRAN (R 4.3.1)
#> rmarkdown 2.25 2023-09-18 [1] CRAN (R 4.3.1)
#> rstudioapi 0.15.0 2023-07-07 [1] CRAN (R 4.3.1)
#> sessioninfo 1.2.2 2021-12-06 [1] CRAN (R 4.3.2)
#> styler 1.10.2 2023-08-29 [1] CRAN (R 4.3.2)
#> tibble * 3.2.1 2023-03-20 [1] CRAN (R 4.3.1)
#> tidyselect 1.2.0 2022-10-10 [1] CRAN (R 4.3.1)
#> utf8 1.2.3 2023-01-31 [1] CRAN (R 4.3.1)
#> vctrs 0.6.3 2023-06-14 [1] CRAN (R 4.3.1)
#> vitae * 0.5.3.9000 2023-11-23 [1] Github (mitchelloharawild/vitae@738a98c)
#> withr 2.5.2 2023-10-30 [1] CRAN (R 4.3.2)
#> xfun 0.40 2023-08-09 [1] CRAN (R 4.3.1)
#> yaml 2.3.7 2023-01-23 [1] CRAN (R 4.3.0)
#>
#> [1] C:/Users/julienv/AppData/Local/R/win-library/4.3
#> [2] C:/Program Files/R/R-4.3.1/library
#>
#> ────────────────────────────────────────────────────────────────────────────── |
Strange, thanks! This looks like a windows specific bug with file paths. |
Sure! Took me a moment to figure out I had to render with ---
name: Marie
surname: Curie
position: Professor
pronouns: she/her
address: School of Physics & Chemistry, École Normale Supérieure
phone: +1 22 3333 4444
www: mariecurie.com
email: [email protected]
twitter: mariecurie
github: mariecurie
linkedin: mariecurie
date: November 2023
output:
vitae::awesomecv:
keep_md: yes
page_total: yes
bibliography:
8a04b61006b8ea185bd670c9ddec2523: C:\Users\julienv\AppData\Local\Temp\Rtmp8OuTCo\filed14720c109d.yaml
nocite: '@R-vitae, @R-tibble'
csl: C:/Users/julienv/AppData/Local/R/win-library/4.3/vitae/vitae.csl
---
# Some stuff about me
...
# Publications
::: {#refs-8a04b61006b8ea185bd670c9ddec2523}
::: |
Great, thanks - looks like Could you try again with the latest dev version? |
Yep, renders fine now with the latest dev version. Thanks! |
Great, thanks! I'm not sure why this warning is shown, maybe double check that all of your citations are showing in the output? Maybe one of your entries has a problematic key. |
Is there something more that needs to be done other than running:
I had an awesomeCV that was working and now it is not. I get the For example, do I have to update Thanks! |
This is reproducible using posit cloud. Run these two lines:
Then start a vitae from R Markdown template and once knitted, the |
I am having the same issue as @flyaflya. I was planning on playing around with OS: MacOS |
I am also still experiencing this problem. I removed the OS: Ubuntu 22.04 |
Yes, with the CRAN version and the GitHub versions, both, I still get this error on a brand new MacBook and fresh installation of everything. |
OK, the plot thickens. It works on a Windows laptop but not on my new MacBook, both are fresh installs of {tinytex}. Here is my CV, https://codeberg.org/adamhsparks/AHSparks_CV Windows session details: R version 4.0.3 (2020-10-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19045)
Matrix products: default
locale:
[1] LC_COLLATE=English_Australia.1252 LC_CTYPE=English_Australia.1252 LC_MONETARY=English_Australia.1252
[4] LC_NUMERIC=C LC_TIME=English_Australia.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] Rcpp_1.0.8.3 pillar_1.9.0 compiler_4.0.3 plyr_1.8.7 tools_4.0.3 digest_0.6.29 jsonlite_1.8.8
[8] lubridate_1.9.3 evaluate_0.15 lifecycle_1.0.4 tibble_3.2.1 timechange_0.2.0 pkgconfig_2.0.3 rlang_1.1.3
[15] bibtex_0.4.2.3 cli_3.6.2 rstudioapi_0.15.0 yaml_2.3.5 xfun_0.41 fastmap_1.1.0 RefManageR_1.4.0
[22] dplyr_1.1.4 stringr_1.5.1 httr_1.4.7 knitr_1.38 xml2_1.3.3 hms_1.1.3 generics_0.1.2
[29] vctrs_0.6.5 tidyselect_1.2.0 vitae_0.5.4 glue_1.6.2 R6_2.5.1 fansi_1.0.3 rmarkdown_2.25
[36] bookdown_0.37 purrr_1.0.2 tidyr_1.3.0 tzdb_0.3.0 readr_2.1.5 magrittr_2.0.3 htmltools_0.5.2
[43] utf8_1.2.2 tinytex_0.49 stringi_1.7.6 pak_0.7.1 MacOS session details: R version 4.3.2 (2023-10-31)
Platform: aarch64-apple-darwin20 (64-bit)
Running under: macOS Sonoma 14.1
Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRlapack.dylib; LAPACK version 3.11.0
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
time zone: Australia/Perth
tzcode source: internal
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] utf8_1.2.4 generics_0.1.3 tidyr_1.3.0 xml2_1.3.6 stringi_1.8.3
[6] rsthemes_0.4.0 hms_1.1.3 digest_0.6.33 magrittr_2.0.3 evaluate_0.23
[11] timechange_0.2.0 bookdown_0.37 fastmap_1.1.1 plyr_1.8.9 jsonlite_1.8.8
[16] backports_1.4.1 vitae_0.5.4 httr_1.4.7 purrr_1.0.2 fansi_1.0.6
[21] bibtex_0.5.1 cli_3.6.2 rlang_1.1.3 yaml_2.3.8 tools_4.3.2
[26] tzdb_0.4.0 dplyr_1.1.4 credentials_2.0.1 curl_5.2.0 vctrs_0.6.5
[31] R6_2.5.1 lifecycle_1.0.4 lubridate_1.9.3 RefManageR_1.4.0 stringr_1.5.1
[36] pkgconfig_2.0.3 pillar_1.9.0 later_1.3.2 rsconnect_1.2.0 glue_1.7.0
[41] Rcpp_1.0.11 xfun_0.41 tibble_3.2.1 tidyselect_1.2.0 rstudioapi_0.15.0
[46] sys_3.4.2 knitr_1.45 htmltools_0.5.7 rmarkdown_2.25 readr_2.1.4
[51] compiler_4.3.2 askpass_1.2.0 openssl_2.1.1 |
Seems to be a tricky issue - I'm also encountering this in other projects, my best guess is that it relates to pandoc versions. Any insight is appreciated. |
Just to assist in the troubleshooting (sorry, I'm not good enough in R or LaTeX to really investigate it) I wanted to point out that I'm still able to do everything I need with |
I've also been hitting this issue on macOS 14.2.1 even after updating I don't know enough about LaTeX to offer insight but perhaps this is useful for others. |
Nice. Out of curiosity @antshevans, did upgrading the pandoc version solve the problem for you while still using |
It works with Here's my session info with
|
I suspect it's a Pandoc version thing too. I'll try tomorrow with the latest version and see if I get any love. Thanks for the work on this @mitchelloharawild. Aside from this issue, it's made my life much easier for several years now! |
Cool, I'll test this later on my machine. The only difference I can see is that you are running R 4.3.1 and I'm running 4.3.2, released 2023-10-31 |
Hi, I just want to contribute that just by updating pandoc it started working again, all else remaining the same. Before the update, it was not possible to compile. I'm running R 4.3.0 in Ubuntu 22.04, vitae 0.5.4. |
The update to pandoc v 3.1.11.1 also worked for me when using vitae 0.5.4! However, during the rendering I get a bunch of warning messages saying In the end though, the pdf renders as it is supposed to and all the necessary references are there, so aside from irking my obsessive nature (I hate seeing warnings) everything seems to be working fine on my machine! OS: Ubuntu 22.04 |
This issue is introduced in
with this \begin{list} and later the \end{list} . (Don't know latex or pandoc well enough to know what it means, sorry)
I had this issue with the pandoc Also getting the |
Thanks for looking into it @FinYang, the Perhaps the template can be changed to support both versions. |
I'm not so sure it's fixed with Pandoc v3.1.11.1. That's what is currently on the machine (MacBook w/ Sonoma) I'm using now and I still get this error. 🙁 |
Updating Pandoc solved the problem for me! Thanks @mitchelloharawild for pointing to this solution. |
For those who aren't able to fix this issue permanently and need to generate a CV quickly, if you go into the generated .tex file and add |
Thanks, @Kale-23. Even though my CV is working now, I was still curious where that list was showing up that required an |
Same issue, but updating RStudio resolved it rmarkdown::pandoc_version() returned 3.1.1, and pandoc --version returned nothing. Installing from pandoc directly (v3.1.12.1) did not fix the problem, but updating RStudio did (rmarkdown::pandoc_version() now returns 3.1.12.1). |
Great, good to know that the latest version of RStudio includes a compatible version of pandoc - thanks! |
In my case it did not resolve the issue. I installed the latest RStudio version: 2023.12.1 Build 402 but when I run rmarkdown::pandoc_version() it says: ‘3.1.1’. I guess my problem is that I need Pandoc version 3.1.12.1 instead of 3.1.1. How do I update pandoc in Rstudio to the correct version as apparently, in my case, installing the latest version of RStudio did not work? Note that I use R version 4.3.2 on a Windows machine and have installed the development version of Vitae. |
@michielvandijk I tried to update/reinstall pandoc in terminal and the version is now 3.1.12.1, however I couldn't use this version in rmarkdown. So I copied the path from |
@michielvandijk one more option: just add |
Another data point to this - I found that renaming the The reason for keeping the block is that I use the following lua filter to find reference blocks and then bold my name. ❯ pandoc -v
pandoc 3.1.13
Features: +server +lua
Scripting engine: Lua 5.4 $> rmarkdown::pandoc_version()
‘3.1.13’
r$> Sys.info()
sysname "Darwin"
release "23.4.0"
version "Darwin Kernel Version 23.4.0: Fri Mar 15 00:12:41 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T8103"
nodename X
machine "arm64"
login X
user X
effective_user X
r$> sessionInfo()
R version 4.3.2 (2023-10-31)
Platform: aarch64-apple-darwin20 (64-bit)
Running under: macOS Sonoma 14.4.1
Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRlapack.dylib; LAPACK version 3.11.0
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
time zone: America/Toronto
tzcode source: internal
attached base packages:
[1] stats graphics grDevices datasets utils methods base
other attached packages:
[1] glue_1.7.0 here_1.0.1 readxl_1.4.2 lubridate_1.9.2 forcats_1.0.0 stringr_1.5.0 dplyr_1.1.4 purrr_1.0.1 readr_2.1.4 tidyr_1.3.0
[11] tibble_3.2.1 ggplot2_3.4.2 tidyverse_2.0.0 icons_0.2.0 rorcid_0.7.0 vitae_0.5.4
loaded via a namespace (and not attached):
[1] gtable_0.3.3 xfun_0.43 lattice_0.21-9 tzdb_0.4.0 vctrs_0.6.5 tools_4.3.2 generics_0.1.3 curl_5.0.1 fansi_1.0.6
[10] pkgconfig_2.0.3 httpgd_1.3.1 lifecycle_1.0.4 compiler_4.3.2 tinytex_0.50 munsell_0.5.0 htmltools_0.5.8.1 yaml_2.3.8 later_1.3.1
[19] pillar_1.9.0 crayon_1.5.2 whisker_0.4.1 tidyselect_1.2.1 digest_0.6.35 stringi_1.7.12 rsvg_2.4.0 rprojroot_2.0.3 fastmap_1.1.1
[28] grid_4.3.2 colorspace_2.1-0 cli_3.6.2 magrittr_2.0.3 crul_1.4.0 utf8_1.2.4 withr_3.0.0 scales_1.2.1 rappdirs_0.3.3
[37] timechange_0.2.0 rmarkdown_2.26.1 httr_1.4.6 cellranger_1.1.0 zoo_1.8-12 hms_1.1.3 evaluate_0.23 knitr_1.45 rlang_1.1.3
[46] Rcpp_1.0.10 httpcode_0.3.0 xml2_1.3.4 renv_0.15.4-44 fauxpas_0.5.2 rstudioapi_0.14 jsonlite_1.8.8 R6_2.5.1 systemfonts_1.0.4 |
With help of @XinweiBuffalo I managed to solve the problem. I did the following:
|
I had it working in this configuration: R version 4.3.3 (2024-02-29 ucrt) Matrix products: default locale: time zone: Europe/Paris attached base packages: loaded via a namespace (and not attached): AND: RStudio 2023.12.1+402 "Ocean Storm" Release (4da58325ffcff29d157d9264087d4b1ab27f7204, 2024-01-29) for windows Then I updated RStudio to 2024.04.0 and it stopped working. I reverted to RStudio 2023.12.1 and it works again. |
I've added a pandoc version check which should hopefully fix this issue for all versions of pandoc. Let me know if you're still having issues with the development version of the package. |
I am still having issues, even using package version 0.5.4. |
Maybe this will help someone: This is my session info:
Matrix products: default locale: attached base packages: loaded via a namespace (and not attached): |
I now realize what the real issue was for me. I split my reference section in my CV into subsections (peer reviewed papers, preprints, etc.) and one of the subsections had no entries. This caused the following lines in my .tex document to trigger the error
|
It seems like there is an error in the default awesomecv template or there was an inadvertent break. I just tried to render the skeleton
awesomecv
as is, but it failed.Reprex
Created on 2023-11-02 with reprex v2.0.2
Session info
The text was updated successfully, but these errors were encountered: