use Config;

if (not exists $ENV{'TEXINPUTS'}) {
	$ENV{'TEXINPUTS'} = '';
}

$ENV{'TEXINPUTS'} = $ENV{'TEXINPUTS'} . $Config{path_sep} . '..' . $Config{path_sep};

# Use LuaLaTeX: https://tex.stackexchange.com/a/356432
$pdf_mode = 4;
$postscript_mode = $dvi_mode = 0;

# TexStudio doesn't reecognize changed PDF output name in internal PDF viewer
# $jobname = 'Master-Project-Diagram-Operators';

# $lualatex = 'xelatex.exe -no-pdf -shell-escape -synctex=1 -8bit %O %S';

$out_dir = 'build';