Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/78.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在knitr文档的页眉(YAML)部分打印unicode字符?_R_Latex_Knitr_R Markdown_Pandoc - Fatal编程技术网

如何在knitr文档的页眉(YAML)部分打印unicode字符?

如何在knitr文档的页眉(YAML)部分打印unicode字符?,r,latex,knitr,r-markdown,pandoc,R,Latex,Knitr,R Markdown,Pandoc,这是我在RStudio中编写的RMarkdown IEEErticle的YAML头 --- title: Analysis of the impact of ... author: - name: First Lást affiliation: xx department: yy location: zz email: aa abstract: | This study aims to investigate ... bibliography: mybi

这是我在RStudio中编写的RMarkdown IEEE
rticle
的YAML头

---
title: Analysis of the impact of ...
author:
  - name: First Lást
    affiliation: xx
    department: yy
    location: zz
    email: aa
abstract: |
  This study aims to investigate ...

bibliography: mybibfile.bib
output: rticles::ieee_article
csl: ieee.csl
---
author
部分,当使用
knitr

我尝试过不同的组合,比如
\u{á}
$\á$
,甚至是
\u0225
(该字符的名称)都没有运气


如何在该部分中包含特殊字符,以便在转换为PDF时正确显示这些字符?

我想您几乎已经拥有了它。尝试使用
$\'{a}$
LaTeX命令。对我来说,它在RStudio中起了作用。您可以找到一些有关LaTex特殊字符的文档。

或者,您也可以尝试使用
--LaTex engine xelatex
以那种方式打印字符?这可能吗?将
\-
放在您希望使用软连字符的位置。请参阅此以了解详细信息。