# DO NOT EDIT OR COPY THIS FILE. TEXSHOP WILL AUTOMATICALLY UPDATE IT 
# special xelatexmk settings for Herb Schulz
$pdflatex = "xelatex $TSUserCompileOptions --synctex=1 -file-line-error -output-driver=\"xdvipdfmx -q -E\" %O %S";
#$pdflatex = 'xelatex --shell-escape --synctex=1 -file-line-error -output-driver="xdvipdfmx -q -E" %O %S';

# if a bbl file is present but the generating bib file isn't available don't run bibtex. --- default in latexmk 4.13
#$bibtex_use = 1;

# NOTE: You can include .eps files directly in xelatex documents (this must enabled within dvipdfmx.def)
# so these are all commented out.
# Custom dependency and function(s) for epstopdf package

# FOR USERS OF epstopf v1.4 and before: should also work with v1.5 and later
# note: you may get extras runs if you use the .eps extension in the \includgraphics command
# deletes an outdated pdf-image, and triggers a pdflatex-run
#add_cus_dep('eps', 'pdf', 0, 'cus_dep_delete_dest');

# FOR USERS OF epstopdf v1.5 and later only:
# load it as \usepackage[update,prepend]{epstopdf}
# detects an outdated pdf-image, and triggers a pdflatex-run
#add_cus_dep('eps', 'pdf', 0, 'cus_dep_require_primary_run');

# Custom dependecy to convert tif to png
add_cus_dep('tif', 'png', 0, 'maketif2png');
		sub maketif2png {
				system("convert '$_[0]'.tif '$_[0]'.png");
		}
