diff --git a/src/@report/compile.m b/src/@report/compile.m index b34d935a69cc68966ec949fe4739a88c3ba452ef..cba0ffaa85f807a70c66517d04a4872f1ac6bedf 100644 --- a/src/@report/compile.m +++ b/src/@report/compile.m @@ -79,7 +79,9 @@ if isempty(opts.compiler) middle = ' '; opts.compiler = ['"' strtrim(opts.compiler) '"']; elseif isunix - [status, opts.compiler] = system('which pdflatex'); + % “which†has been deprecated in Debian Bookworm; rather use “command -v†+ % which should work with any reasonably recent GNU/Linux shell + [status, opts.compiler] = system('command -v pdflatex'); end assert(status == 0, ... '@report.compile: Could not find a tex compiler on your system'); @@ -131,4 +133,4 @@ if status ~= 0 error(['@report.compile: There was an error in compiling ' rfn '.pdf.' ... ' ' opts.compiler ' returned the error code: ' num2str(status)]); end -end \ No newline at end of file +end