如何在knitr文档的页眉(YAML)部分打印unicode字符?
这是我在RStudio中编写的RMarkdown IEEE如何在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
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
以那种方式打印字符?这可能吗?将\-
放在您希望使用软连字符的位置。请参阅此以了解详细信息。