R Studio 更改 pandoc .tex 模板 [英] R Studio change pandoc .tex template

查看:88
本文介绍了R Studio 更改 pandoc .tex 模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用不同的 Latex 模板来渲染 R markdown 版本 2.

I want to use a different latex template for rendering R markdown version 2.

我发现了以下建议:

a) 模板位置

system.file("rmd/latex/default.tex", package="rmarkdown")

b) YAML 前端的变化

b) change of YAML front matter

---
...
output:
   pdf_document:
      template: mytemplate.tex
---

但是,他似乎不是 R Studio/Pandoc 的正确模板位置,因为我收到以下错误消息:

However, his does not seem to be the correct template location for R Studio/ Pandoc, as I get the following error message:

pandoc.exe: Could not find data file templates\mytemplate.tex

推荐答案

只需将 style.tex 文件放在同一个文件夹中,因为 Markdown 文件现在对我有用.

Just put the style.tex file in the same folder as the markdown file does now works for me.

这篇关于R Studio 更改 pandoc .tex 模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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