ilk*_*lan 5 pdf latex r r-markdown
我正在尝试用RMarkdown pdf写一篇论文.但我不知道如何使用像"İ,ı,ğ,ü,ö"这样的特殊字符.这些角色出现在土耳其语中.我可以使用例如\ u {g} - ğ,\ c {c} - ç,\"{u} - ü,{\ i} - ı等在乳胶中轻松使用它们.
你能告诉我怎样才能在RMarkdown中做同样的事情?
我在哪里可以找到一些Rmarkdown纸张或书籍模板?
土耳其字符的HTML代码可以使用(例如来自维基百科):
---
title: "My doc"
output: pdf_document
---
HTML char detail anglicized
------- -- ------------------------------ ---
Ğ ? Uppercase "G" with breve accent gh1
İ ? Uppercase dotted "I"² i (as in "tree")
Ş ? Uppercase "S" with cedilla sh
ğ ? Lowercase "g" with breve accent gh1
ı ? Lowercase dotless "i"³ ou (as in "in")
ş ? Lowercase "s" with cedilla sh
------- -- ------------------------------- --
Run Code Online (Sandbox Code Playgroud)
这就像这样呈现PDF:

对于书籍模板,请查看pandoc电子书,gitbook和bookdown
我最初建议的xelatex选项不适用于土耳其字符:
该xelatex引擎被推荐为这种事情.然后,您可以使用以下mainfont参数访问系统字体:
---
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.
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
9259 次 |
| 最近记录: |