mitchelloharawild / vitae

R Markdown Résumés and CVs
https://pkg.mitchelloharawild.com/vitae/
1.22k stars 237 forks source link

"LaTeX Error: Command \researchidsocialsymbol undefined." in moderncv #242

Closed Ntgllr closed 3 months ago

Ntgllr commented 1 year ago

This pull request fixes an issue with moderncv mentioned in #228. When building the example I the following error: ! LaTeX Error: Command \researchidsocialsymbol undefined.

The .log points to: \renewcommand*{\researchidsocialsymbol}{{\small\aiResearcherID}~} which I cannot find in the vitae package or the moderncv/moderncv package.

Regardless the error can be intercepted by adding the missing command to "moderncv.cls".

Also the ResearcherID and ORCID icons would not appear when building the template. I found, that those icons were moved from "moderncviconsawesome.sty" to "moderncviconsacademic.sty" in moderncv/moderncv.

I added the additional iconpack and the icons were displayed correctly. Somehow the "moderncviconsacademic.sty" file is not accessed automatically when loading the package and my understanding of Rmarkdown and Latex is not good enough to fix that. I worked around the problem by adding the used files directly.

In the current state the template builds correctly and icons for ResearcherID and ORCID are displayed correctly.