How to force Tikz in RMarkdown document to show cyrillic text?
问题 Below is my experimental RMarkdown document (named tikz-cyrillic.Rmd ): --- title: "TikZ cyrillic test" output: pdf_document: keep_tex: yes latex_engine: xelatex dev: tikz html_document: default word_document: default --- ```{r,engine='tikz', fig.ext = if (knitr:::is_latex_output()) 'pdf' else 'svg'} \begin{tikzpicture} \path (0,0) node (x) {Hello World!} (3,1) node[circle,draw](y) {$\int_1^2 x \mathrm d x$}; \draw[->,blue] (x) -- (y); \draw[->,red] (x) -| node[near start,below] {мир!} (y);