I'm having problems with bold and italic options in my pdf file that I get from my Rmarkdown file. I write in Russian so I unclude babel package and after that ** and __ stop working.
Here's my Rmarkdown file. The result is in plain font, the word is not bold.
---
output: pdf_document
header-includes:
- \usepackage[russian]{babel}
---
**Theorem**.
Here is result of convertion of this Rmd-file to tex.
While this version keeps the word bold:
---
output: pdf_document
---
**Theorem**
I also tried to change latex engine from pdflatex to xelatex but for xelatex I also should specify some special font that supports cyrillic. If I don't specify mainfont there's no cyrillic letters in the result. And I would really like to stay with the default font.
This works but I don't like the font:
---
output:
pdf_document:
latex_engine: xelatex
mainfont: Arial
---
**Теорема**.
This doesn't work:
---
output:
pdf_document:
latex_engine: xelatex
---
**Теорема**.
\usepackage{lmodern}
from your template -- lmodern doesn't support cyrillic. If you can't do it, reset the families with\renewcommand\rmdefault{cmr}
and\renewcommand\sfdefault{cmss}