I'm working on an RMarkdown document that I want to compile with xelatex using the shell escape option. The RStudio documents describe how this can be done for *.tex
documents but the Enable shell escape command option does not appear to affect the compilation of Markdown documents.
Here's my YAML header. Is there a way I can pass the --enable-write18
option to the LaTeX engine by specifying it in the YAML?
---
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