markdown latex font encoding failing
Edit: Problem solved. It turns out I had some missing packages, and rmarkdown doesn't give a very good error message for this. If anyone else has this problem, you have to use the "keep_tex" option in the yaml. You can then see in the tex file all of the required tex packages.
I'm on Windows 7. I have the latest Miktex, R, rmarkdown, rstudio.
When I try to produce a new rmarkdown document and output to pdf, it fails.
It seems to be a font encoding which is missing. I've tried searching the internet for omxenc.dfu and uenc.dfu files, but it turned up nothing. I was going to post this in the latex exchagne, but I can produce latex documents fine without using rmarkdown.
Any help would be great!
Here's the 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>.
And here's the output of the R Markdown console
"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:UserstriceraflopsDocumentsRwin-library3.4rmarkdownrmdlatexdefault-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
And finally here's the last part of the output log file where it fails.
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)
链接地址: http://www.djcxy.com/p/5718.html
上一篇: 你如何重命名一个Git标签?
下一篇: 降价乳胶字体编码失败