[Tex/LaTex] TeXworks with XeLaTeX + MakeIndex + BiBTeX + shell escape

bibtexpdfshell-escapetexworksxetex

I have tried following this answer, but it gives me:

xelatex.exe: Invalid command-line option

xelatex.exe: Data: unknown option

Shell-escape is required for minted, and is enabled for XeLaTeX using -enable-write18.

What I write in LaTeX include articles with BiBTeX references. Here is the usual format I take:

\documentclass[conference]{IEEEtran}
\usepackage{cite}
\usepackage{epstopdf}
\usepackage[cmex10]{amsmath}
\usepackage{filecontents}
\begin{filecontents*}{references.bib}
@phdthesis{michael_power_1991,
    title = {The Power of Two Choices in Randomized Load Balancing},
    url = {http://www.eecs.harvard.edu/~michaelm/postscripts/mythesis.pdf},
    school = {Harvard},
    author = {Michael David Mitzenmacher},
    year = {1991}
}
}
\end{filecontents*}

\bibliographystyle{plain}
\bibliography{references}
\end{document}

How do I add PDF rendering support for these typeset requirements within TeXworks?

Best Answer

latexmk has a switch called -shell-escape that should do what you want. It takes care of makeindex and bibtex anyway.

so this should work

Name: xelatexmk
Program: latexmk

Arguments: -xelatex
           -shell-escape
           -e
           $synctexoption %O %S/
           $fullname