protected function _getCommand()
{
$binary = $this->config('binary');
if ($binary) {
$this->_binary = $binary;
}
if (!is_executable($this->_binary)) {
throw new Exception(sprintf('TeX compiler binary is not found or not executable: %s', $this->_binary));
}
$options = (array) $this->config('options');
if (!is_dir($options['output-directory'])) {
mkdir($options['output-directory']);
}
return $this->_buildCommand();
}