R Studio change pandoc .tex template

亡梦爱人 提交于 2019-12-04 15:07:29

Ok, I think I have the answer, the default directory for Pandoc can be found here:

system("pandoc -v")

If the folder does not exist, create it as well as a subfolder called templates and copy your tex template here.

You can see the original template here:

system("pandoc -D latex")

Not sure if you figured it out or not but this may be a useful link. http://rmarkdown.rstudio.com/developer_document_templates.html I am finding myself in the same boat as you wanting to create a custom template to output to PDF.

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!