I have created a very basic modification for a custom template as described here. However, when I knit the file mycv_public_mod.Rmd it does not render detailed_entries() correctly; rather it only prints the tibble() as shown in the output file in the linked repository: mycv_public_mod.pdf
This problem does not appear to be occurring for the user who answered the original question (first link above). I am on Ubuntu 22 and running XeTeX, Version 3.141592653-2.6-0.999993 (TeX Live 2022/dev/Debian)
I updated all of my R packages last night, and am wondering if there is an update that may have broken the functionality. I also ran the following...
sudo R
tinytex::tlmgr_update()
It installed updates in /var/lib/texmf/web2c
Let me know if there are any other versions I should check, or if anyone can replicate this problem/provide a solution.
UPDATE: I have updated to...
- XeTeX, Version 3.141592653-2.6-0.999995 (TeX Live 2023)
- RStudio 2023.09.1+494 "Desert Sunflower" Release (cd7011dce393115d3a7c3db799dda4b1c7e88711, 2023-10-16) for Ubuntu Jammy Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) rstudio/2023.09.1+494 Chrome/116.0.5845.190 Electron/26.2.4 Safari/537.36
- R 4.3.1
...and the problem persists
Step 1
When I attempt to use
rmarkdown::render()
on your "mycv_public_mod.Rmd" file without making any changes - I am greeted with the following error:Upon looking into the documentation and vignettes for
vitae
, I found this article on using templates with vitae. In that article, a line under the heading "Using the Template with Rmarkdown" says the following.Clearly, I am missing the .cls file that the template must have in order to be used in Rmarkdown. The documentation states that the .cls (and .sty) file(s) would be with the template, so I will start there.
Step 2
I start with a folder with the following files provided via your github - only what is necessary to render the Rmd:
I use
rmarkdown::render()
on "mycv_public_mod.Rmd" with the slightly modified following YAML:These YAML options will produce a CV using the
vitae::awesomecv()
. The render succeeds and produces a correctly formatted file:My folder now contains the following files after rendering:
I now have a new .tex file (resulting from the rendering), a .cls file, and a folder of "fonts". I appear to now have what I needed, based on my original error.
Step 3
I return to "mycv_public_mod.Rmd" and set the following YAML:
When I run
rmarkdown::render()
it once again produces a correctly formatted document using the "template" (which is technically just default awesomeCV) I just made. Adding the .cls file from the template creation appears to have worked and I am able to use thevitae::cv_document()
function to use a template and create the CV.Step 4
OP requested the use of a special template to be used that was provided in the github. This time, I will have these files in the folder:
awesomecv()
function and rendering)awesomecv()
function and rendering)The most important parts here are that I have the "/fonts" folder and the "awesome-cv.cls" that were both generated with the template.
I prepare "mycv_public_mod.Rmd" with the following YAML:
I use
rmarkdown::render()
once more, and get the desired result with the template recoloring.