Не удалось скомпилировать test.tex. Смотрите https://yihui.name/tinytex/r/#debugging для подсказок отладки. Смотрите test.log для получения дополнительной информации. Исполнение остановлено - PullRequest
1 голос
/ 17 октября 2019
output file: test.knit.md

! pdflatex: warning: running with administrator privileges

! Sorry, but C:\Users\jjw11\AppData\Local\Programs\MIKTEX~1.9\miktex\bin\x64\pdflatex.exe did not succeed.

! The log file hopefully contains the information to get MiKTeX going again:

!   C:\Users\jjw11\AppData\Local\MiKTeX\2.9\miktex\log\pdflatex.log

Error: Failed to compile test.tex. See https://yihui.name/tinytex/r/#debugging for debugging tips. See test.log for more info.
Execution halted

Я получил это сообщение об ошибке, когда пытался сгенерировать pdf-файл с использованием r markdown.

Как мне решить эту проблему? Я установил tinytex с помощью install.packages ("tinytex")

Я также попробовал tinytex :: reinstall_tinytex (). Но я получил это сообщение об ошибке

tinytex::reinstall_tinytex()
Error in system2("tlmgr", args, ...) : '"tlmgr"' not found
In addition: Warning message:
In tlmgr(c("info", "--list", "--only-installed", "--data", field,  :
  TeX Live does not seem to be installed. See https://yihui.name/tinytex/.

Я установил tinytex, используя "tinytex :: install_tinytex ()".

Когда я установил tinytex, используя "tinytex :: install_tinytex ()", я получилпредупреждение, которое подразумевает, что другой латексный дистрибутив уже был установлен.

Я пытался сгенерировать файл PDF после установки tinytex, используя "tinytex :: install_tinytex ()".

Но на этот раз я получил это сообщение об ошибке.

output file: test.knit.md

"C:/PROGRA~1/Pandoc/pandoc" +RTS -K512m -RTS test.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output test.tex --template "C:\PROGRA~1\R\R-35~1.3\library\RMARKD~1\rmd\latex\DEFAUL~3.TEX" --highlight-style tango --pdf-engine pdflatex --variable graphics=yes --variable "geometry:margin=1in" --variable "compact-title:yes" 
! Package inputenc Error: Unicode character ??(U+B144)
(inputenc)                not set up for use with LaTeX.

Try other LaTeX engines instead (e.g., xelatex) if you are using pdflatex. For R Markdown users, see https://bookdown.org/yihui/rmarkdown/pdf-document.html
Error: Failed to compile test.tex. See https://yihui.name/tinytex/r/#debugging for debugging tips. See test.log for more info.
In addition: Warning message:
In grepl("==> Fatal error occurred", x[i], fixed = TRUE) :
  input string 1 is invalid in this locale
Execution halted

Нужно ли удалять другие дистрибутивы Latex?

Тогда как я могу удалить другие дистрибутивы Latex?

1 Ответ

1 голос
/ 19 октября 2019

Я решил свою проблему.

Сначала мне пришлось установить дистрибутив Tex.

Я мог установить дистрибутив Tex, используя "tinytex :: install_tinytex ()".

Во-вторых, я использовал символы CJK (китайский, японский, корейский).

, поэтому мне пришлось использовать другой латексный движок.

Кроме того, мне пришлось установить mainfont, который содержит мойязык (Корея) в заголовке YAML.

Я прикрепляю заголовок YAML, который решил мою проблему.

title: "Untitled"
author: "jjw"
date: "2019년 10월 17일"
output: 
    pdf_document :
      latex_engine : xelatex
mainfont : NanumGothic

...