Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

enable shell escape with pandoc

I'm trying to use the latex graphvis package in a pandoc markdown document. However it seems to require the -shell-escape flag be passed to latex. How can I enable -shell-escape on pandoc?

\digraph[scale=0.5]{MyGraph}{
Business -- Job;
Job -- Task;
Job -- User;
Job -- PayRate;
Task -- WorkSession;
User -- WorkSession;
PayRate -- WorkSession;
}

http://mark.aufflick.com/blog/2007/03/25/embedding-graphviz-in-latex-documents

like image 758
HSchmale Avatar asked Feb 07 '23 10:02

HSchmale


1 Answers

pandoc can now pass arguments directly to the LaTeX engine via the --latex-engine-opt flag. As an example, in order to pass the -shell-escape flag to xelatex you could do:

pandoc myfile.md -s -o myfile.pdf --latex-engine=xelatex --latex-engine-opt=-shell-escape
like image 191
pikkio Avatar answered Feb 12 '23 14:02

pikkio