Rmarkdown 保留 .tex 文件 [英] Rmarkdown Retain .tex file

查看:77
本文介绍了Rmarkdown 保留 .tex 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 R 中,使用 rmarkdown::render(...) 编译 Markdown 文档时,如何保留由编织产生的中间 .tex 文件.

In R, when compiling a markdown document using rmarkdown::render(...), how can I retain the intermediate .tex file that is produced from knitting.

我尝试设置 clean=FALSE 参数,但这会保留数字,而不是最终的 tex 文件或辅助文件,我需要检查以进行调试.

I have tried setting the clean=FALSE argument, but this retains the figures, not the final tex file or auxiliary files, which I need to inspect for debugging purposes.

推荐答案

您可以在您的 YML 标头中指定它:

You can specify it in your YML header with:

output:
  pdf_document:
    keep_tex: true
---

更多选项在 rmarkdown 网站.

这篇关于Rmarkdown 保留 .tex 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆