HTML codes for Turkish characters will work (example from wikipedia):
---
title: "My doc"
output: pdf_document
---
HTML char detail anglicized
------- -- ------------------------------ ---
Ğ ? Uppercase "G" with breve accent gh1
İ ? Uppercase dotted "I"2 i (as in "tree")
Ş ? Uppercase "S" with cedilla sh
ğ ? Lowercase "g" with breve accent gh1
ı ? Lowercase dotless "i"3 ou (as in "in")
ş ? Lowercase "s" with cedilla sh
------- -- ------------------------------- --
Which renders the PDF like this:
For article templates, see the rticles
package, or make your own
For book templates, have a look at pandoc ebook, gitbook and bookdown
This xelatex option I initially suggested will not work for Turkish characters:
The xelatex
engine is recommended for this kind of thing. Then you can access your system fonts with the mainfont
argument:
---
title: "My doc"
output:
pdf_document:
latex_engine: xelatex
mainfont: "name of your system font that has all those characters"
---
PDF output will be in the font you specify.
Just type as normal with no special codes.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…