Commit 401637c9 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

automatically find pdflatex.exe on windows with texlive installation

parent 447cdf4a
......@@ -70,6 +70,12 @@ if isempty(opts.compiler)
system('PATH=$PATH:/usr/texbin:/usr/local/bin:/usr/local/sbin;which pdflatex');
elseif ispc
[status, opts.compiler] = system('findtexmf --file-type=exe pdflatex');
if status == 1
[status] = system('pdflatex.exe --version');
if status == 0
opts.compiler = 'pdflatex.exe';
end
end
middle = ' ';
opts.compiler = ['"' strtrim(opts.compiler) '"'];
elseif isunix
......
Markdown is supported
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