Yaml 在RMarkdown中启用乳胶壳逃逸
我正在编写一个RMarkdown文档,我想使用shell escape选项用Xeletex编译它。描述了如何对Yaml 在RMarkdown中启用乳胶壳逃逸,yaml,rstudio,r-markdown,pandoc,Yaml,Rstudio,R Markdown,Pandoc,我正在编写一个RMarkdown文档,我想使用shell escape选项用Xeletex编译它。描述了如何对*.tex文档执行此操作,但“启用shell转义”命令选项似乎不会影响标记文档的编译 这是我的YAML头球。有没有办法通过在YAML中指定--enable-write18选项来将其传递给LaTeX引擎 --- title: "My document" author: "Me" date: "2016-01-01" documentclass: report output: pdf_d
*.tex
文档执行此操作,但“启用shell转义”命令选项似乎不会影响标记文档的编译
这是我的YAML头球。有没有办法通过在YAML中指定--enable-write18
选项来将其传递给LaTeX引擎
---
title: "My document"
author: "Me"
date: "2016-01-01"
documentclass: report
output:
pdf_document:
latex_engine: xelatex
number_sections: yes
template: ard-pandoc-template.tex
toc: yes
---
# Test
asdfjkhasdf
找到了另一个问题的答案。有一个选项可以从YAML头向Pandoc传递其他参数:
output:
pdf_document:
latex_engine: xelatex
pandoc_args: "--latex-engine-opt=--enable-write18"