R-markdown乳胶字体编码失败

时间:2018-03-19 08:44:45

标签: latex r-markdown

编辑:问题解决了。事实证明我有一些丢失的软件包,而rmarkdown没有给出一个非常好的错误消息。如果其他人有这个问题,你必须在yaml中使用“keep_tex”选项。然后,您可以在tex文件中查看所有必需的tex包。

我在Windows 7上。我有最新的Miktex,R,rmarkdown,rstudio。

当我尝试生成新的rmarkdown文档并输出到pdf时,它会失败。

它似乎是缺少的字体编码。我试过在互联网上搜索omxenc.dfu和uenc.dfu文件,但它什么也没找到。我打算在胶乳exchagne中发布这个,但我可以生产乳胶文件,而不使用rmarkdown。

任何帮助都会很棒!

这是rmarkdown

---
title: "Untitled"
author: "Triceraflops"
date: "19 März 2018"
output: pdf_document
---

## R Markdown

This is an R Markdown document. Markdown is a simple formatting syntax for
authoring HTML, PDF, and MS Word documents. For more details on using R 
Markdown see <http://rmarkdown.rstudio.com>.

这是R Markdown控制台的输出

"C:/Users/triceraflops/Documents/RStudio/bin/pandoc/pandoc" +RTS -K512m -RTS missing-encoding.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output missing-encoding.tex --template "C:\Users\triceraflops\Documents\R\win-library\3.4\rmarkdown\rmd\latex\default-1.17.0.2.tex" --highlight-style tango --latex-engine pdflatex --variable graphics=yes --variable "geometry:margin=1in" 
output file: missing-encoding.knit.md

Output created: missing-encoding.pdf
Error in tools::file_path_as_absolute(output_file) : 
  file 'missing-encoding.pdf' does not exist
Calls: <Anonymous> -> <Anonymous>
In addition: Warning messages:
1: running command '"pdflatex" -halt-on-error -interaction=batchmode 
"missing-encoding.tex"' had status 1 
2: In readLines(logfile) :
  incomplete final line found on 'missing-encoding.log'
Execution halted

最后,这是输出日志文件失败的最后一部分。

Now handling font encoding OMX ...
... no UTF-8 mapping file for font encoding OMX
Now handling font encoding U ...
... no UTF-8 mapping file for font encoding U
defining Unicode char U+00A9 (decimal 169)
defining Unicode char U+00AA (decimal 170)
defining Unicode char U+00AE (decimal 174)
defining Unicode char U+00BA (decimal 186)
defining Unicode char U+02C6 (decimal 710)
defining Unicode char U+02DC (decimal 732)
defining Unicode char U+200C (decimal 8204)
defining Unicode char U+2026 (decimal 8230)
defining Unicode char U+2122 (decimal 8482)
defining Unicode char U+2423 (decimal 9251)

0 个答案:

没有答案