TAGS :Viewed: 9 - Published at: a few seconds ago

[ titling.sty error in rmarkdown ]

I am getting a very annoying error when I try to run rmarkdown docs knitting to pdf from mac

output file: Untitled2.knit.md

! LaTeX Error: File `titling.sty' not found.

Does anyone know a simple solution? I think what caused it was trying to re-install MacTex.

Answer 1


Two possible problems: 1) have you used \usepackage {titling} in your front matter? 2) after you reinstalled MacTex, did you install titling into your tex library?