Emojis不会显示在bookdown

时间:2017-09-03 20:55:54

标签: r latex knitr r-markdown bookdown

我正在使用bookdown生成网站和pdf。我使用r包emo添加了一些表情符号。构建网站没有问题,它们显示正常。

但是在创建pdf时,这些表情符号不会显示,尽管它们显示在.tex文件中。所以我的猜测是问题是从tex转换为pdf。

我正在使用这些命令:

rmarkdown::clean_site()
rmarkdown::render_site(output_format = 'bookdown::pdf_book', encoding = 'UTF-8')

会话信息:

> rmarkdown::pandoc_version()
[1] ‘1.17.2’
> system('pdflatex --version')
pdfTeX 3.14159265-2.6-1.40.18 (TeX Live 2017)
kpathsea version 6.2.3
Copyright 2017 Han The Thanh (pdfTeX) et al.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Han The Thanh (pdfTeX) et al.
Compiled with libpng 1.6.29; using libpng 1.6.29
Compiled with zlib 1.2.11; using zlib 1.2.11
Compiled with xpdf version 3.04

R version 3.4.1 
macOS Sierra 10.12.6
rmarkdown_1.6

谢谢!

0 个答案:

没有答案