reporting: search for pdflatex.exe on windows

remove-priordens
Houtan Bastani 2013-06-11 17:11:48 +02:00
parent 17081da6e1
commit 8ece1f1245
1 changed files with 3 additions and 3 deletions

View File

@ -59,9 +59,9 @@ if isempty(compiler)
system(['PATH=$PATH:/usr/texbin:/usr/local/bin:/usr/local/sbin;' ...
'which pdflatex'], echo);
elseif strcmp(computer, 'PCWIN') || strcmp(computer, 'PCWIN64')
error(['@report.compile: On Windows machines, you must explicitly ' ...
'provide the ''compiler'' option or set the compiler ' ...
'variable in the Report class']);
[status, compiler] = system('findtexmf --file-type=exe pdflatex', echo);
middle = ' ';
compiler = ['"' strtrim(compiler) '"'];
else % gnu/linux
[status, compiler] = system('which pdflatex', echo);
end