标签: tinytex

无法编译 test.tex。有关调试提示,请参阅 https://yihui.name/tinytex/r/#debugging。有关更多信息,请参阅 test.log。执行停止

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
Run Code Online (Sandbox Code Playgroud)

我在尝试使用 r markdown 生成 pdf 文件时收到此错误消息。

我该如何解决这个问题?我使用 install.packages("tinytex") 安装了 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", …
Run Code Online (Sandbox Code Playgroud)

pdf r r-markdown tinytex

12
推荐指数
1
解决办法
3万
查看次数

devtools::build_manual() 错误:无法构建手册

devtools::build_manual() 生成Error: Failed to build manual(至少在 Windows 上)。

重现步骤:

  1. 在 R Studio 上创建一个新的 R 项目。
  2. 为 hello_world 函数添加此文档,记录并构建包。
#' Hello world doc
#'
#' @export
#'
hello <- function() {
  print("Hello, world!")
}
Run Code Online (Sandbox Code Playgroud)
  1. 尝试跑步devtools::build_manual()

错误:无法构建手册

这似乎是最近的一个问题;不久前我就可以编写我的软件包手册了。我在本期中尝试了 check_manual() 函数,这就是我得到的:

> check_man()
Checking:  hello.RdError: Failed to build manual
Called from: value[[3L]](cond)
Browse[1]> e
System command 'Rcmd.exe' failed, exit status: 1, stdout + stderr (last 10 lines):
E> ima/AppData/Roaming/TinyTeX/texmf-dist/fonts/type1/urw/times/utmb8a.pfb><c:/Use
E> rs/plima/AppData/Roaming/TinyTeX/texmf-dist/fonts/type1/urw/times/utmr8a.pfb><c
E> :/Users/plima/AppData/Roaming/TinyTeX/texmf-dist/fonts/type1/urw/times/utmri8a.
E> pfb>
E> Output written …
Run Code Online (Sandbox Code Playgroud)

r devtools tinytex

6
推荐指数
1
解决办法
2097
查看次数

渲染 rmarkdown 文档时保留辅助 TeX 文件

我正在渲染两个文档,这些文档相互交叉引用。为此,我正在使用 LaTeX 包zref

为了zref工作,它需要*.aux调用时创建的文档的文件pdflatex

不幸的是,使用 RStudio 及其基本方法来渲染文档(编织按钮,Cmd+Shift+K 或rmarkdown::render()),这些文件将在编译成功后被删除。

取消选中全局选项工具 -> 全局选项 -> Sweave -> 编译后清理辅助输出无济于事。

我知道有两种选择可以解决这个问题:

  1. 在 pdf 渲染后手动编译 tex 文件。

  2. 编写一个执行此操作的 makefile。

但是还有我不知道的另一种选择吗?

r rstudio knitr r-markdown tinytex

5
推荐指数
1
解决办法
841
查看次数

tlmgr_install:存储库中不存在包脚注

我正在尝试使用以下命令安装包脚注:

library(tinytex)
tlmgr_install("footnote")
Run Code Online (Sandbox Code Playgroud)

但是它会引发以下错误:

tlmgr_install:存储库中不存在包脚注。

任何帮助,请。

r tinytex tlmgr

5
推荐指数
0
解决办法
227
查看次数

错误:无法通过 biber {vitae} 构建参考书目

我正在尝试使用该vitae包重现 cv,并在生成参考书目时不断遇到奇怪的错误。它以前可以工作,但是当我今天尝试执行代码时,它不断产生以下输出:

INFO - This is Biber 2.14
INFO - Logfile is 'cv.blg'
INFO - Reading 'cv.bcf'
INFO - Found 4 citekeys in bib section 0
INFO - Processing section 0
INFO - Globbing data source 'C:/Users/Joe Roberts/Documents/automated_cv/cv/roberts-published.bib'
INFO - Globbed data source 'C:/Users/Joe Roberts/Documents/automated_cv/cv/roberts-published.bib' to C:/Users/Joe\ Roberts/Documents/automated_cv/cv/roberts-published.bib
INFO - Looking for bibtex format file 'C:/Users/Joe\ Roberts/Documents/automated_cv/cv/roberts-published.bib' for section 0
ERROR - Cannot find 'C:/Users/Joe\ Roberts/Documents/automated_cv/cv/roberts-published.bib'!
INFO - ERRORS: 1
Error: Failed to build the bibliography via biber …
Run Code Online (Sandbox Code Playgroud)

r-markdown tinytex

5
推荐指数
1
解决办法
582
查看次数

如何在 R markdown 方程中制作卷曲 k ?

在 R markdown 方程中,我需要创建一个卷曲小写 k,类似于 生成的卷曲小写“l” \ell。有一些帖子涉及这个问题,但都是基于 LaTex 的。我找不到任何关于这个问题的帖子,为不熟悉 LaTex 细节的 R markdown 用户提供解决方案。我正在使用tinytex。

r mathjax r-markdown tinytex

5
推荐指数
1
解决办法
1425
查看次数

Unicode 转义字符 U+001B 编织 .rmd 到 .pdf 时出错

当尝试编织我的 rmd 文件时,我收到此错误 -

! LaTeX Error: Unicode character ^^[ (U+001B)
           not set up for use with LaTeX.

Error: LaTeX failed to compile Task1-Final.tex. See 
https://yihui.org/tinytex/r/#debugging for debugging tips. See Task1-Final.log for 
more info.
Execution halted
Run Code Online (Sandbox Code Playgroud)

有任何想法吗?

r unicode-escapes knitr r-markdown tinytex

5
推荐指数
1
解决办法
2556
查看次数

如何告诉 RStudio 使用 TinyTex 而不是 MiKTeX?

我想在 RStudio 中使用 LaTeX 和Sweave. 但是,我在使用 MiKTeX 时遇到了问题(请参阅参考资料)。由于我无法解决这些问题,所以我TinyTeX现在想使用。我在 RStudio 中安装TinyTeX

install.packages('tinytex')
tinytex::install_tinytex()
Run Code Online (Sandbox Code Playgroud)

TinyTeX但是,当我想基于文件编译 PDF 时,我不知道在哪里告诉 RStudio 它应该使用而不是 MiKTeX Rnw。我检查了全局选项,但找不到我要找的东西。我知道如果使用 TinyTeX,建议卸载 MiKTeX,但我想将两者都保留在我的计算机上。

如果我正确地阅读了这次讨论的结论,应该有一种方法:Ref

注意:RStudio 版本:1.4.1717。

r miktex rstudio tinytex

4
推荐指数
1
解决办法
3208
查看次数

标签 统计

tinytex ×8

r ×7

r-markdown ×5

knitr ×2

rstudio ×2

devtools ×1

mathjax ×1

miktex ×1

pdf ×1

tlmgr ×1

unicode-escapes ×1