Commit fe68b693 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

reporting: @report: throw explicit error if user has not passed compiler option on Windows

parent 55a78271
......@@ -41,7 +41,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')
% need to fill in for Windows
error(['@report.compile: On Windows machines, you must explicitly ' ...
'provide the ''compiler'' option or set the compiler ' ...
'variable in the Report class']);
else % gnu/linux
[status, compiler] = system('which pdflatex', '-echo');
end
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment