Error when rendering Greek letters

rmarkdown

#1

When rendering a Rmarkdown file with Greek letters into pdf I get errors similar to:

"! Package inputenc Error: Unicode char δ (U+3B4)
(inputenc) not set up for use with LaTeX."

I installed texlive-lang-greek but that does not solve the problem. Please, see an example below.

---
output: pdf_document
---

δυναμική λοyοδοσία όσον αφορά την κλινική εκπαίδευση και εποπτεία: τρία ιδανικά προσανατολισμού

My approach has been to gsub the offending characters, but there must be a way to render them...

Thanks!


#2

When dealing with Unicode characters, you'd better try xelatex instead of the default pdflatex. See Section 3.3.7.1: https://bookdown.org/yihui/rmarkdown/pdf-document.html#advanced-customization-1