!config
# LaTeXmk with pdfLaTeX rule for arara
# author: Brent Longborough
# requires arara 3.0+
identifier: pdflatexmk
name: pdfLaTeXmK
command: <arara> latexmk -e '$pdflatex=q/pdflatex%O%S/' @{action} @{synctex} @{shell} @{options}@{style} -pdf "@{file}"
arguments:
- identifier: action
  flag: <arara> --interaction=@{parameters.action}
- identifier: shell
  flag: <arara> @{isTrue(parameters.shell,"--shell-escape"," --no-shell-escape")}
- identifier: synctex
  flag: <arara> @{isTrue(parameters.synctex,"--synctex=0","--synctex=1")}
- identifier: options
  flag: <arara> @{parameters.options}
- identifier: style
  flag: <arara> -e '$makeindex=q/makeindex %O -s @{parameters.style}.ist -o %D %S/'
