reporting: search for pdflatex.exe on windows

time-shift
Houtan Bastani 2013-06-11 17:11:48 +02:00
parent 58a583c248
commit dec9c3a315
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;' ... system(['PATH=$PATH:/usr/texbin:/usr/local/bin:/usr/local/sbin;' ...
'which pdflatex'], echo); 'which pdflatex'], echo);
elseif strcmp(computer, 'PCWIN') || strcmp(computer, 'PCWIN64') elseif strcmp(computer, 'PCWIN') || strcmp(computer, 'PCWIN64')
error(['@report.compile: On Windows machines, you must explicitly ' ... [status, compiler] = system('findtexmf --file-type=exe pdflatex', echo);
'provide the ''compiler'' option or set the compiler ' ... middle = ' ';
'variable in the Report class']); compiler = ['"' strtrim(compiler) '"'];
else % gnu/linux else % gnu/linux
[status, compiler] = system('which pdflatex', echo); [status, compiler] = system('which pdflatex', echo);
end end